AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Class Unlock 1.0.102 (https://forums.alliedmods.net/showthread.php?t=75668)

strontiumdog 08-09-2008 23:29

[TF2] Class Unlock 1.0.102
 
2 Attachment(s)
Many players complain that when server player numbers are low, certain classes should not be available, such as the sniper or the heavy.
This plugin simply locks those classes until player numbers reach a certain quantity.

Installation
  • Copy sm_class_unlock.smx to addons/sourcemod/plugins
Configuration
sm_class_unlock <0 | 1> - enables or disables the plugin

sm_class_unlock_immunity <0 | 1> - when enabled, admins can access any of the locked classes - Admin level is set to ADMFLAG_GENERIC.

sm_class_unlock_scout <#>

sm_class_unlock_sniper <#>
sm_class_unlock_soldier <#>
sm_class_unlock_demo <#>
sm_class_unlock_medic <#>
sm_class_unlock_heavy <#>
sm_class_unlock_pyro <#>
sm_class_unlock_spy <#>
sm_class_unlock_engineer <#>
Set any of the above cvars to a number.
Zero means that the class is always unlocked.

For example:
sm_class_unlock_heavy 10
will unlock the Heavy class when there are ten or more players on the server. Remember the script counts ALL players, not just the number of players on any one team.

sm_class_unlock_scout 0
will make the Scout always available


Changelog
Version 1.0.100
SourceMod release.

Version 1.0.101
Fixed a bug where players choosing an locked class would get the speed and hp of a scout.

Version 1.0.102
Fixed some minor bugs

Notes
At least one of the cvars MUST be set to zero or the plugin will not function properly. I'd suggest that Scouts, Medics, Soldiers and Demos can all be left at zero.

The plugin does not limit class numbers. There are several other plugins that will do this.

ThatGuy 08-10-2008 00:06

Re: TF2: Class Unlock
 
Nice Job! Thanks for making this :D

death_hawk 08-13-2008 18:40

Re: TF2: Class Unlock
 
I think I just orgasmed.

DiscoBBQ 08-14-2008 10:31

Re: TF2: Class Unlock
 
Nice job

dudedragon 08-21-2008 20:37

Re: TF2: Class Unlock
 
i tryed this plugin and works fine but theres one bit that dont work cos the noob i am. its the admin bit

sm_class_unlock_immunity <0 | 1> - when enabled, admins can access any of the locked classes - Admin level is set to ADMFLAG_GENERIC

i dont realy understand this bit i just put it 1 so admins but yet it dont work..?

RM_Hamster 08-21-2008 21:28

Re: TF2: Class Unlock
 
ADMFLAG_GENERIC is the "b" flag in your admins file. Make sure that your admins have that flag and then they should be immune.

death_hawk 09-08-2008 19:04

Re: TF2: Class Unlock
 
One of my buddies found a very interesting bug.

Basically, with this plugin enabled, you can have the weapon loadout of any class but with the speed, cap ability (double) and double jump of a scout.

strontiumdog 09-08-2008 23:11

Re: TF2: Class Unlock
 
Affirmed.
Will try to get a fix soon.

death_hawk 09-09-2008 01:50

Re: TF2: Class Unlock
 
Now that's response time!
I'm gonna edit my post to remove instructions.

Great plugin btw.

captain-pot-noodle 09-28-2008 04:45

Re: TF2: Class Unlock
 
1 Attachment(s)
I have a demo of the bug, basically in console type join_class "{anylocked class}" and you get the scout double jump and hp, but the other class' run speed and layout, you get the scout weapons when you go to a supply locker


All times are GMT -4. The time now is 00:58.

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