]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/triggers.qh
Merge branch 'TimePath/experiments/csqc_prediction' into Mario/qc_physics
[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 .string bgmscript;
19 .float bgmscriptattack;
20 .float bgmscriptdecay;
21 .float bgmscriptsustain;
22 .float bgmscriptrelease;
23
24 .float lip;
25
26 // used elsewhere (will fix)
27 #ifdef SVQC
28 void spawnfunc_trigger_once();
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 #ifdef CSQC
40 float WarpZoneLib_ExactTrigger_Touch();
41 #define EXACTTRIGGER_TOUCH if(WarpZoneLib_ExactTrigger_Touch()) return
42
43 .float active;
44 .string target;
45 .string targetname;
46
47 const int ACTIVE_NOT            = 0;
48 const int ACTIVE_ACTIVE         = 1;
49 const int ACTIVE_IDLE           = 2;
50 const int ACTIVE_BUSY           = 2;
51 const int ACTIVE_TOGGLE         = 3;
52 #endif
53
54 #endif