Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
VintageEpicFail
Senior Member
Join Date: Feb 2012
Location: Straya
Old 10-02-2013 , 07:14   Re: TF2 Class Restrictions 0.6 (Updated 08/13/09)
Reply With Quote #441

Quote:
Originally Posted by Gibbo View Post
I have but my donators still dont have immunity. They have flag "o"
Code:
sm_classrestrict_flags "o"

Got that?
VintageEpicFail is offline
Gibbo
Junior Member
Join Date: Jun 2013
Old 10-02-2013 , 11:12   Re: TF2 Class Restrictions 0.6 (Updated 08/13/09)
Reply With Quote #442

Quote:
Originally Posted by VintageEpicFail View Post
Code:
sm_classrestrict_flags "o"

Got that?
Where do i put that?
Gibbo is offline
VintageEpicFail
Senior Member
Join Date: Feb 2012
Location: Straya
Old 10-04-2013 , 01:15   Re: TF2 Class Restrictions 0.6 (Updated 08/13/09)
Reply With Quote #443

Quote:
Originally Posted by Gibbo View Post
Where do i put that?
Server.cfg
VintageEpicFail is offline
nexbr
Junior Member
Join Date: Jun 2013
Old 02-08-2014 , 13:13   Re: TF2 Class Restrictions 0.6 (Updated 08/13/09)
Reply With Quote #444

This plugin is still working?
nexbr is offline
brokenshadows
Junior Member
Join Date: Mar 2011
Old 06-28-2014 , 15:10   Re: TF2 Class Restrictions 0.6 (Updated 08/13/09)
Reply With Quote #445

i've been trying all morning to get this to work. The server i'm running has a few sniper maps, and i want to restrict the class choice to snipers only.

in my server.cfg i have:

sm_classrestrict_enabled "1"
sm_classrestrict_immunity "1"

if i'm reading the instructions correctly, this turns on classrestrict, as well as sets admins to be immune...

i have the following in sniper_brawl_v3.cfg:

sm_classrestrict_red_snipers -1
sm_classrestrict_blu_snipers -1

again, if i'm reading the instructions correctly, this should set the class restrictions for both the red, and the blu teams to sniper only, as well as setting the limit to 'unlimited' (so as many players as the server has slots for can play as sniper).

i've tried using the sniper_brawl_v3.cfg in the following directories:

tf/maps/
tf/maps/cfg
tf/cfg

i know i'm probably just blind/stupid, and missing something obvious, but i can't figure out what that might be...

any suggestions?

Last edited by brokenshadows; 06-28-2014 at 15:11.
brokenshadows is offline
KiRRA
Senior Member
Join Date: Nov 2012
Old 06-28-2014 , 15:36   Re: TF2 Class Restrictions 0.6 (Updated 08/13/09)
Reply With Quote #446

Quote:
Originally Posted by brokenshadows View Post
i've been trying all morning to get this to work. The server i'm running has a few sniper maps, and i want to restrict the class choice to snipers only.

in my server.cfg i have:

sm_classrestrict_enabled "1"
sm_classrestrict_immunity "1"

if i'm reading the instructions correctly, this turns on classrestrict, as well as sets admins to be immune...

i have the following in sniper_brawl_v3.cfg:

sm_classrestrict_red_snipers -1
sm_classrestrict_blu_snipers -1

again, if i'm reading the instructions correctly, this should set the class restrictions for both the red, and the blu teams to sniper only, as well as setting the limit to 'unlimited' (so as many players as the server has slots for can play as sniper).

i've tried using the sniper_brawl_v3.cfg in the following directories:

tf/maps/
tf/maps/cfg
tf/cfg

i know i'm probably just blind/stupid, and missing something obvious, but i can't figure out what that might be...

any suggestions?
You still have to add restrictions for the other classes as 0 so the classes are unselectable. Right now your making it so all classes can be chosen and sniper has no limit.
__________________
FuG's TF2 PropHunt/Dodgeball Server - 209.144.30.29:27015
KiRRA is offline
brokenshadows
Junior Member
Join Date: Mar 2011
Old 06-29-2014 , 02:23   Re: TF2 Class Restrictions 0.6 (Updated 08/13/09)
Reply With Quote #447

Quote:
Originally Posted by KiRRA View Post
You still have to add restrictions for the other classes as 0 so the classes are unselectable. Right now your making it so all classes can be chosen and sniper has no limit.
Thanks, that helped with part of my issue!

Okay, i now have the following in my mapname.cfg, and placing this file in the "/tf/cfg" folder seems to be working:

sm_classrestrict_blu_demomen 0
sm_classrestrict_blu_engineers 0
sm_classrestrict_blu_heavies 0
sm_classrestrict_blu_medics 0
sm_classrestrict_blu_pyros 0
sm_classrestrict_blu_scouts 0
sm_classrestrict_blu_snipers -1
sm_classrestrict_blu_soldiers 0
sm_classrestrict_blu_spies 0

sm_classrestrict_red_demomen 0
sm_classrestrict_red_engineers 0
sm_classrestrict_red_heavies 0
sm_classrestrict_red_medics 0
sm_classrestrict_red_pyros 0
sm_classrestrict_red_scouts 0
sm_classrestrict_red_snipers -1
sm_classrestrict_red_soldiers 0
sm_classrestrict_red_spies 0



Here's my next issue. I have the following in my server.cfg:

sm_classrestrict_enabled "1"
sm_classrestrict_immunity "1"

