Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
cH1yoi committed Jan 8, 2025
1 parent 0900ad0 commit 3bb9e18
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
Binary file modified addons/sourcemod/plugins/optional/readyup.smx
Binary file not shown.
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/readyup.sp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#undef REQUIRE_PLUGIN
#include <caster_system>

#define PLUGIN_VERSION "10.2.4"
#define PLUGIN_VERSION "10.2.5"

public Plugin myinfo =
{
Expand Down
1 change: 1 addition & 0 deletions addons/sourcemod/scripting/readyup/action.inc
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ void InitiateLive(bool real = true)
if (real)
{
ClearSurvivorProgress();
ResetSurvivorState();
RestartCountdowns(true);

UTIL_WrapperForward(g_hLiveForward);
Expand Down
12 changes: 12 additions & 0 deletions addons/sourcemod/scripting/readyup/game.inc
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,18 @@ void ClearSurvivorProgress()
}
}

void ResetSurvivorState()
{
for (int i = 1; i <= MaxClients; i++)
{
if (!IsClientInGame(i) || GetClientTeam(i) != L4D2Team_Survivor)
continue;

SetEntProp(i, Prop_Data, "m_idrowndmg", 0.0);
SetEntProp(i, Prop_Data, "m_idrownrestored", 0.0);
}
}

void SetAllowSpawns(bool allow)
{
director_no_specials.BoolValue = allow;
Expand Down

0 comments on commit 3bb9e18

Please sign in to comment.