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