Skip to content

Commit

Permalink
make shavit-hud update topleft on track change
Browse files Browse the repository at this point in the history
  • Loading branch information
rtldg committed Dec 30, 2021
1 parent cd2a742 commit 431fd18
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions addons/sourcemod/scripting/shavit-hud.sp
Original file line number Diff line number Diff line change
Expand Up @@ -2225,6 +2225,14 @@ public void Shavit_OnStyleChanged(int client, int oldstyle, int newstyle, int tr
}
}

public void Shavit_OnTrackChanged(int client, int oldtrack, int newtrack)
{
if (IsClientInGame(client))
{
UpdateTopLeftHUD(client, false);
}
}

public int Native_ForceHUDUpdate(Handle handler, int numParams)
{
int clients[MAXPLAYERS+1];
Expand Down

0 comments on commit 431fd18

Please sign in to comment.