]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/triggers.qh
Merge branch 'master' into DefaultUser/trigger_cleanup
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / triggers.qh
1 #pragma once
2 #include "spawnflags.qh"
3
4 .bool pushable;
5
6 .float antiwall_flag; // Variable to define what to do with func_clientwall
7 // 0 == do nothing, 1 == deactivate, 2 == activate
8
9 .float height;
10
11 #define IFTARGETED if(this.targetname && this.targetname != "")
12
13 .float lip;
14
15 // used elsewhere (will fix)
16 #ifdef SVQC
17 void trigger_common_write(entity this, bool withtarget);
18
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
24 void SUB_UseTargets_PreventReuse(entity this, entity actor, entity trigger);
25 #endif
26
27 .float sub_target_used;
28
29 .float volume, atten;
30
31 .vector dest;
32
33 void FixSize(entity e);
34
35 #ifdef CSQC
36 void trigger_common_read(entity this, bool withtarget);
37 void trigger_remove_generic(entity this);
38
39 .float active;
40 .string target;
41 .string targetname;
42
43 const int ACTIVE_NOT            = 0;
44 const int ACTIVE_ACTIVE         = 1;
45 const int ACTIVE_IDLE           = 2;
46 const int ACTIVE_BUSY           = 2;
47 const int ACTIVE_TOGGLE         = 3;
48 #endif