|
Xonotic
|
#include "anticheat.qh"#include <common/playerstats.qh>#include <common/state.qh>#include <common/stats.qh>#include <common/weapons/_all.qh>#include <server/antilag.qh>#include <server/client.qh>#include <server/command/common.qh>#include <server/gamelog.qh>#include <server/main.qh>
Include dependency graph for anticheat.qc:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | ANTICHEAT_REGISTER_ONE(name, unused_f, unused_tmin, unused_mi, unused_ma) PlayerStats_GameReport_AddEvent(strcat(PLAYERSTATS_ANTICHEAT, name)) |
| #define | ANTICHEAT_REPORT_ONE(name, f, tmin, mi, ma) GameLogEcho(strcat(":anticheat:", name, ":", anticheat_display(f, servertime - CS(this).anticheat_jointime, tmin, mi, ma))) |
| #define | ANTICHEAT_REPORT_ONE(name, f, tmin, mi, ma) PlayerStats_GameReport_Event_Player(this, strcat(PLAYERSTATS_ANTICHEAT, name), f) |
| #define | ANTICHEATS(ANTICHEAT) |
Functions | |
| string | anticheat_display (float f, float t, float tmin, float mi, float ma) |
| void | anticheat_endframe () |
| void | anticheat_fixangle (entity this) |
| void | anticheat_init (entity this) |
| void | anticheat_physics (entity this) |
| void | anticheat_prethink (entity this) |
| void | anticheat_register_to_playerstats () |
| void | anticheat_report_to_eventlog (entity this) |
| void | anticheat_report_to_playerstats (entity this) |
| void | anticheat_spectatecopy (entity this, entity spectatee) |
| void | anticheat_startframe () |
| MEAN_DECLARE (anticheat_div0_evade, 5) | |
| MEAN_DECLARE (anticheat_div0_strafebot_old, 5) | |
| MEAN_DECLARE (anticheat_div0_strafebot_new, 5) | |
| MEAN_DECLARE (anticheat_idle_snapaim_signal, 5) | |
| MEAN_DECLARE (anticheat_idle_snapaim_noise, 1) | |
| MEAN_DECLARE (anticheat_idle_snapaim_m2, 2) | |
| MEAN_DECLARE (anticheat_idle_snapaim_m3, 3) | |
| MEAN_DECLARE (anticheat_idle_snapaim_m4, 4) | |
| MEAN_DECLARE (anticheat_idle_snapaim_m7, 7) | |
| MEAN_DECLARE (anticheat_idle_snapaim_m10, 10) | |
| MEAN_DECLARE (anticheat_speedhack, 5) | |
| MEAN_DECLARE (anticheat_speedhack_m1, 1) | |
| MEAN_DECLARE (anticheat_speedhack_m2, 2) | |
| MEAN_DECLARE (anticheat_speedhack_m3, 3) | |
| MEAN_DECLARE (anticheat_speedhack_m4, 4) | |
| MEAN_DECLARE (anticheat_speedhack_m5, 5) | |
| float | movement_oddity (vector m0, vector m1) |
| #define ANTICHEAT_REGISTER_ONE | ( | name, | |
| unused_f, | |||
| unused_tmin, | |||
| unused_mi, | |||
| unused_ma | |||
| ) | PlayerStats_GameReport_AddEvent(strcat(PLAYERSTATS_ANTICHEAT, name)) |
Referenced by anticheat_register_to_playerstats().
| #define ANTICHEAT_REPORT_ONE | ( | name, | |
| f, | |||
| tmin, | |||
| mi, | |||
| ma | |||
| ) | GameLogEcho(strcat(":anticheat:", name, ":", anticheat_display(f, servertime - CS(this).anticheat_jointime, tmin, mi, ma))) |
Referenced by anticheat_report_to_eventlog(), and anticheat_report_to_playerstats().
| #define ANTICHEAT_REPORT_ONE | ( | name, | |
| f, | |||
| tmin, | |||
| mi, | |||
| ma | |||
| ) | PlayerStats_GameReport_Event_Player(this, strcat(PLAYERSTATS_ANTICHEAT, name), f) |
| #define ANTICHEATS | ( | ANTICHEAT | ) |
Definition at line 176 of file anticheat.qc.
Referenced by anticheat_register_to_playerstats(), anticheat_report_to_eventlog(), and anticheat_report_to_playerstats().
Definition at line 163 of file anticheat.qc.
References ftos(), and strcat().
Here is the call graph for this function:| void anticheat_endframe | ( | ) |
Definition at line 234 of file anticheat.qc.
References anticheat_div0_evade_evasion_delta, anticheat_fixangle(), FOREACH_CLIENT, frametime, and random().
Referenced by EndFrame().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 229 of file anticheat.qc.
References ANTILAG_LATENCY, CS(), and servertime.
Referenced by anticheat_endframe(), and WarpZone_PostTeleportPlayer_Callback().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 240 of file anticheat.qc.
References CS(), and servertime.
Referenced by ClientState_attach(), and PlayerState_detach().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 64 of file anticheat.qc.
References anticheat_div0_evade_evasion_delta, anticheat_div0_evade_forward_initial, anticheat_div0_evade_offset, anticheat_div0_strafebot_forward_prev, anticheat_div0_strafebot_movement_prev, anticheat_fixangle_endtime, anticheat_speedhack_accu, anticheat_speedhack_movetime_frac, anticheat_speedhack_offset, autocvar_slowmo, CS(), exp(), fabs(), falloff, floor(), frametime, M_PI, makevectors, max(), MEAN_ACCUMULATE, movement, movement_oddity(), servertime, sys_frametime, time, v_angle, and v_forward.
Referenced by sys_phys_monitor().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 157 of file anticheat.qc.
References CS().
Referenced by PlayerPreThink().
Here is the call graph for this function:
Here is the caller graph for this function:| void anticheat_register_to_playerstats | ( | ) |
Definition at line 214 of file anticheat.qc.
References ANTICHEAT_REGISTER_ONE, ANTICHEATS, and strcat().
Here is the call graph for this function:Definition at line 195 of file anticheat.qc.
References anticheat_jointime, ANTICHEAT_REPORT_ONE, ANTICHEATS, autocvar_sv_eventlog, CS(), ftos(), GameLogEcho(), playerid, servertime, and strcat().
Referenced by ClientState_attach(), ClientState_detach(), and GameCommand_anticheat().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 205 of file anticheat.qc.
References anticheat_jointime, ANTICHEAT_REPORT_ONE, ANTICHEATS, CS(), servertime, and strcat().
Here is the call graph for this function:Definition at line 151 of file anticheat.qc.
Referenced by SpectateCopy().
Here is the call graph for this function:
Here is the caller graph for this function:| void anticheat_startframe | ( | ) |
Definition at line 224 of file anticheat.qc.
References anticheat_div0_evade_evasion_delta, frametime, and random().
Referenced by StartFrame().
Here is the call graph for this function:
Here is the caller graph for this function:| MEAN_DECLARE | ( | anticheat_div0_evade | , |
| 5 | |||
| ) |
| MEAN_DECLARE | ( | anticheat_div0_strafebot_old | , |
| 5 | |||
| ) |
| MEAN_DECLARE | ( | anticheat_div0_strafebot_new | , |
| 5 | |||
| ) |
| MEAN_DECLARE | ( | anticheat_idle_snapaim_signal | , |
| 5 | |||
| ) |
| MEAN_DECLARE | ( | anticheat_idle_snapaim_noise | , |
| 1 | |||
| ) |
| MEAN_DECLARE | ( | anticheat_idle_snapaim_m2 | , |
| 2 | |||
| ) |
| MEAN_DECLARE | ( | anticheat_idle_snapaim_m3 | , |
| 3 | |||
| ) |
| MEAN_DECLARE | ( | anticheat_idle_snapaim_m4 | , |
| 4 | |||
| ) |
| MEAN_DECLARE | ( | anticheat_idle_snapaim_m7 | , |
| 7 | |||
| ) |
| MEAN_DECLARE | ( | anticheat_idle_snapaim_m10 | , |
| 10 | |||
| ) |
| MEAN_DECLARE | ( | anticheat_speedhack | , |
| 5 | |||
| ) |
| MEAN_DECLARE | ( | anticheat_speedhack_m1 | , |
| 1 | |||
| ) |
| MEAN_DECLARE | ( | anticheat_speedhack_m2 | , |
| 2 | |||
| ) |
| MEAN_DECLARE | ( | anticheat_speedhack_m3 | , |
| 3 | |||
| ) |
| MEAN_DECLARE | ( | anticheat_speedhack_m4 | , |
| 4 | |||
| ) |
| MEAN_DECLARE | ( | anticheat_speedhack_m5 | , |
| 5 | |||
| ) |
Definition at line 55 of file anticheat.qc.
References cos(), M_PI, and normalize().
Referenced by anticheat_physics().
Here is the call graph for this function:
Here is the caller graph for this function:| float anticheat_div0_evade_evasion_delta |
Definition at line 17 of file anticheat.qc.
Referenced by anticheat_endframe(), anticheat_physics(), and anticheat_startframe().
| vector anticheat_div0_evade_forward_initial |
Definition at line 20 of file anticheat.qc.
Referenced by anticheat_physics().
| float anticheat_div0_evade_offset |
Definition at line 18 of file anticheat.qc.
Referenced by anticheat_physics().
| vector anticheat_div0_evade_v_angle |
Definition at line 19 of file anticheat.qc.
| vector anticheat_div0_strafebot_forward_prev |
Definition at line 26 of file anticheat.qc.
Referenced by anticheat_physics().
| vector anticheat_div0_strafebot_movement_prev |
Definition at line 23 of file anticheat.qc.
Referenced by anticheat_physics().
| float anticheat_fixangle_endtime |
Definition at line 15 of file anticheat.qc.
Referenced by anticheat_physics().
| float anticheat_jointime |
Definition at line 13 of file anticheat.qc.
Referenced by anticheat_report_to_eventlog(), and anticheat_report_to_playerstats().
| float anticheat_speedhack_accu |
Definition at line 47 of file anticheat.qc.
Referenced by anticheat_physics().
| float anticheat_speedhack_lasttime |
Definition at line 48 of file anticheat.qc.
| float anticheat_speedhack_movetime |
Definition at line 44 of file anticheat.qc.
| float anticheat_speedhack_movetime_count |
Definition at line 44 of file anticheat.qc.
| float anticheat_speedhack_movetime_frac |
Definition at line 44 of file anticheat.qc.
Referenced by anticheat_physics().
| float anticheat_speedhack_offset |
Definition at line 43 of file anticheat.qc.
Referenced by anticheat_physics().