]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/antilag.qh
Merge branch 'master' into martin-t/mg-solidpen
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / antilag.qh
1 #pragma once
2
3 void antilag_record(entity e, entity store, float t);
4 vector antilag_takebackorigin(entity e, entity store, float t);
5 void antilag_takeback(entity e, entity store, float t);
6 void antilag_restore(entity e, entity store);
7 void antilag_clear(entity e, entity store);
8
9 void antilag_takeback_all(entity ignore, float lag);
10 void antilag_restore_all(entity ignore);
11
12 .float antilag_debug;
13
14 #define ANTILAG_LATENCY(e) min(0.4, CS(e).ping * 0.001)
15 // add one ticrate?
16
17 /*
18 ==================
19 traceline_antilag
20
21 A version of traceline that must be used by SOLID_SLIDEBOX things that want to hit SOLID_CORPSE things with a trace attack
22 Additionally it moves players back into the past before the trace and restores them afterward.
23 ==================
24 */
25 void tracebox_antilag_force_wz (entity source, vector v1, vector mi, vector ma, vector v2, float nomonst, entity forent, float lag, float wz);
26 void traceline_antilag_force (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
27 void traceline_antilag (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
28 void tracebox_antilag (entity source, vector v1, vector mi, vector ma, vector v2, float nomonst, entity forent, float lag);
29 void WarpZone_traceline_antilag_force (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
30 void WarpZone_traceline_antilag (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
31 void WarpZone_tracebox_antilag (entity source, vector v1, vector mi, vector ma, vector v2, float nomonst, entity forent, float lag);