From 1438a49e8eaf8b1f70cbcd36e72d91efeaa128dd Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 3 Jun 2014 22:09:32 +0200 Subject: [PATCH] Add a note about known inaccuracy. Should still be very fine. --- qcsrc/server/anticheat.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcsrc/server/anticheat.qc b/qcsrc/server/anticheat.qc index b2b6b3f68..e45f9a0a7 100644 --- a/qcsrc/server/anticheat.qc +++ b/qcsrc/server/anticheat.qc @@ -148,6 +148,8 @@ void anticheat_physics() const float falloff = 0.2; self.anticheat_speedhack_accu *= exp(-dt * falloff); self.anticheat_speedhack_accu += frametime * falloff; + // NOTE: at cl_netfps x, this actually averages not to 1, but to 1/x * falloff / (1 - exp(-1/x * falloff)) + // For 15 netfps (absolute minimum bearable), and 0.2 falloff, this is: 1.0067 self.anticheat_speedhack_lasttime = time; MEAN_ACCUMULATE(anticheat_speedhack_m1, self.anticheat_speedhack_accu, frametime); MEAN_ACCUMULATE(anticheat_speedhack_m2, self.anticheat_speedhack_accu, frametime); -- 2.39.2