]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/miscfunctions.qh
Merge branch 'master' into bones_was_here/q3compat
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / miscfunctions.qh
1 #pragma once
2
3 #include <common/weapons/_all.qh>
4 #include <common/stats.qh>
5 #include <server/client.qh>
6 #include <server/world.qh>
7
8 #include <server/intermission.qh>
9 #include <server/items/items.qh>
10
11 #include <server/mutators/_mod.qh>
12
13 #include <common/constants.qh>
14 #include <common/mapinfo.qh>
15 #include <common/turrets/all.qh>
16
17 float trace_hits_box_1d(float end, float thmi, float thma);
18
19 float trace_hits_box(vector start, vector end, vector thmi, vector thma);
20
21 float tracebox_hits_box(vector start, vector mi, vector ma, vector end, vector thmi, vector thma);
22
23 void crosshair_trace(entity pl);
24
25 void crosshair_trace_plusvisibletriggers(entity pl);
26 void WarpZone_crosshair_trace_plusvisibletriggers(entity pl);
27 void crosshair_trace_plusvisibletriggers__is_wz(entity pl, bool is_wz);
28
29 string uid2name(string myuid);
30
31 bool MoveToRandomLocationWithinBounds(entity e, vector boundmin, vector boundmax, float goodcontents, float badcontents, float badsurfaceflags, int attempts, float maxaboveground, float minviewdistance);
32
33 float MoveToRandomMapLocation(entity e, float goodcontents, float badcontents, float badsurfaceflags, float attempts, float maxaboveground, float minviewdistance);
34
35 float tracebox_hits_box(vector start, vector mi, vector ma, vector end, vector thmi, vector thma);
36
37 void traceline_antilag (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
38
39 void WarpZone_crosshair_trace(entity pl);
40
41 void WarpZone_traceline_antilag (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
42
43 #define PROJECTILE_TOUCH(e,t) MACRO_BEGIN if (WarpZone_Projectile_Touch(e,t)) return; MACRO_END
44
45 // copies a string to a tempstring (so one can strunzone it)
46 string strcat1(string s) = #115; // FRIK_FILE
47
48 IntrusiveList g_ctrace_changed;
49 STATIC_INIT(g_ctrace_changed) { g_ctrace_changed = IL_NEW(); }