AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] SM Respawn command (https://forums.alliedmods.net/showthread.php?t=96249)

AtomicStryker 07-02-2009 13:42

[L4D & L4D2] SM Respawn command
 
21 Attachment(s)
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 :D
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

Thraka 07-02-2009 14:03

Re: [L4D] SM Respawn command plugin
 
Cool! Where do they reappear? At spawn location?

Dragonshadow 07-02-2009 14:38

Re: [L4D] SM Respawn command plugin
 
Thats typically how respawn works, yes.

GM-Scorp 07-02-2009 16:51

Re: [L4D] SM Respawn command plugin
 
For some reason this disables my advertisement plugin the automatic messages on my server arnt working anymore now

hows that posable ???

webtax 07-02-2009 16:54

Re: [L4D] SM Respawn command plugin
 
checking... working..

GM-Scorp 07-02-2009 16:59

Re: [L4D] SM Respawn command plugin
 
yeah after restarting the servers 2 times

the advertisement started to work again

i dunno wat caussed the problem then

but it started after installing this plugin

maby its just coincidence

Thx AnywayZzz for the plugin i needed it :D


EDIT: It works Great i just tested it i let a friend jump off the roof and i respawned him THX man Great Work

Poheart 07-03-2009 00:52

Re: [L4D] SM Respawn command plugin
 
I Think if you could include Admin menu on plugin , that must be great!
Good work,Thanks for your nice plugin:)

fgriasa 07-03-2009 02:11

Re: [L4D] SM Respawn command plugin
 
Some player's name is very complex

AtomicStryker 07-03-2009 03:05

Re: [L4D] SM Respawn command plugin
 
You don't need to type their full names, just a fragment big enough that Sourcemod can find the right one ^^

Also, you could use the menu

Number Six 07-03-2009 03:13

Re: [L4D] SM Respawn command plugin
 
Conflicts several with http://forums.alliedmods.net/showthread.php?t=95365
[L4D] Survivor Upgrades

If remove survivors upgrades or your plugin , all return to normal :mrgreen:


All times are GMT -4. The time now is 16:40.

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