AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   TF2 Class Restrictions 0.6 (Updated 08/13/09) (https://forums.alliedmods.net/showthread.php?t=73104)

bl4nk 06-23-2008 14:43

Re: TF2 Class Restrictions
 
Did you compile it on 1.1?

fattitj 06-23-2008 15:15

Re: TF2 Class Restrictions
 
i recompiled it in 1.2 now, and no errors this time

bl4nk 06-23-2008 16:00

Re: TF2 Class Restrictions
 
I believe you mean 1.0.2.

r3dh3adkid 06-23-2008 16:29

Re: TF2 Class Restrictions
 
Any way you could add random?

DJ Tsunami 06-23-2008 18:04

Re: TF2 Class Restrictions
 
You mean make it choose a random team and class for a player that just connected?

r3dh3adkid 06-23-2008 18:34

Re: TF2 Class Restrictions
 
No No like if I wanted 5 maps where each team is set to a random class each time u go to the map...

Like...the cvar would be like

sm_classrestrict_red_random
sm_classrestrict_blue_random

It would do exactly the same as the other cvars except randomly choose a class.

Er...hope that makes sense?

Freelancer 06-23-2008 20:11

Re: TF2 Class Restrictions
 
Quote:

Originally Posted by DJ Tsunami (Post 642895)
You mean make it choose a random team and class for a player that just connected?

Good idea, would it still be possable to make them join even with restrictions? and still be random team and random class?

ratty 06-23-2008 20:39

Re: TF2 Class Restrictions
 
Thanks for this plugin, its awesome.

However, my error logs are filling with
Native "GetClientTeam" reported: Client 16 is not in game
possibly due to the bots on my server

One thing you should do is call IsFakeClient(client) with your other error checks to filter out bots, such as SourceTV. I'll fix up my own copy, but I just wanted to suggest it.

chundo 06-24-2008 02:08

Re: TF2 Class Restrictions
 
Works great, thanks. Will be nice to have around when the next TF2 unlockables come out.

Any chance you can add a cvar that lets me specify I want the limits interpreted as percentages rather than hard numbers? If I have 12 players on the team, I might want to limit it to 3 pyros, but for 6 on 6, 3 is still too many.

DJ Tsunami 06-24-2008 04:17

Re: TF2 Class Restrictions
 
@r3dh3adkid: yeah, that kind of makes sense :) I'll look into it.

@Freelancer: well, I would have them join a team that's not restricted, right?

@ratty: you're right, I don't check for bots yet. Will add that.

@chundo: sounds like a sexy idea :) Will add.


All times are GMT -4. The time now is 14:21.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.