]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/antilag.qh
Purge autocvars.qh from the codebase, cvars are defined in the headers of the feature...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / antilag.qh
1 #pragma once
2
3 int autocvar_g_antilag;
4 float autocvar_g_antilag_nudge;
5
6 void antilag_record(entity e, entity store, float t);
7 vector antilag_takebackorigin(entity e, entity store, float t);
8 void antilag_takeback(entity e, entity store, float t);
9 void antilag_restore(entity e, entity store);
10 void antilag_clear(entity e, entity store);
11
12 void antilag_takeback_all(entity ignore, float lag);
13 void antilag_restore_all(entity ignore);
14
15 float antilag_getlag(entity e); // returns antilag latency for clients, plus any modifiers (such as noantilag)
16
17 .float antilag_debug;
18
19 #define ANTILAG_LATENCY(e) min(0.4, CS(e).ping * 0.001)
20 // add one ticrate?
21
22 /*
23 ==================
24 traceline_antilag
25
26 A version of traceline that must be used by SOLID_SLIDEBOX things that want to hit SOLID_CORPSE things with a trace attack
27 Additionally it moves players back into the past before the trace and restores them afterward.
28 ==================
29 */
30 void tracebox_antilag_force_wz (entity source, vector v1, vector mi, vector ma, vector v2, float nomonst, entity forent, float lag, float wz);
31 void traceline_antilag_force (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
32 void traceline_antilag (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
33 void tracebox_antilag (entity source, vector v1, vector mi, vector ma, vector v2, float nomonst, entity forent, float lag);
34 void WarpZone_traceline_antilag_force (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
35 void WarpZone_traceline_antilag (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
36 void WarpZone_tracebox_antilag (entity source, vector v1, vector mi, vector ma, vector v2, float nomonst, entity forent, float lag);