From: Rudolf Polzer Date: Tue, 28 Dec 2010 18:34:45 +0000 (+0100) Subject: anticheat: also print the time the player was in the game X-Git-Tag: xonotic-v0.5.0~330^2~19 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0cbe35ff35640ee710ef8c143671e013ea4a3cf8;p=xonotic%2Fxonotic-data.pk3dir.git anticheat: also print the time the player was in the game --- diff --git a/qcsrc/server/anticheat.qc b/qcsrc/server/anticheat.qc index 1da6ad3ec..7a0eee9ca 100644 --- a/qcsrc/server/anticheat.qc +++ b/qcsrc/server/anticheat.qc @@ -1,3 +1,5 @@ +.float anticheat_jointime; + void mean_accumulate(entity e, .float a, .float c, float mean, float value, float weight) { if(weight == 0) @@ -155,6 +157,7 @@ void anticheat_report() { if(!autocvar_sv_eventlog) return; + GameLogEcho(strcat(":anticheat:_time:", ftos(self.playerid), ":", ftos(servertime - self.anticheat_jointime))); GameLogEcho(strcat(":anticheat:speedhack:", ftos(self.playerid), ":", ftos(MEAN_EVALUATE(anticheat_speedhack)))); GameLogEcho(strcat(":anticheat:div0_strafebot_old:", ftos(self.playerid), ":", ftos(MEAN_EVALUATE(anticheat_div0_strafebot_old)))); GameLogEcho(strcat(":anticheat:div0_strafebot_new:", ftos(self.playerid), ":", ftos(MEAN_EVALUATE(anticheat_div0_strafebot_new)))); @@ -169,6 +172,7 @@ void anticheat_serverframe() void anticheat_init() { self.anticheat_speedhack_offset = 0; + self.anticheat_jointime = servertime; } void anticheat_shutdown()