]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/triggers.qh
take3: format 903 files
[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 // we love double negation around here
18 // TODO check why grep doesn't find any assignments to it
19 .float nottargeted;
20 #define THIS_TARGETED !this.nottargeted && this.targetname != ""
21
22 .float lip;
23
24 // used elsewhere (will fix)
25 #ifdef SVQC
26 void trigger_common_write(entity this, bool withtarget);
27
28 string trigger_magicear_processmessage_forallears(entity source, float teamsay, entity privatesay, string msgin);
29
30 void target_voicescript_next(entity pl);
31 void target_voicescript_clear(entity pl);
32
33 void SUB_UseTargets_PreventReuse(entity this, entity actor, entity trigger);
34 #endif
35
36 .float sub_target_used;
37
38 .float volume, atten;
39
40 .vector dest;
41
42 void FixSize(entity e);
43
44 #ifdef CSQC
45 void trigger_common_read(entity this, bool withtarget);
46 void trigger_remove_generic(entity this);
47
48 .float active;
49 .string target;
50 .string targetname;
51
52 const int ACTIVE_NOT        = 0;
53 const int ACTIVE_ACTIVE     = 1;
54 const int ACTIVE_IDLE       = 2;
55 const int ACTIVE_BUSY       = 2;
56 const int ACTIVE_TOGGLE     = 3;
57 #endif