mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-06 18:08:26 +00:00
update topleft on when changing spectatee
This commit is contained in:
parent
5d47c2dd1b
commit
b4b79d2159
@ -244,6 +244,10 @@ public void OnPluginStart()
|
||||
RegConsoleCmd("sm_truvel", Command_TrueVel, "Toggles 2D ('true') velocity. (alias for sm_truevel)");
|
||||
RegConsoleCmd("sm_2dvel", Command_TrueVel, "Toggles 2D ('true') velocity. (alias for sm_truevel)");
|
||||
|
||||
AddCommandListener(Command_SpecNextPrev, "spec_player");
|
||||
AddCommandListener(Command_SpecNextPrev, "spec_next");
|
||||
AddCommandListener(Command_SpecNextPrev, "spec_prev");
|
||||
|
||||
// cookies
|
||||
gH_HUDCookie = RegClientCookie("shavit_hud_setting", "HUD settings", CookieAccess_Protected);
|
||||
gH_HUDCookieMain = RegClientCookie("shavit_hud_settingmain", "HUD settings for hint text.", CookieAccess_Protected);
|
||||
@ -559,6 +563,22 @@ void ToggleHUD(int client, int hud, bool chat)
|
||||
}
|
||||
}
|
||||
|
||||
void Frame_UpdateTopLeftHUD(int serial)
|
||||
{
|
||||
int client = GetClientFromSerial(serial);
|
||||
|
||||
if (client)
|
||||
{
|
||||
UpdateTopLeftHUD(client, false);
|
||||
}
|
||||
}
|
||||
|
||||
public Action Command_SpecNextPrev(int client, const char[] command, int args)
|
||||
{
|
||||
RequestFrame(Frame_UpdateTopLeftHUD, GetClientSerial(client));
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
public Action Command_Master(int client, int args)
|
||||
{
|
||||
ToggleHUD(client, HUD_MASTER, true);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user