diff --git a/addons/sourcemod/scripting/gokz-jumpstats.sp b/addons/sourcemod/scripting/gokz-jumpstats.sp index 74d92202..9dc8585b 100644 --- a/addons/sourcemod/scripting/gokz-jumpstats.sp +++ b/addons/sourcemod/scripting/gokz-jumpstats.sp @@ -112,9 +112,10 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3 return Plugin_Continue; } -public void OnPlayerRunCmdPost(int client, int buttons, int impulse, const float vel[3], const float angles[3], int weapon, int subtype, int cmdnum, int tickcount, int seed, const int mouse[2]) +public Action Movement_OnPlayerMovePost(int client) { - OnPlayerRunCmdPost_JumpTracking(client); + Movement_OnPlayerMovePost_JumpTracking(client); + return Plugin_Continue; } public void Movement_OnStartTouchGround(int client) diff --git a/addons/sourcemod/scripting/gokz-jumpstats/jump_tracking.sp b/addons/sourcemod/scripting/gokz-jumpstats/jump_tracking.sp index acd94428..8850786f 100644 --- a/addons/sourcemod/scripting/gokz-jumpstats/jump_tracking.sp +++ b/addons/sourcemod/scripting/gokz-jumpstats/jump_tracking.sp @@ -1425,19 +1425,15 @@ public Action Movement_OnWalkMovePost(int client) return Plugin_Continue; } -public Action Movement_OnPlayerMovePost(int client) -{ - lastMovementProcessedTime[client] = jumpTrackers[client].tickCount; - return Plugin_Continue; -} -public void OnPlayerRunCmdPost_JumpTracking(int client) +public void Movement_OnPlayerMovePost_JumpTracking(int client) { if (!IsValidClient(client) || !IsPlayerAlive(client)) { return; } + lastMovementProcessedTime[client] = jumpTrackers[client].tickCount; // Check for always failstats if (doFailstatAlways[client]) {