Xonotic
antilag.qh
Go to the documentation of this file.
1 #pragma once
2 
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 
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);
void traceline_antilag_force(entity source, vector v1, vector v2, float nomonst, entity forent, float lag)
Definition: antilag.qc:199
float antilag_getlag(entity e)
Definition: antilag.qc:151
entity() spawn
void antilag_record(entity e, entity store, float t)
Definition: antilag.qc:21
float autocvar_g_antilag_nudge
Definition: antilag.qh:4
void antilag_takeback(entity e, entity store, float t)
Definition: antilag.qc:86
void tracebox_antilag(entity source, vector v1, vector mi, vector ma, vector v2, float nomonst, entity forent, float lag)
Definition: antilag.qc:210
void traceline_antilag(entity source, vector v1, vector v2, float nomonst, entity forent, float lag)
Definition: antilag.qc:203
void WarpZone_traceline_antilag(entity source, vector v1, vector v2, float nomonst, entity forent, float lag)
Definition: antilag.qc:221
int autocvar_g_antilag
Definition: antilag.qh:3
void WarpZone_tracebox_antilag(entity source, vector v1, vector mi, vector ma, vector v2, float nomonst, entity forent, float lag)
Definition: antilag.qc:228
vector(float skel, float bonenum) _skel_get_boneabs_hidden
void WarpZone_traceline_antilag_force(entity source, vector v1, vector v2, float nomonst, entity forent, float lag)
Definition: antilag.qc:217
void antilag_restore_all(entity ignore)
Definition: antilag.qc:138
void tracebox_antilag_force_wz(entity source, vector v1, vector mi, vector ma, vector v2, float nomonst, entity forent, float lag, float wz)
Definition: antilag.qc:169
void antilag_clear(entity e, entity store)
Definition: antilag.qc:114
void antilag_restore(entity e, entity store)
Definition: antilag.qc:101
vector antilag_takebackorigin(entity e, entity store, float t)
Definition: antilag.qc:60
float antilag_debug
Definition: antilag.qh:17
void antilag_takeback_all(entity ignore, float lag)
Definition: antilag.qc:125