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

[CS:GO] Auto Respawner (v1.3.1, 2020-12-12)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
SilentCat
New Member
Join Date: May 2014
Location: Canada
Plugin ID:
4218
Plugin Version:
1.3.1
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Respawn dead players back to their spawns and disable if there is an auto-killer
    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
    xeno88
    Junior Member
    Join Date: Jun 2014
    Old 07-12-2014 , 04:57   Re: [CS:GO] Auto Respawner (v1.0, 2014-05-24)
    Reply With Quote #2

    Love the plugin and currently using it for csgo server. Some maps afk killer doesn't instant-kill, but rather rapidly (or slowly) tick the player down. Which causes the plugin to infinitely spawn them and then kill them without triggering the stopping of the plugin for the round.

    -Thanks





    Side Note:

    The plugin was trying to spawn the player in spectator mode, which would "glitch" him out. Causing a bug, making whoever he spec'd stop in place. So threw an additional check when RepsawnPlayer2 is called to make sure he's part of team 1 or 2. Fixed it on my end.

    Code:
    public Action:RespawnPlayer2(Handle:Timer, any:client)
    {
    	decl String:game[40];
    	GetGameFolderName(game, sizeof(game));
    
    	if(StrEqual(game, "cstrike") || StrEqual(game, "csgo"))
    	{
    		if(GetClientTeam(client) > 1)
    		{
    			CS_RespawnPlayer(client);
    		}
    	}
    	else if (StrEqual(game, "tf"))
    	{
    		TF2_RespawnPlayer(client);
    	}
    	else if (StrEqual(game, "dod"))
    	{
    		SDKCall(g_hPlayerRespawn, client);
    	}
    }

    Last edited by xeno88; 07-12-2014 at 05:19.
    xeno88 is offline
    eCh0
    New Member
    Join Date: Jul 2014
    Old 07-14-2014 , 07:19   Re: [CS:GO] Auto Respawner (v1.0, 2014-05-24)
    Reply With Quote #3

    Yo , can u explain me how to deactivate and activate in diferent maps ? , how can i put respawn time ?
    Thanks.
    eCh0 is offline
    bebe9b
    Veteran Member
    Join Date: May 2009
    Location: Romania
    Old 07-14-2014 , 12:43   Re: [CS:GO] Auto Respawner (v1.0, 2014-05-24)
    Reply With Quote #4

    Yo can modifi plugin for ZOMBIERELOADED ESCAPE ??
    bebe9b is offline
    SilentCat
    New Member
    Join Date: May 2014
    Location: Canada
    Old 07-19-2014 , 18:38   Re: [CS:GO] Auto Respawner (v1.0, 2014-05-24)
    Reply With Quote #5

    Quote:
    Originally Posted by xeno88 View Post
    The plugin was trying to spawn the player in spectator mode, which would "glitch" him out. Causing a bug, making whoever he spec'd stop in place. So threw an additional check when RepsawnPlayer2 is called to make sure he's part of team 1 or 2. Fixed it on my end.
    You're right. I had noticed this bug when I was testing the plugin but didn't think too much of it at the moment. I'll add your fix to the plugin; however, it's probably better to rely on the enum constants instead of hard coding the number:

    Code:
    if(StrEqual(game, "cstrike") || StrEqual(game, "csgo"))
    {
        new team = GetClientTeam(client);
        if(team == CS_TEAM_T || team == CS_TEAM_CT) 
        {
            CS_RespawnPlayer(client);
        }
    }
    Quote:
    Originally Posted by eCh0 View Post
    Yo , can u explain me how to deactivate and activate in diferent maps ? , how can i put respawn time ?
    Thanks.
    I'm not too familiar with specifying settings on a per-map basis but to change the respawn time just increase the respawn delay time via
    Code:
    sm_auto_respawn_time
    Quote:
    Originally Posted by bebe9b View Post
    Yo can modifi plugin for ZOMBIERELOADED ESCAPE ??
    Sorry, you will have to modify that plugin for yourself.

    Last edited by SilentCat; 07-19-2014 at 18:40.
    SilentCat is offline
    Automicbomb
    AlliedModders Donor
    Join Date: Nov 2012
    Old 07-29-2014 , 14:08   Re: [CS:GO] Auto Respawner (v1.0.1, 2014-07-19)
    Reply With Quote #6

    Its not respawning players who are joined later to the game

    Last edited by Automicbomb; 07-29-2014 at 15:15.
    Automicbomb is offline
    Rexsarn
    New Member
    Join Date: Aug 2014
    Old 08-06-2014 , 17:41   Re: [CS:GO] Auto Respawner (v1.0.1, 2014-07-19)
    Reply With Quote #7

    Is there a way I can make this Respawning only happening for 30 sec in the start of the round?
    Rexsarn is offline
    Mavee
    Junior Member
    Join Date: Sep 2014
    Old 09-06-2014 , 04:17   Re: [CS:GO] Auto Respawner (v1.0.1, 2014-07-19)
    Reply With Quote #8

    Where do you set the sm_auto_respawn_time? Not in sourcemod.cfg, not in server.cfg, and recompiling it with sm_auto_respawn_time = "4.0" is not working either. :<
    Mavee is offline
    TaylorBankie
    Junior Member
    Join Date: Dec 2014
    Old 12-22-2014 , 20:51   Re: [CS:GO] Auto Respawner (v1.0.1, 2014-07-19)
    Reply With Quote #9

    I have a MiniGame server and when I die a few times in chat it says "[Auto Respawner] Repeat killer detected. Disabling respawn for this round.", Is there a way to disable that? I want it to work for 30 seconds every round.
    TaylorBankie is offline
    Tellek
    Member
    Join Date: Sep 2014
    Location: Poland
    Old 12-31-2014 , 04:57   Re: [CS:GO] Auto Respawner (v1.0.1, 2014-07-19)
    Reply With Quote #10

    How I can allow auto respawn only for players with a special flag for example "s"?
    Tellek 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 17:57.


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