Skip to content

Commit

Permalink
Update to 1.2.3
Browse files Browse the repository at this point in the history
Respawn logic fix (bug specified to v1.2.2)
  • Loading branch information
Giferns committed Apr 27, 2024
1 parent 55907e3 commit 2ef0837
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion addons/amxmodx/scripting/include/rt_api.inc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#endif
#define _rt_api_included

public stock const VERSION[] = "1.2.2";
public stock const VERSION[] = "1.2.3";
public stock const AUTHORS[] = "DEV-CS.RU Community";

/**
Expand Down Expand Up @@ -165,6 +165,7 @@ stock UTIL_RemoveCorpses(const id = 0, const szClassName[] = DEAD_BODY_CLASSNAME

set_entvar(iEnt, var_flags, FL_KILLME);
set_entvar(iEnt, var_nextthink, 0.0);
set_entvar(iEnt, var_iuser1, 0);

if(iActivator)
break;
Expand Down
4 changes: 2 additions & 2 deletions addons/amxmodx/scripting/rt_core.sma
Original file line number Diff line number Diff line change
Expand Up @@ -260,14 +260,14 @@ public Corpse_Think(const iEnt) {

get_entvar(iActivator, var_origin, g_fSpawnOrigin);

UTIL_RemoveCorpses(iPlayer, DEAD_BODY_CLASSNAME);

EnableHookChain(g_iGetPlayerSpawnSpot_HookChain);
rg_round_respawn(iPlayer);
DisableHookChain(g_iGetPlayerSpawnSpot_HookChain);

if(is_user_alive(iPlayer))
engfunc(EngFunc_SetOrigin, iPlayer, g_fSpawnOrigin);

UTIL_RemoveCorpses(iPlayer, DEAD_BODY_CLASSNAME);
}

if(!is_user_alive(iActivator)) {
Expand Down

0 comments on commit 2ef0837

Please sign in to comment.