X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fanticheat.qc;h=48c252def49ee3b9d0451fd321c2272c5dcbaae8;hb=d41d86bd2ecfd7e7152baef4d592d91c5fb15f6b;hp=7173ae5970721388811a5f639476540732851b54;hpb=cabba6eeb71f3ca612aa30bb8c7dad9cbc9c0d52;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/anticheat.qc b/qcsrc/server/anticheat.qc index 7173ae597..48c252def 100644 --- a/qcsrc/server/anticheat.qc +++ b/qcsrc/server/anticheat.qc @@ -1,13 +1,14 @@ #include "anticheat.qh" -#include "antilag.qh" -#include "autocvars.qh" -#include "defs.qh" -#include "miscfunctions.qh" - -#include "command/common.qh" #include #include +#include +#include +#include +#include +#include +#include +#include .float anticheat_jointime; @@ -202,9 +203,10 @@ void anticheat_report_to_eventlog(entity this) { } void anticheat_report_to_playerstats(entity this) { - PS_GR_P_ADDVAL(this, strcat(PLAYERSTATS_ANTICHEAT, "_time"), servertime - CS(this).anticheat_jointime); + PlayerStats_GameReport_Event_Player(this, + strcat(PLAYERSTATS_ANTICHEAT, "_time"), servertime - CS(this).anticheat_jointime); #define ANTICHEAT_REPORT_ONE(name, f, tmin, mi, ma) \ - PS_GR_P_ADDVAL(this, strcat(PLAYERSTATS_ANTICHEAT, name), f) + PlayerStats_GameReport_Event_Player(this, strcat(PLAYERSTATS_ANTICHEAT, name), f) ANTICHEATS(ANTICHEAT_REPORT_ONE); #undef ANTICHEAT_REPORT_ONE }