Skip to content

Automatically respawns the player but disables if the player is killed in too short a time after respawning

License

Notifications You must be signed in to change notification settings

davidyee/SourceMod-AutoRespawn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoRespawn

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 was released to the general public on May 24, 2014 and is available for download at https://forums.alliedmods.net/showthread.php?t=240896.

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.

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.2.0 (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))

Cmds:

sm_respawn <name | #userid> (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.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)

    • Improve AFK killer detection logic
  • 1.0.1 (2014-07-19)

    • Fix spectator's from causing living CT/T players to freeze when they are watching them
  • 1.0.0 (2014-05-24)

    • Initial release

About

Automatically respawns the player but disables if the player is killed in too short a time after respawning

Resources

License

Stars

Watchers

Forks

Packages

No packages published