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

[TF2] Unlock Replacer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Wazz
SourceMod Donor
Join Date: Mar 2009
Plugin ID:
912
Plugin Version:
2.6.0.4
Plugin Category:
All
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Replaces selected unlockable weapons with their original
    Old 05-30-2009 , 10:17   [TF2] Unlock Replacer
    Reply With Quote #1

    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
    Attached Files
    File Type: txt unlock.games.txt (232 Bytes, 2399 views)
    File Type: sp Get Plugin or Get Source (unlockreplacer.sp - 1627 views - 28.5 KB)
    File Type: smx unlockreplacer.smx (14.2 KB, 1617 views)

    Last edited by Wazz; 04-20-2010 at 10:24. Reason: Update
    Wazz is offline
     



    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 00:26.


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