From: Rudolf Polzer Date: Tue, 3 Jun 2014 20:09:32 +0000 (+0200) Subject: Add a note about known inaccuracy. Should still be very fine. X-Git-Tag: xonotic-v0.8.0~210 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=1438a49e8eaf8b1f70cbcd36e72d91efeaa128dd;p=xonotic%2Fxonotic-data.pk3dir.git Add a note about known inaccuracy. Should still be very fine. --- 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);