mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-15 18:18:44 +00:00
Fix buttons not updating for replay bots.
This commit is contained in:
parent
c5ebe2ee5c
commit
f8b4c98b8b
@ -230,15 +230,22 @@ public void Shavit_OnStyleConfigLoaded(int styles)
|
||||
}
|
||||
}
|
||||
|
||||
public Action Shavit_OnPlayerRunCmd(int client, int &buttons)
|
||||
public Action OnPlayerRunCmd(int client, int &buttons)
|
||||
{
|
||||
if(IsFakeClient(client) && gI_Buttons[client] != buttons)
|
||||
if(IsFakeClient(client))
|
||||
{
|
||||
gI_Buttons[client] = buttons;
|
||||
DoButtons(client, buttons);
|
||||
}
|
||||
}
|
||||
|
||||
public Action Shavit_OnUserCmdPre(int client, int &buttons, int &impulse, float vel[3], float angles[3], TimerStatus status, int track, int style, any stylesettings[STYLESETTINGS_SIZE])
|
||||
{
|
||||
DoButtons(client, buttons);
|
||||
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
void DoButtons(int client, int buttons)
|
||||
{
|
||||
if(gI_Buttons[client] != buttons)
|
||||
{
|
||||
@ -252,8 +259,6 @@ public Action Shavit_OnUserCmdPre(int client, int &buttons, int &impulse, float
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
public void OnClientPutInServer(int client)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user