]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/triggers.qh
Still broken, but more fun
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / triggers.qh
1 const float SF_TRIGGER_INIT = 1;
2 const float SF_TRIGGER_UPDATE = 2;
3 const float SF_TRIGGER_RESET = 4;
4
5 const float     SPAWNFLAG_NOMESSAGE = 1;
6 const float     SPAWNFLAG_NOTOUCH = 1;
7
8 .void() trigger_touch;
9
10 .float height;
11
12 .float nottargeted;
13 #define IFTARGETED if(!self.nottargeted && self.targetname != "")
14
15 .string bgmscript;
16 .float bgmscriptattack;
17 .float bgmscriptdecay;
18 .float bgmscriptsustain;
19 .float bgmscriptrelease;
20
21 // used elsewhere (will fix)
22 #ifdef SVQC
23 void spawnfunc_trigger_once();
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 .float active;
36 .string target;
37 .string targetname;
38 #define ACTIVE_NOT              0
39 #define ACTIVE_ACTIVE   1
40 #define ACTIVE_IDLE     2
41 #define ACTIVE_BUSY     2
42 #define ACTIVE_TOGGLE   3
43 #endif