Raised This Month: $12 Target: $400
 3% 

TF2 Class Restrictions 0.6 (Updated 08/13/09)


Post New Thread Reply   
 
Thread Tools Display Modes
Jokerz99
Senior Member
Join Date: Apr 2008
Old 04-04-2009 , 22:35   Re: TF2 Class Restrictions 0.5 (Updated 10/19)
Reply With Quote #181

Quote:
Originally Posted by WinterPhoenix View Post
I actually have this written already. If you interested, let me know and I'll post it for you (it's on my other computer).

That would very nice of you please post
__________________
Jokerz99 is offline
SirCheese
Member
Join Date: Oct 2008
Old 04-05-2009 , 13:58   Re: TF2 Class Restrictions 0.5 (Updated 10/19)
Reply With Quote #182

Ok, this is really annoying, I have set the snipers to 2 on both red and blue, both teams are only allowing 1 with it set to 2, any ideas?

This is how I have it setup in the server.cfg

sm_classrestrict_enabled 1
sm_classrestrict_blu_demomen -1
sm_classrestrict_blu_engineers -1
sm_classrestrict_blu_heavies -1
sm_classrestrict_blu_medics -1
sm_classrestrict_blu_pyros -1
sm_classrestrict_blu_scouts -1
sm_classrestrict_blu_snipers 2
sm_classrestrict_blu_soldiers -1
sm_classrestrict_blu_spies -1
sm_classrestrict_red_demomen -1
sm_classrestrict_red_engineers -1
sm_classrestrict_red_heavies -1
sm_classrestrict_red_medics -1
sm_classrestrict_red_pyros -1
sm_classrestrict_red_scouts -1
sm_classrestrict_red_snipers 2
sm_classrestrict_red_soldiers -1
sm_classrestrict_red_spies -1

Last edited by SirCheese; 04-05-2009 at 14:03.
SirCheese is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 04-05-2009 , 15:22   Re: TF2 Class Restrictions 0.5 (Updated 10/19)
Reply With Quote #183

Add 1 to the values.
__________________

DontWannaName is offline
-{BAM}-DeadBodyMan
SourceMod Donor
Join Date: Aug 2008
Old 04-05-2009 , 16:05   Re: TF2 Class Restrictions 0.5 (Updated 10/19)
Reply With Quote #184

You need to have it 1 Higher then what ya want.
__________________
-{BAM}-DeadBodyMan is offline
WinterPhoenix
Junior Member
Join Date: Mar 2009
Old 04-05-2009 , 23:39   Re: TF2 Class Restrictions 0.5 (Updated 10/19)
Reply With Quote #185

classrestrict.sp

classrestrict.smx

These should be the correct ones. I don't remember which version of sourcemod it's compiled for, so you may be better off recompiling it yourself.

Tsunami - I'm sorry if I edited the header attributions for myself too much. I left the website to yours since the work was largely yours. Thanks again for a truly great plugin!
WinterPhoenix is offline
Acidpapst
Junior Member
Join Date: Sep 2008
Location: Germany
Old 04-10-2009 , 04:59   Re: TF2 Class Restrictions 0.5 (Updated 10/19)
Reply With Quote #186

hello.. hope you can help me...
our server loads the plugin, but when i try to make a cfg for a funmap like balloon_race_v2b that no one can snipe something i make wrong...

i put the balloon_race_v2b.cfg with this lines in the sourcemod/cfg directory:


sm_classrestrict_enabled 1

sm_classrestrict_immunity 0


sm_classrestrict_blu_demomen -1
sm_classrestrict_blu_engineers -1
sm_classrestrict_blu_heavies 2
sm_classrestrict_blu_medics -1
sm_classrestrict_blu_pyros -1
sm_classrestrict_blu_scouts -1
sm_classrestrict_blu_snipers 1
sm_classrestrict_blu_soldiers -1
sm_classrestrict_blu_spies -1
sm_classrestrict_red_demomen -1
sm_classrestrict_red_engineers -1
sm_classrestrict_red_heavies 2
sm_classrestrict_red_medics -1
sm_classrestrict_red_pyros -1
sm_classrestrict_red_scouts -1
sm_classrestrict_red_snipers 1
sm_classrestrict_red_soldiers -1
sm_classrestrict_red_spies -1

but i can still choose sniper. something i do wrong. please help me that this great plugin can help on our server too.(sorr 4 my bad english)
Acidpapst is offline
SirCheese
Member
Join Date: Oct 2008
Old 04-10-2009 , 12:01   Re: TF2 Class Restrictions 0.5 (Updated 10/19)
Reply With Quote #187

Quote:
Originally Posted by Acidpapst View Post
hello.. hope you can help me...
our server loads the plugin, but when i try to make a cfg for a funmap like balloon_race_v2b that no one can snipe something i make wrong...

i put the balloon_race_v2b.cfg with this lines in the sourcemod/cfg directory:


sm_classrestrict_enabled 1

sm_classrestrict_immunity 0


sm_classrestrict_blu_demomen -1
sm_classrestrict_blu_engineers -1
sm_classrestrict_blu_heavies 2
sm_classrestrict_blu_medics -1
sm_classrestrict_blu_pyros -1
sm_classrestrict_blu_scouts -1
sm_classrestrict_blu_snipers 1
sm_classrestrict_blu_soldiers -1
sm_classrestrict_blu_spies -1
sm_classrestrict_red_demomen -1
sm_classrestrict_red_engineers -1
sm_classrestrict_red_heavies 2
sm_classrestrict_red_medics -1
sm_classrestrict_red_pyros -1
sm_classrestrict_red_scouts -1
sm_classrestrict_red_snipers 1
sm_classrestrict_red_soldiers -1
sm_classrestrict_red_spies -1

but i can still choose sniper. something i do wrong. please help me that this great plugin can help on our server too.(sorr 4 my bad english)
You have snipers set to 1...if you want none, change it to -1
SirCheese is offline
WinterPhoenix
Junior Member
Join Date: Mar 2009
Old 04-10-2009 , 12:03   Re: TF2 Class Restrictions 0.5 (Updated 10/19)
Reply With Quote #188

Quote:
Originally Posted by SirCheese View Post
You have snipers set to 1...if you want none, change it to -1
I think you may be incorrect. If I understood the question, he wants no snipers at all allowed. Setting it to -1 would remove the restriction, allowing all players to snipe. Instead, I think the limit should be set to 0
WinterPhoenix is offline
SirCheese
Member
Join Date: Oct 2008
Old 04-10-2009 , 12:15   Re: TF2 Class Restrictions 0.5 (Updated 10/19)
Reply With Quote #189

Quote:
Originally Posted by WinterPhoenix View Post
I think you may be incorrect. If I understood the question, he wants no snipers at all allowed. Setting it to -1 would remove the restriction, allowing all players to snipe. Instead, I think the limit should be set to 0
Er, yea, sorry, just woke up. 0 i would agree with
SirCheese is offline
mardur
Junior Member
Join Date: Mar 2009
Old 04-23-2009 , 05:09   Re: TF2 Class Restrictions 0.5 (Updated 10/19)
Reply With Quote #190

Already in #164, I posted a fix for both, the 'numbers are wrong by 1' and an infinite loop in PickClass.
Maybe those changes could find its way into the the official version and the adaptions posted subsequently (#186) here, unless those errors are considered as intentional features of the plugin.
mardur is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:05.


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