Giter Club home page Giter Club logo

sourcemod-autorespawn's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.