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