The first line seem to be working, because now that i've fixed the mapname.cfg, only snipers can join on that particular map. However, the second line doesn't seem to be working, because my account (which is set as admin "99:z") is also limited. i thought that the sm_classrestrict_immunity "1" would set is so admins could still choose any class.

EDIT: i just discovered that even though the cfg file is named "sniper_brawl_v3.cfg", it's limiting the classes to sniper on ALL maps on my server...

Last edited by brokenshadows; 06-29-2014 at 15:51. Reason: more info
brokenshadows is offline
Leonardo 25
Junior Member
Join Date: Aug 2014
Location: Brazil
Old 08-05-2014 , 15:31   Re: TF2 Class Restrictions 0.6 (Updated 08/13/09)
Reply With Quote #448

Quote:
Originally Posted by DJ Tsunami View Post
I know there's already a class restriction plugin, I just think this one works neater. Credits go to voogru for the idea, and for telling me how to show the class selection screen to players A video of his version can be found at http://www.youtube.com/watch?v=OgBt-KtjxyA, I just based it off of the video. The cvars are:

sm_classrestrict_enabled (0/1, default 1)
Enable/disable restricting classes in TF2.

sm_classrestrict_flags (default "")
Admin flags for restricted classes in TF2.

sm_classrestrict_immunity (0/1, default 0)
Enable/disable admins being immune for restricted classes in TF2.

sm_classrestrict_blu_demomen
sm_classrestrict_blu_engineers
sm_classrestrict_blu_heavies
sm_classrestrict_blu_medics
sm_classrestrict_blu_pyros
sm_classrestrict_blu_scouts
sm_classrestrict_blu_snipers
sm_classrestrict_blu_soldiers
sm_classrestrict_blu_spies

Limits for Blu classes in TF2. (-1 for no limit, anything higher will be the limit for that class. Default -1)

sm_classrestrict_red_demomen
sm_classrestrict_red_engineers
sm_classrestrict_red_heavies
sm_classrestrict_red_medics
sm_classrestrict_red_pyros
sm_classrestrict_red_scouts
sm_classrestrict_red_snipers
sm_classrestrict_red_soldiers
sm_classrestrict_red_spies

Limits for Red classes in TF2.

You can put any of these cvars in server.cfg or sourcemod.cfg, and then if you want map specific cvars you can make a file called mapname.cfg (for example cp_dustbowl.cfg) and put those cvars in there.

Changelog
  • 0.6
    • Fixed limits being off by 1.
    • Added percentage based limits.
    • Added class immunity.
  • 0.5
    • Fixed skin glitch.
    • Fixed admin immunity.
    • Fixed not blocking on first spawn on Arena maps.
  • 0.4
    • Added admin immunity.
    • Also blocked join_class command.
  • 0.3
    • Should actually work now, but I don't have the time anymore today to thoroughly test it. Will test tomorrow. No added features yet.
  • 0.2
    • Initial release.
I installed the plugin as described so and still did not work, the plugin loaded properly and I added the following commands to server.cfg:
sm_classrestrict_red_scouts
sm_classrestrict_blu_demomen
sm_classrestrict_blu_engineers
sm_classrestrict_blu_heavies
sm_classrestrict_blu_medics
sm_classrestrict_blu_pyros
sm_classrestrict_blu_snipers
sm_classrestrict_blu_soldiers
sm_classrestrict_blu_spie

Still not hear the lock on the team red-class scout and not hear the blocking of classes demoman, enginner, heavy, medic, pyro, sniper, soldier, and spy.

Could someone help me?
Leonardo 25 is offline
Send a message via Skype™ to Leonardo 25
KiRRA
Senior Member
Join Date: Nov 2012
Old 08-05-2014 , 15:52   Re: TF2 Class Restrictions 0.6 (Updated 08/13/09)
Reply With Quote #449

Quote:
Originally Posted by Leonardo 25 View Post
I installed the plugin as described so and still did not work, the plugin loaded properly and I added the following commands to server.cfg:
sm_classrestrict_red_scouts
sm_classrestrict_blu_demomen
sm_classrestrict_blu_engineers
sm_classrestrict_blu_heavies
sm_classrestrict_blu_medics
sm_classrestrict_blu_pyros
sm_classrestrict_blu_snipers
sm_classrestrict_blu_soldiers
sm_classrestrict_blu_spie

Still not hear the lock on the team red-class scout and not hear the blocking of classes demoman, enginner, heavy, medic, pyro, sniper, soldier, and spy.

Could someone help me?
Those are the correct commands but do you have any values after those commands? Leaving then blank defaults to no limit. Each class restrict cvar should be followed by the desired value: (-1 means no limit), (0 means class is off limits), (anything higher than 0 is the exact limitation of players for that class)

Do you have these values set or is the text above exactly what you have in your config?
__________________
FuG's TF2 PropHunt/Dodgeball Server - 209.144.30.29:27015

Last edited by KiRRA; 08-05-2014 at 15:52.
KiRRA is offline
Leonardo 25
Junior Member
Join Date: Aug 2014
Location: Brazil
Old 08-05-2014 , 15:55   Re: TF2 Class Restrictions 0.6 (Updated 08/13/09)
Reply With Quote #450

Quote:
Originally Posted by KiRRA View Post
Those are the correct commands but do you have any values after those commands? Leaving then blank defaults to no limit. Each class restrict cvar should be followed by the desired value: (-1 means no limit), (0 means class is off limits), (anything higher than 0 is the exact limitation of players for that class)

Do you have these values set or is the text above exactly what you have in your config?
value placed in the front command
Leonardo 25 is offline
Send a message via Skype™ to Leonardo 25
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 11:25.


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