]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/triggers.qh
Move a spawnfunc definition to its correct location (small commit for a change)
[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 void trigger_setnextthink(entity e, float dtime);
27
28 // used elsewhere (will fix)
29 #ifdef SVQC
30 void trigger_common_write(bool withtarget);
31
32 string trigger_magicear_processmessage_forallears(entity source, float teamsay, entity privatesay, string msgin);
33
34 void target_voicescript_next(entity pl);
35 void target_voicescript_clear(entity pl);
36 #endif
37
38 .float volume, atten;
39
40 .vector dest;
41
42 #ifdef CSQC
43 void trigger_common_read(bool withtarget);
44 void trigger_remove_generic();
45
46 float WarpZoneLib_ExactTrigger_Touch();
47 #define EXACTTRIGGER_TOUCH if(WarpZoneLib_ExactTrigger_Touch()) return
48
49 .float active;
50 .string target;
51 .string targetname;
52
53 const int ACTIVE_NOT            = 0;
54 const int ACTIVE_ACTIVE         = 1;
55 const int ACTIVE_IDLE           = 2;
56 const int ACTIVE_BUSY           = 2;
57 const int ACTIVE_TOGGLE         = 3;
58 #endif
59
60 #endif