]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/triggers.qh
Merge branch 'BuddyFriendGuy/mapStringFilter' into 'master'
[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 antiwall_flag; // Variable to define what to do with func_clientwall
14 // 0 == do nothing, 1 == deactivate, 2 == activate
15
16 .float height;
17
18 .float nottargeted;
19 #define IFTARGETED if(!self.nottargeted && self.targetname != "")
20
21 .float lip;
22
23 // used elsewhere (will fix)
24 #ifdef SVQC
25 void trigger_common_write(bool withtarget);
26
27 string trigger_magicear_processmessage_forallears(entity source, float teamsay, entity privatesay, string msgin);
28
29 void target_voicescript_next(entity pl);
30 void target_voicescript_clear(entity pl);
31 #endif
32
33 .float volume, atten;
34
35 .vector dest;
36
37 #ifdef CSQC
38 void trigger_common_read(bool withtarget);
39 void trigger_remove_generic();
40
41 .float active;
42 .string target;
43 .string targetname;
44
45 const int ACTIVE_NOT            = 0;
46 const int ACTIVE_ACTIVE         = 1;
47 const int ACTIVE_IDLE           = 2;
48 const int ACTIVE_BUSY           = 2;
49 const int ACTIVE_TOGGLE         = 3;
50 #endif
51
52 #endif