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

[L4D2] Survivor Respawning V-1.25 (Updated: 2/6/14)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mortiegama
Senior Member
Join Date: Feb 2010
Plugin ID:
1752
Plugin Version:
1.25
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    56 
    Plugin Description:
    Allows Survivors to respawn after being incapped, hanging or killed following a timer countdown.
    Old 06-21-2010 , 17:58   [L4D2] Survivor Respawning V-1.25 (Updated: 2/6/14)
    Reply With Quote #1

    General

    This plugin requires Sourcemod 1.5 or higher


    Description

    This will allow you to respawn automatically after you've been incapped or are hanging (set by Cvar) or killed. There is a timer you can set to decide how long they'll be out for. You will also respawn with some basics: shotgun, baseball bat, and pills. You can edit several values in the plugin.L4D2.SurvivorRespawn.cfg in the CFG/Sourcemod folder.


    Credits

    This plugin takes inspiration and some code from AtomicStryker's SM Respawn and Ghost Anywhere plugins.

    This was in response to a plugin request by Deceptionn.


    Cvars

    <*>To change these values edit the plugin.L4D2.SurvivorRespawn.cfg in the CFG\Sourcemod folder.


    • l4d_survivorrespawning_enable (Enabled 1, Disabled 0), Allows Survivors to automatically respawn after incap/death
    • l4d_survivorrespawning_enablebot (Enabled 1, Disabled 0), Allows Bots to automatically respawn after incap/death
    • l4d_survivorrespawning_hanging (Enabled 1, Disabled 0), Causes Survivors to suicide when hanging and automatically respawn after the timeout
    • l4d_survivorrespawning_incapped (Enabled 1, Disabled 0), Causes Survivors to suicide when incapped and automatically respawn after the timeout
    • l4d_survivorrespawning_limitenable (Enabled 1, Disabled 0), Survivors will respect the amount set for max respawn if this is enabled
    • l4d_survivorrespawning_deathlimit (Default 2), Number of times a Survivor can respawn before they are permanently killed
    • l4d_survivorrespawning_hangingtimeout (Default 25), Amount of time it takes for the Survivor to suicide while hanging.
    • l4d_survivorrespawning_incaptimeout (Default 25), Amount of time it takes for the Survivor to suicide after incapacitation.
    • l4d_survivorrespawning_respawntimeout (Default 10), Amount of time it takes for the Survivor to respawn.
    • l4d_survivorrespawning_firstweapon(Default 1), Which first weapon will be given to Survivors (1 - Autoshotgun, 2 - M16, 3 - None)
    • l4d_survivorrespawning_secondweapon (Default 1), Which second weapon will be given to Survivors (1 - Bat, 2 - Dual Pistol, 3 - Magnum, 4 - None)
    • l4d_survivorrespawning_thrownweapon (Default 4), Which thrown weapon will be given to Survivors (1 - Moltov, 2 - Bile Jar, 3 - Pipe Bomb, 4 - None)
    • l4d_survivorrespawning_primehealth (Default 3), Which prime health item will be given to Survivors (1 - Medkit, 2 - Defib, 3 - None)
    • l4d_survivorrespawning_secondaryhealth (Default 1), Which secondary health item will be given to Survivors (1 - Pills, 2 - Adrenaline, 3 - None)
    • l4d_survivorrespawning_respawnhp (Default 70), Amount of HP a Survivor has after respawning.
    • l4d_survivorrespawning_respawnbuffhp (Default 30), Amount of Buffer HP a Survivor has after respawning.

    Installation
    • Download and copy L4D2 Survivor Respawning.smx to Addons/Sourcemod/Plugins folder
    • Download and copy l4drespawn.txt to Addons/Sourcemod/Gamedata
    • Delete plugin.L4D2.SurvivorRespawn.cfg from the CFG/Sourcemod folder.


    Recommended Plugins
    • Survivor Bot Takeover - Set the takeover announce time to one second more than the respawn timeout for this plugin and it will allow you to takeover a bot after you can't respawn any longer. You will still be locked in on the respawn limit even after taking over a bot though.On servers with additional player slots, the Bot name displayed by Survivor Bot takeover will probably be incorrect, which may be confusing for players. To hide the bot name, set ld4_takeover_displaybotname "0" instead of default "1" in l4d_takeover.cfg. This way, the bot takeover will still be announced but without the name of the bot. (Update by PatriotGames).
    • No Death Check - This plugin will prevent the game from ending while you are waiting to respawn as long as someone is still incapped.

    Version History

    Version 1.25 - (2/6/14)
    <*>Fixed a bug pointed out by PatriotGames that was preventing Respawn Limit changes
    Version 1.24 - (1/31/14) - 30 Views
    <*>Fixed a problem where Survivors would respawn after loading onto the next map
    <*>Minor bug and timer fixes
    Version 1.23 - (1/16/14) - 66 Views
    <*>Uploaded a new Gamedata txt file, the old one was outdated and causing the plugin to not function
    <*>Cleaned up the code to prevent timer and other errors
    <*>Added code to allow timeout period for incapacitation to prevent conflict with self revive plugins
    <*>Added ability to configure Survivor HP upon being respawned
    <*>Completely rewrote the Teleport part to prevent errors
    Version 1.22 - (1/30/11) - 2427 Views
    <*>Fixed the check for Bots to make sure it is done correctly
    Version 1.21 - (1/29/11) - 12 Views
    <*>Fixed a problem caused by the Timer being closed
    <*>Added a Cvar to control whether Bots can respawn
    Version 1.2 - (1/26/11) - 30 Views
    <*>Large overhaul of the plugin
    <*>Added an option to suicide while hanging after X seconds
    <*>Added Cvars to allow customized items once revived
    <*>Cleaned up some code so you would only teleport to Survivors, not infected
    <*>Fixed a few minor bugs
    Version 1.11 - (6/24/10) - 810 Views
    <*>Fixed a bug with CloseHandle causing errors on Round End
    <*>Changed cvar name l4d_survivorrespawning_limitenable
    <*>Added a cvar to respect/ignore the respawn limit
    Version 1.1 - (6/21/10) - 51 Views
    <*>Fixed a bug where it was ignoring the death limits
    <*>Changed cvar name l4d_survivorrespawning_deathlimit
    <*>Fixed a bug where it was ignoring disabling incap respawn
    Version 1.0 - (6/21/10) - 8 Views
    <*>Original launch of the plugin


    Known Issues

    <*>None
    Attached Files
    File Type: txt l4drespawn.txt (1.7 KB, 3532 views)
    File Type: sp Get Plugin or Get Source (L4D2 Survivor Respawning.sp - 6232 views - 12.8 KB)

    Last edited by Mortiegama; 02-06-2014 at 12:25.
    Mortiegama is offline
    MisterNine
    Member
    Join Date: Jan 2010
    Old 06-21-2010 , 19:13   Re: [L4D2] Survivor Respawning V-1.0 (Updated: 6/21/10)
    Reply With Quote #2

    Question: During a campaign, does respawning via this plugin reset the player's kill count for the end of map and ending credit stats?
    MisterNine is offline
    war450
    Member
    Join Date: Apr 2006
    Old 06-22-2010 , 05:39   Re: [L4D2] Survivor Respawning V-1.1 (Updated: 6/21/10)
    Reply With Quote #3

    this would be cool to add to the buy items menu, could buy a extra life? perhaps [just a small idea]
    war450 is offline
    ReHAXor
    Member
    Join Date: Dec 2005
    Old 06-23-2010 , 12:30   Re: [L4D2] Survivor Respawning V-1.1 (Updated: 6/21/10)
    Reply With Quote #4

    @ Mortiegama

    could you please eneable the option that the death-limit is unlimited ?

    thanks in advance therefore.
    __________________
    ReHAXor is offline
    Searcher64
    Senior Member
    Join Date: Apr 2010
    Old 06-23-2010 , 16:07   Re: [L4D2] Survivor Respawning V-1.1 (Updated: 6/21/10)
    Reply With Quote #5

    The respawning time is in seconds right?
    Searcher64 is offline
    stufz
    Member
    Join Date: Jan 2010
    Old 06-23-2010 , 18:34   Re: [L4D2] Survivor Respawning V-1.1 (Updated: 6/21/10)
    Reply With Quote #6

    yah its in seconds :p

    grate plugin Mort ! just about have a hands off server except for them SI spawn key binds


    hmmm, posted too soon, not getting respawns all the time. Running coop 12 slot with:

    mmsource-1.8.1-hg699
    sourcemod-1.3.2-hg2958
    L4DTooLz 1.0.0.10RC3 with survs.smx
    sdkhooks131-l4d2-sm13

    gad, buncha plugins ..

    well ,heres the error log for DC map:

    Quote:
    L 06/24/2010 - 06:13:41: Info (map "c1m1_hotel") (file "errors_20100624.log")
    L 06/24/2010 - 06:13:41: [SM] Native "CloseHandle" reported: Handle 0 is invalid (error 4)
    L 06/24/2010 - 06:13:41: [SM] Displaying call stack trace for plugin "L4D2 Survivor Respawning.smx":
    L 06/24/2010 - 06:13:41: [SM] [0] Line 138, /home/groups/alliedmodders/forums/files/7/0/1/7/8/68137.attach::Event_RoundEnd()
    L 06/24/2010 - 06:169: Error log file session closed.
    L 06/24/2010 - 06:21:07: SourceMod error session started
    L 06/24/2010 - 06:21:07: Info (map "c1m1_hotel") (file "errors_20100624.log")
    L 06/24/2010 - 06:21:07: [SM] Native "CloseHandle" reported: Handle 0 is invalid (error 4)
    L 06/24/2010 - 06:21:07: [SM] Displaying call stack trace for plugin "L4D2 Survivor Respawning.smx":
    L 06/24/2010 - 06:21:07: [SM] [0] Line 138, /home/groups/alliedmodders/forums/files/7/0/1/7/8/68137.attach::Event_RoundEnd()
    L 06/24/2010 - 06:232: Error log file session closed.

    Last edited by stufz; 06-24-2010 at 02:49.
    stufz is offline
    Mortiegama
    Senior Member
    Join Date: Feb 2010
    Old 06-24-2010 , 08:56   Re: [L4D2] Survivor Respawning V-1.11 (Updated: 6/24/10)
    Reply With Quote #7

    @Misternine - It does reset your point values if you respawn.

    @War450 - Yes that could be something useful, but that would be something to post in the Item Buy topic. They can easily copy the code from this plugin.

    @Rehaxor - I set a new Cvar so that the respawn limit is ignored

    @Searcher64 - Yes.

    @Stufz - The error should be taken care of, forgot to check to see if the Timer was Invalid.
    __________________
    Mortiegama is offline
    ReHAXor
    Member
    Join Date: Dec 2005
    Old 06-24-2010 , 17:42   Re: [L4D2] Survivor Respawning V-1.11 (Updated: 6/24/10)
    Reply With Quote #8

    Thx :0)

    Keep it up - good work.
    __________________
    ReHAXor is offline
    ReHAXor
    Member
    Join Date: Dec 2005
    Old 06-28-2010 , 01:17   Re: [L4D2] Survivor Respawning V-1.11 (Updated: 6/24/10)
    Reply With Quote #9

    hi Mortiegama,

    is it possible to remove the dead bodies after the re-spawn ?
    my server is lagging after a while because of too much corpse.

    regards
    monster
    __________________
    ReHAXor is offline
    ghosthunterfool
    Senior Member
    Join Date: Mar 2010
    Old 06-30-2010 , 07:47   Re: [L4D2] Survivor Respawning V-1.11 (Updated: 6/24/10)
    Reply With Quote #10

    How Do I use This To Enable it To Only Respawn Once in Co Op?
    ghosthunterfool is offline
    Reply



    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 18:52.


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