Re: TF2 Class Restrictions
Hi
Would it be possible to add this kind of cvar: sm_classrestrict_enabled_on_suddendeath so if used on the same time with suddendeath melee redux plugin, classrestrict can be disabled, and we can have all players in the same class during sudden death? |
Re: TF2 Class Restrictions
Ran into a problem. I tried setting it so that each team can have only six pyros and six soldiers in a map config file (the map is pyro_tennis_a1) but people can still go as any other class if they want I had set each one to 0 but it ignored the value as a null I think
|
Re: TF2 Class Restrictions
ColdFire: sudden death melee redux already has a feature to set everyone's class to the same class. In fact, it sets everyone's class to scout by default...
@willy: setting it to 0 worked fine for me while testing, so. |
Re: TF2 Class Restrictions
Something funny is happening with this on my server. It must be missing some events somewhere that's screwing up the running class tally. At one point tonight one team was limited to 1 pyro, and the other 2, even though they were both set to 3. It would probably be more reliable to just recalculate the class counts every time someone joins/changes class rather than keep a running tally. A little more computation, but worth it given how infrequently it will be run.
Also, hooking "joinclass" may be better than "equip" - joinclass only gets called once, equip gets called three or more times on spawn. |
Re: TF2 Class Restrictions
Quote:
|
Re: TF2 Class Restrictions
SDMR forces the class, when his plugin blocks the client trying to change class. There shouldn't be any problems.
[edit] Actually, now that I look at the source of his plugin, there might be some problems. You can always try it out and see how it works. |
Re: TF2 Class Restrictions
Guess I'll have to try, thank you bl4nk!
|
Re: TF2 Class Restrictions
I was wondering (I did not have time to test ClassRestrict with SDMR and see what happens in sudden death)
Would it work if: - I add this global var: decl g_iSuddenDeath = 0 ; - I hook teamplay_suddendeath_begin and set g_iSuddenDeath = 1 - I hook teamplay_suddendeath_end and set g_iSuddenDeath = 0 - Add a check in Event_ChangeClass and make it do nothing if g_iSuddenDeath = 1? - and add a cvar saying if we want to do no-class-restrict in sudden death Edit: or maybe check g_iSuddenDeath in "PickClass (iTeam)" instead of Event_ChangeClass ? |
Re: TF2 Class Restrictions
Quote:
|
Re: TF2 Class Restrictions
So for a map config such as rocket_tennis_beta.cfg I'd place it in the /tf/cfg folder and it'd look like this
Code:
//Restriction settings for the map rocket_tennis_beta |
| All times are GMT -4. The time now is 14:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.