]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a note about known inaccuracy. Should still be very fine.
authorRudolf Polzer <divverent@xonotic.org>
Tue, 3 Jun 2014 20:09:32 +0000 (22:09 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 3 Jun 2014 20:09:32 +0000 (22:09 +0200)
qcsrc/server/anticheat.qc

index b2b6b3f683a89b9e71639583809d996df923dfca..e45f9a0a7ca375386371e61dc745872f84ebc633 100644 (file)
@@ -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);