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

[TF2] Regenerate Players (and players' weapons)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Plugin ID:
1893
Plugin Version:
1.0
Plugin Category:
All
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    15 
    Plugin Description:
    A portable resupply locker, except better!
    Old 08-17-2010 , 19:02   [TF2] Regenerate Players (and players' weapons)
    Reply With Quote #1

    [TF2] Regenerate Player(s)
    Version 1.0



    Description:
    Regenerates players just like a resupply locker.
    Or: regenerates just weapons and ammo.

    This plugin can be used to change equipped weapons without returning to spawn.
    Client command is included to allow players to change unlocks in the field.
    (Client command can be enabled by cvar.)

    Commands:
    Admin:
    sm_regen <target> - Regenerates <target>'s health, ammo, and weapons.
    sm_regen_nohp <target> - Regenerates <target>'s ammo and weapons. (Health stays the same).

    Client:
    sm_changeitems - Regenerates weapons and ammo (see cvars and notes below).

    Cvars:
    sm_regen_version - plugin version.
    sm_regen_allow_client "0" - Change to "1" to allow clients to use sm_changeitems (see notes).

    Install Instructions:
    1. Place RegeneratePlayer.smx into your addons/sourcemod/plugins/ folder.

    Notes:
    I will not mess with ammo values because it can cause things like 6-shot FaNs etc.

    sm_changeitems:
    • Must be enabled with the cvar listed above.
    • Can only be used once per life to prevent spamming.

    ToDo:
    • Nothing.

    Version History:
    • V1.0
      • Initial Release
    Attached Files
    File Type: sp Get Plugin or Get Source (RegeneratePlayer.sp - 3258 views - 4.7 KB)
    __________________
    DarthNinja 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 03:32.


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