KZGlobalTeam / gokz

GOKZ SourceMod Plugins
https://gokz.org
GNU General Public License v3.0
65 stars 15 forks source link

Only track jump during movement processing #480

Closed zer0k-z closed 5 months ago

zer0k-z commented 1 year ago

Fix a rare bug where your jump gets invalidated if the client/server gets a performance spike and spews broken jsalways stats like this:

zer0.k jumped 231.2947 units with a Multi Bunnyhop
KZT | 6 Strafes | 71% Sync | 243.86 Pre | 294.15 Max | 2 OL | 16 DA | 21.1° Width | 55.8 Height | 96 Airtime | 0.0 Offset | 0 Crouched
  #.  Sync      Gain      Loss      Airtime   Width     OL     DA     
  1.   88%       6.97      0.00       9%       12.0°     0      1
  2.   70%      10.78      0.74      20%       26.8°     2      2
  3.   75%      281.33     270.51      20%       25.4°     0      3
  4.   80%      12.18      0.00      20%       28.6°     0      2
  5.   73%      10.27      0.00      19%       25.7°     0      3
  6.   25%       1.54      2.46       8%        8.4°     0      5