]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/g_subs.qh
Clean up mapobjects' includes a little bit, move some subs around
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_subs.qh
1 #pragma once
2
3 void SUB_NullThink(entity this);
4
5 /*
6 ==================
7 SUB_Friction
8
9 Applies some friction to this
10 ==================
11 */
12 .float friction;
13 void SUB_Friction (entity this);
14
15 /*
16 ==================
17 SUB_VanishOrRemove
18
19 Makes client invisible or removes non-client
20 ==================
21 */
22 void SUB_VanishOrRemove (entity ent);
23
24 void SUB_SetFade_Think (entity this);
25
26 /*
27 ==================
28 SUB_SetFade
29
30 Fade 'ent' out when time >= 'when'
31 ==================
32 */
33 void SUB_SetFade (entity ent, float when, float fadetime);
34
35 /*
36 ==================
37 main
38
39 unused but required by the engine
40 ==================
41 */
42 void main ();
43
44 // Misc
45
46 /*
47 ==================
48 traceline_antilag
49
50 A version of traceline that must be used by SOLID_SLIDEBOX things that want to hit SOLID_CORPSE things with a trace attack
51 Additionally it moves players back into the past before the trace and restores them afterward.
52 ==================
53 */
54 void tracebox_antilag_force_wz (entity source, vector v1, vector mi, vector ma, vector v2, float nomonst, entity forent, float lag, float wz);
55 void traceline_antilag_force (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
56 void traceline_antilag (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
57 void tracebox_antilag (entity source, vector v1, vector mi, vector ma, vector v2, float nomonst, entity forent, float lag);
58 void WarpZone_traceline_antilag_force (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
59 void WarpZone_traceline_antilag (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
60 void WarpZone_tracebox_antilag (entity source, vector v1, vector mi, vector ma, vector v2, float nomonst, entity forent, float lag);
61
62 float tracebox_inverted (vector v1, vector mi, vector ma, vector v2, float nomonsters, entity forent, float stopatentity, entity ignorestopatentity); // returns the number of traces done, for benchmarking
63
64 void traceline_inverted (vector v1, vector v2, float nomonsters, entity forent, float stopatentity, entity ignorestopatentity);
65
66 /*
67 ==================
68 findbetterlocation
69
70 Returns a point at least 12 units away from walls
71 (useful for explosion animations, although the blast is performed where it really happened)
72 Ripped from DPMod
73 ==================
74 */
75 vector findbetterlocation (vector org, float mindist);
76
77
78 .string lodtarget1;
79 .string lodtarget2;
80 .string lodmodel1;
81 .string lodmodel2;
82 .float lodmodelindex0;
83 .float lodmodelindex1;
84 .float lodmodelindex2;
85 .float loddistance1;
86 .float loddistance2;
87
88 bool LOD_customize(entity this, entity client);
89
90 void LOD_uncustomize(entity this);
91
92 void LODmodel_attach(entity this);