View Single Post
Author Message
SilentCat
New Member
Join Date: May 2014
Location: Canada
Old 05-24-2014 , 05:43   [CS:GO] Auto Respawner (v1.3.1, 2020-12-12)
Reply With Quote #1

Summary:
I created this plugin based on a working respawn plugin, Player Respawn (v1.5), by bobobagan available at https://forums.alliedmods.net/showthread.php?t=108708.

This plugin improves on Player Respawn by disabling automatic respawn if the player is killed in too short a time after respawning. Players can be killed too quickly if there is an AFK killer or auto-killer on the map (ie: in many mg_ maps) and therefore, I made this modified version of the Player Respawn plugin in an attempt to mitigate this issue. This plugin also allows selective automatic respawns depending on the source of the damage.

I have only tested this plugin in Counter Strike: Global Offensive and therefore I cannot guarantee that it will work with other games.

Otherwise, this plugin works similar to the Player Respawn plugin:

Compatibility:
  • Counter Strike: Source
  • Counter Strike: Global Offensive
  • Day of Defeat: Source
  • Team Fortress 2
Requirements:
  • Requires SourceMod v1.1 or greater
  • Slay admin flag is required - F (or root - Z)
Cvars:
sm_respawn_version - 1.3.1 (can not be changed)
sm_auto_respawn - Automatically respawn dead players (OFF=0, On World=1, On Enemy=2, On Anything (Default=3))
sm_auto_respawn_time - Amount of seconds to delay the respawn by (Default=0.0)
sm_auto_respawn_type - Respawn type (Disable respawn for all players=0, Disable respawn per player=1 (Default=0))
sm_auto_respawn_bots - Disable/Enable (0/1) respawn bots on death (Default=1)

Cmds:
sm_respawn (also appears under player commands in the admin menu)

Installation:
  • respawn.smx into /addons/sourcemod/plugins
  • respawn.phrases.txt into /addons/sourcemod/translations
  • plugin.respawn.txt into /addons/sourcemod/gamedata - Only required for DoD:S
Changelog:
1.3.1 [2020-12-12] (special thanks to @rlevet)
- Fix error on client disconnect
1.3.0 [2020-12-01] (special thanks to @rlevet)
- Fix for 50HP hurt triggers
- 2 bugs fixes
- Add translation support for the repeat killer phrase
- Made the spawnkiller detection timer customizable
- Switch to the new syntax (sm 1.10)
1.2.0 [2017-07-08]
- Add sm_auto_respawn_bots option to enable or disable respawning of bots
1.1.1 [2015-01-25]
- Fix force respawn from not unblocking the given player's ability to automatically respawn
1.1.0 [2015-01-24]
- Add respawn type check to allow players to continue respawning despite one player being killed by a repeat killer
- Refactor code
1.0.2 [2015-01-11] (2513 downloads)
- Improve AFK killer detection logic by comparing the calculated time since last death with a small, fixed constant time
1.0.1 [2014-07-19] (476 downloads)
- Fix spectator's from causing living CT/T players to freeze when they are watching them
1.0.0 [2014-05-24]
- Initial release

GitHub:
https://github.com/davidyee/SourceMod-AutoRespawn
Attached Files
File Type: txt plugin.respawn.txt (249 Bytes, 2438 views)
File Type: txt respawn.phrases.txt (506 Bytes, 285 views)
File Type: sp Get Plugin or Get Source (autorespawn.sp - 310 views - 11.9 KB)

Last edited by SilentCat; 12-12-2020 at 19:38. Reason: Update plugin to v1.3.1
SilentCat is offline