]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/triggers.qh
Merge master into qc_physics_prehax (blame TimePath if it's completely broken)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / triggers.qh
1 #ifndef TRIGGERS_H
2 #define TRIGGERS_H
3
4 const float SF_TRIGGER_INIT = 1;
5 const float SF_TRIGGER_UPDATE = 2;
6 const float SF_TRIGGER_RESET = 4;
7
8 const float     SPAWNFLAG_NOMESSAGE = 1;
9 const float     SPAWNFLAG_NOTOUCH = 1;
10
11 .void() trigger_touch;
12
13 .float height;
14
15 .float nottargeted;
16 #define IFTARGETED if(!self.nottargeted && self.targetname != "")
17
18 .float lip;
19
20 // used elsewhere (will fix)
21 #ifdef SVQC
22 void trigger_common_write(bool withtarget);
23
24 string trigger_magicear_processmessage_forallears(entity source, float teamsay, entity privatesay, string msgin);
25
26 void target_voicescript_next(entity pl);
27 void target_voicescript_clear(entity pl);
28 #endif
29
30 .float volume, atten;
31
32 .vector dest;
33
34 #ifdef CSQC
35 void trigger_common_read(bool withtarget);
36 void trigger_remove_generic();
37
38 .float active;
39 .string target;
40 .string targetname;
41
42 const int ACTIVE_NOT            = 0;
43 const int ACTIVE_ACTIVE         = 1;
44 const int ACTIVE_IDLE           = 2;
45 const int ACTIVE_BUSY           = 2;
46 const int ACTIVE_TOGGLE         = 3;
47 #endif
48
49 #endif