Skip to content

Commit

Permalink
Add isTankInPlay status to scoreboard update for improved game info s…
Browse files Browse the repository at this point in the history
…ynchronization
  • Loading branch information
altair-sossai committed Nov 15, 2024
1 parent d61c9e7 commit 6a30490
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified addons/sourcemod/plugins/optional/l4d2_gameinfo_sync.smx
Binary file not shown.
1 change: 1 addition & 0 deletions addons/sourcemod/scripting/l4d2_gameinfo_sync.sp
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ void SendScoreboard()
command.SetInt("maxBonus", maxBonus);
command.SetFloat("currentProgress", isInReady ? 0.0 : (GetCurrentProgress() / 100.0));
command.SetInt("currentProgressPoints", isInReady ? 0 : L4D_GetTeamScore(flipped ? 2 : 1));
command.SetBool("isTankInPlay", IsTankInPlay());

HTTPRequest request = BuildHTTPRequest("/api/game-info/scoreboard");

Expand Down

0 comments on commit 6a30490

Please sign in to comment.