Skip to content

Commit

Permalink
Updated current plugin
Browse files Browse the repository at this point in the history
- No longer takes dead survivors into account when calculating the current percentage.
  • Loading branch information
SirPlease committed Jan 8, 2024
1 parent 14399c0 commit 615d94d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified addons/sourcemod/plugins/optional/current.smx
Binary file not shown.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/current.sp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public Plugin myinfo =
name = "L4D2 Survivor Progress",
author = "CanadaRox, Visor",
description = "Print survivor progress in flow percents ",
version = "2.0.2",
version = "2.0.3",
url = "https://github.com/SirPlease/L4D2-Competitive-Rework"
};

Expand Down Expand Up @@ -44,7 +44,7 @@ float GetMaxSurvivorCompletion()
float flow = 0.0, tmp_flow = 0.0, origin[3];
Address pNavArea;
for (int i = 1; i <= MaxClients; i++) {
if (IsClientInGame(i) && GetClientTeam(i) == TEAM_SURVIVORS) {
if (IsClientInGame(i) && GetClientTeam(i) == TEAM_SURVIVORS && IsPlayerAlive(i)) {
GetClientAbsOrigin(i, origin);
pNavArea = L4D2Direct_GetTerrorNavArea(origin);
if (pNavArea != Address_Null) {
Expand Down

0 comments on commit 615d94d

Please sign in to comment.