mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
reset stamina to 0 on restart (so scroll is less cancer) (#967)
* reset stamina to 0 on restart (so scroll is less cancer) * fix formatting Co-authored-by: KiD Fearless <kidfearless1@gmail.com>
This commit is contained in:
parent
48ddc092ea
commit
62c75ac242
@ -2888,6 +2888,11 @@ public void Shavit_OnWorldRecord(int client, int style, float time, int jumps, i
|
||||
|
||||
public void Shavit_OnRestart(int client, int track)
|
||||
{
|
||||
if(gEV_Type != Engine_TF2)
|
||||
{
|
||||
SetEntPropFloat(client, Prop_Send, "m_flStamina", 0.0);
|
||||
}
|
||||
|
||||
if(!gB_ClosedKZCP[client] &&
|
||||
gA_StyleSettings[gI_Style[client]].bKZCheckpoints &&
|
||||
GetClientMenu(client, null) == MenuSource_None &&
|
||||
|
||||
Loading…
Reference in New Issue
Block a user