Please note: This plugin now uses SDKHooks instead of Dukehacks!
Version: 2.6.0.5
Requires: SDKHooks (https://forums.alliedmods.net/showthread.php?t=106748)
What does it do?
This plugin allows admins to block and unblock unlockable weapons. This can be done through console commands or the admin menu (server commands).
By default this plugin changes nothing until you start using the commands listed below.
Available Commands
sm_unlock_block - Blocks an unlock. Format as sm_unlock_block <weapon>
sm_unlock_unblock - Unblocks an unlock. Format as sm_unlock_unblock <weapon>
sm_unlock_exception_add - Creates a new exception rule. Format as sm_unlock_exception_add <weapon name> <target>
sm_unlock_exception_remove - Removes an existing exception rule. Format as sm_unlock_exception_remove <weapon name> <target>
sm_unlock_exception_list - Lists the current exceptions for an unlock. Format as sm_unlock_exception_list <weapon name>
sm_unlock_list - Prints a list of unlocks that are currently blocked in console
sm_unlock_alias - Prints a full list of names that can be used for identifing unlocks in console
Weapon Names
This is a list of weapon names the plugin currently recognises:
- Ambassador
- Axetinguisher
- Backburner
- Bonk
- Blutsauger
- Cloak and Dagger
- Dead Ringer
- Flaregun
- Force-A-Nature
- Huntsman
- Jarate
- Killing Gloves of Boxing
- Kritzkrieg
- Natascha
- Sandman
- Sandvich
- Ubersaw
- Razorback
- Eyelander
- Chargin' Targe
- Scottish Resistance
- Equalizer
- Buff Banner
- Direct Hit
- Gunboats
- Pain Train
- Dalokohs Bar
- Homewrecker
- all (for all weapons)
Valid Targets (for exception rules)
This is a list of targets the plugin currently recognises:
- STEAM_<id>
- scout
- sniper
- soldier
- demoman
- medic
- heavy
- pyro
- spy
- all (for all targets, only valid when removing existing exception rules)
Make sure you type them correctly and use all lower case letters when entering them into a console command.
Known caveats
1. Blocking a spy's watch while he has it active can cause it to glitch and the watch will remain in view until the player dies.
Installation
Place the smx file in your plugins folder.
Place the txt files in your gamedata folder.
Changelog:
Code:
20/04/2010- 2.6.0.5 released.- Added support for 3 new weapons
04/03/2010- 2.6.0.4 released.- Fixed invalid client index error.
04/03/2010- 2.6.0.3 released.- Fixed array index OOB error.
25/02/2010- 2.6.0.2 released.- Ubercharge value is remembered when a player has their Kritzkreig replaced from visiting a resupply cabinet.
27/12/2009- 2.6.0.1 released.- Fixed retrieval of network properties thanks to Busy.Orange.
27/12/2009- 2.6.0.0 released.- Added Gunboats support
- Now uses SDKHooks instead of Dukehacks
21/12/2009- 2.5.0.2 released.- Fixed wrong weapons being given when blocking demoman unlocks
21/12/2009- Updated gamedata and added new weapon support
01/09/2009- 2.5.0.1 released.- Fixed incorrect item definition index with the bonesaw causing the medigun to be blocked instead.
31/08/2009- 2.5.0.0 released (Redownload the gamedata file with this update.)- Changed the way unlock replacer identifies weapons and therefore:
- Added support for each spy watch
- Fixed Razorback so that it doesnt remove sniper's hats as well
- Fixed typo in Razorback
29/07/2009- 2.0.2.7 released (Redownload the gamedata file with this update.)- Using more of SourceMods gamedata instead of it's own.
28/07/2009- 2.0.2.5 released- Fixed a problem with the sniper rifle after blocking the huntsman
- Changed "Force of Nature" to "Force-A-Nature" to match its official name
26/07/2009- 2.0.2.0 released- Razerback can now be blocked
- No longer dependant on weapon levels (which are bugged thanks to valve). Using weapon quality instead.
25/07/2009- 2.0.1.5 released- Fixed ammo when weapons are replaced
- Fixed Sandvich not getting replaced
24/07/2009- 2.0.1.3 released- Fixed error in windows offsets
- 2.0.1.0 released - Fixed typo in Natascha
- Fixed 'all' indentifer not working with sm_unlock_block and sm_unlock_unblock
- 2.0.0.0 released
...Yaargh