Skip to content

Commit

Permalink
Normalize tank and witch percentage values to float for accurate game…
Browse files Browse the repository at this point in the history
… info synchronization
  • Loading branch information
altair-sossai committed Nov 9, 2024
1 parent 2b23a19 commit 0a63911
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified addons/sourcemod/plugins/optional/l4d2_gameinfo_sync.smx
Binary file not shown.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/l4d2_gameinfo_sync.sp
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ void SendRound()

command.SetInt("areTeamsFlipped", GameRules_GetProp("m_bAreTeamsFlipped"));
command.SetInt("maxChapterProgressPoints", L4D_GetVersusMaxCompletionScore());
command.SetInt("tankPercent", g_iTankPercent);
command.SetInt("witchPercent", g_iWitchPercent);
command.SetFloat("tankPercent", g_iTankPercent / 100.0);
command.SetFloat("witchPercent", g_iWitchPercent / 100.0);

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

Expand Down

0 comments on commit 0a63911

Please sign in to comment.