]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/triggers.qh
Remove _all indirection
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / triggers.qh
1 #pragma once
2
3 const float SF_TRIGGER_INIT = 1;
4 const float SF_TRIGGER_UPDATE = 2;
5 const float SF_TRIGGER_RESET = 4;
6
7 const float     SPAWNFLAG_NOMESSAGE = 1;
8 const float     SPAWNFLAG_NOTOUCH = 1;
9
10 .bool pushable;
11
12 .float antiwall_flag; // Variable to define what to do with func_clientwall
13 // 0 == do nothing, 1 == deactivate, 2 == activate
14
15 .float height;
16
17 .float nottargeted;
18 #define IFTARGETED if(!this.nottargeted && this.targetname != "")
19
20 .float lip;
21
22 // used elsewhere (will fix)
23 #ifdef SVQC
24 void trigger_common_write(entity this, bool withtarget);
25
26 string trigger_magicear_processmessage_forallears(entity source, float teamsay, entity privatesay, string msgin);
27
28 void target_voicescript_next(entity pl);
29 void target_voicescript_clear(entity pl);
30 #endif
31
32 .float volume, atten;
33
34 .vector dest;
35
36 void FixSize(entity e);
37
38 #ifdef CSQC
39 void trigger_common_read(entity this, bool withtarget);
40 void trigger_remove_generic(entity this);
41
42 .float active;
43 .string target;
44 .string targetname;
45
46 const int ACTIVE_NOT            = 0;
47 const int ACTIVE_ACTIVE         = 1;
48 const int ACTIVE_IDLE           = 2;
49 const int ACTIVE_BUSY           = 2;
50 const int ACTIVE_TOGGLE         = 3;
51 #endif