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

[L4D & L4D2] SM Respawn command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Plugin ID:
970
Plugin Version:
1.9.3
Plugin Category:
Server Management
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    254 
    Plugin Description:
    Respawns dead Survivors and teleports them where you aim
    Old 07-02-2009 , 13:42   [L4D & L4D2] SM Respawn command
    Reply With Quote #1

    First of all, the actual respawn code is all doku's. I tried a different approach, removing the CHEAT flag from the respawn command at first, but that seems impossible .. so i just made a wraparound for his solution.

    This doesnt revive automatically but gives admins a [sm_respawn <name1> <name2> ...] command to revive any number of Survivors with. For example, if some griefer got in, jumped off a cliff and disconnected. After Resurrection they are teleported to the admin cursor, just like for z_spawn. [Using FuncommandsX Teleport Code]



    If you want this in your sm_admin menu, add something like this to your addons/sourcemod/configs/adminmenu_custom.cfg

    Code:
    "Commands"
    {
        "PlayerCommands"
        {
            "Respawn Survivor"
            {
                "cmd"        "sm_respawn #1"
                "admin"        "sm_kick"
                "execute"    "player"
                "1"
                {
                    "type"        "player"
                    "method"    "name"
                    "title"        "Player:"
                }
            }
        }
    }
    Changelog:
    1.0 - Initial Release
    1.1 - Integrated Teleport code from FuncommandsX Plugin
    1.2 - swapped from silent sv_cheats 1 and respawn to SDK method
    1.3 - removed the need for a gamedata file
    1.4 - fixed Linux Offset, thanks to BAILOPAN and BertieB
    1.5 - now gives respawned Survivors a Medkit and a SMG
    1.6 - self-respawning doesnt teleport anymore, both gamedata file or autodetection now valid.
    1.7 - removed autodetection code since the update broke it
    1.8 - made KAC compatible, added ivailosps Infected Respawn code
    x.x - fixed gamedata file to comply with The Passing Update, redownload it
    1.9 - overhauled Plugin to use Signature instead of Offset, wont break even on major patches
    1.9.2 - Unneeded Signature errors for L4D1 wont log anymore
    1.9.3 - you now (Survivor-)respawn yourself at where you look instead of in the Saferoom


    Installation:

    Put the .smx into your sourcemod/plugins folder
    Put the .txt into your sourcemod/gamedata folder
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_sm_respawn.sp - 22630 views - 5.6 KB)
    File Type: txt l4drespawn.txt (1.7 KB, 9723 views)

    Last edited by AtomicStryker; 07-06-2013 at 07:56.
    AtomicStryker is offline
     


    Thread Tools
    Display Modes

    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 19:21.


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