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:
Joe 2020-10-15 09:57:58 -05:00 committed by GitHub
parent 48ddc092ea
commit 62c75ac242
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 &&