]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/triggers.qh
It actually compiles
[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 .string bgmscript;
11 .float bgmscriptattack;
12 .float bgmscriptdecay;
13 .float bgmscriptsustain;
14 .float bgmscriptrelease;
15
16 // used elsewhere (will fix)
17 #ifdef SVQC
18 void spawnfunc_trigger_once();
19 string trigger_magicear_processmessage_forallears(entity source, float teamsay, entity privatesay, string msgin);
20
21 void target_voicescript_next(entity pl);
22 void target_voicescript_clear(entity pl);
23 #endif
24
25 .float volume, atten;
26
27 .vector dest;
28
29 #ifdef CSQC
30 .float active;
31 .string target;
32 .string targetname;
33 #define ACTIVE_NOT              0
34 #define ACTIVE_ACTIVE   1
35 #define ACTIVE_IDLE     2
36 #define ACTIVE_BUSY     2
37 #define ACTIVE_TOGGLE   3
38 #endif