|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#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>Go to the source code of this file.
Macros | |
| #define | ANTICHEAT_REGISTER_ONE(name, unused_f, unused_tmin, unused_mi, unused_ma) |
| #define | ANTICHEAT_REPORT_ONE(name, f, tmin, mi, ma) |
| #define | ANTICHEAT_REPORT_ONE(name, f, tmin, mi, ma) |
| #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_snapback, 5) | |
| MEAN_DECLARE (anticheat_div0_strafebot_new, 5) | |
| MEAN_DECLARE (anticheat_div0_strafebot_old, 5) | |
| MEAN_DECLARE (anticheat_idle_snapaim_m10, 10) | |
| 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_noise, 1) | |
| MEAN_DECLARE (anticheat_idle_snapaim_signal, 5) | |
| 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 ) |
Referenced by anticheat_register_to_playerstats().
| #define ANTICHEAT_REPORT_ONE | ( | name, | |
| f, | |||
| tmin, | |||
| mi, | |||
| ma ) |
Referenced by anticheat_report_to_eventlog(), and anticheat_report_to_playerstats().
| #define ANTICHEAT_REPORT_ONE | ( | name, | |
| f, | |||
| tmin, | |||
| mi, | |||
| ma ) |
| #define ANTICHEATS | ( | ANTICHEAT | ) |
Definition at line 191 of file anticheat.qc.
Referenced by anticheat_register_to_playerstats(), anticheat_report_to_eventlog(), and anticheat_report_to_playerstats().
| void anticheat_endframe | ( | ) |
Definition at line 250 of file anticheat.qc.
References anticheat_div0_evade_evasion_delta, anticheat_fixangle(), FOREACH_CLIENT, frametime, and random().
Referenced by EndFrame().
Definition at line 245 of file anticheat.qc.
References ANTILAG_LATENCY, CS(), entity(), and servertime.
Referenced by anticheat_endframe(), and WarpZone_PostTeleportPlayer_Callback().
Definition at line 256 of file anticheat.qc.
References CS(), entity(), and servertime.
Referenced by ClientState_attach().
Definition at line 67 of file anticheat.qc.
References angle, 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_lasttime, anticheat_speedhack_movetime_frac, anticheat_speedhack_offset, autocvar_slowmo, bound(), CS(), entity(), exp(), fabs(), falloff, floor(), frametime, M_PI, makevectors, max(), MEAN_ACCUMULATE, movement, movement_oddity(), servertime, sys_frametime, time, v_angle, v_forward, vector, and vlen().
Referenced by sys_phys_monitor().
Definition at line 172 of file anticheat.qc.
References CS(), and entity().
Referenced by PlayerFrame().
| void anticheat_register_to_playerstats | ( | ) |
Definition at line 230 of file anticheat.qc.
References ANTICHEAT_REGISTER_ONE, ANTICHEATS, PLAYERSTATS_ANTICHEAT, PlayerStats_GameReport_AddEvent(), and strcat().
Referenced by PlayerStats_GameReport_Init().
Definition at line 211 of file anticheat.qc.
References anticheat_jointime, ANTICHEAT_REPORT_ONE, ANTICHEATS, autocvar_sv_eventlog, CS(), entity(), ftos(), GameLogEcho(), playerid, servertime, and strcat().
Referenced by ClientState_detach(), and GameCommand_anticheat().
Definition at line 221 of file anticheat.qc.
References anticheat_jointime, ANTICHEAT_REPORT_ONE, ANTICHEATS, CS(), entity(), PLAYERSTATS_ANTICHEAT, PlayerStats_GameReport_Event_Player, servertime, and strcat().
Referenced by PlayerStats_GameReport_FinalizePlayer().
Definition at line 166 of file anticheat.qc.
References angles, CS(), and entity().
Referenced by SpectateCopy().
| void anticheat_startframe | ( | ) |
Definition at line 240 of file anticheat.qc.
References anticheat_div0_evade_evasion_delta, frametime, and random().
Referenced by StartFrame().
| MEAN_DECLARE | ( | anticheat_div0_evade | , |
| 5 | ) |
| MEAN_DECLARE | ( | anticheat_div0_snapback | , |
| 5 | ) |
| MEAN_DECLARE | ( | anticheat_div0_strafebot_new | , |
| 5 | ) |
| MEAN_DECLARE | ( | anticheat_div0_strafebot_old | , |
| 5 | ) |
| MEAN_DECLARE | ( | anticheat_idle_snapaim_m10 | , |
| 10 | ) |
| 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_noise | , |
| 1 | ) |
| MEAN_DECLARE | ( | anticheat_idle_snapaim_signal | , |
| 5 | ) |
| 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 58 of file anticheat.qc.
References cos(), M_PI, normalize(), and vector.
Referenced by anticheat_physics().
| 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_snapback_prev |
Definition at line 29 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 50 of file anticheat.qc.
Referenced by anticheat_physics().
| float anticheat_speedhack_lasttime |
Definition at line 51 of file anticheat.qc.
Referenced by anticheat_physics().
| float anticheat_speedhack_movetime |
Definition at line 47 of file anticheat.qc.
| float anticheat_speedhack_movetime_count |
Definition at line 47 of file anticheat.qc.
| float anticheat_speedhack_movetime_frac |
Definition at line 47 of file anticheat.qc.
Referenced by anticheat_physics().
| float anticheat_speedhack_offset |
Definition at line 46 of file anticheat.qc.
Referenced by anticheat_physics().