]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/triggers.qh
Move entity spawnflags to a common file
[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 .float nottargeted;
12 #define IFTARGETED if(!this.nottargeted && this.targetname != "")
13
14 .float lip;
15
16 // used elsewhere (will fix)
17 #ifdef SVQC
18 void trigger_common_write(entity this, bool withtarget);
19
20 string trigger_magicear_processmessage_forallears(entity source, float teamsay, entity privatesay, string msgin);
21
22 void target_voicescript_next(entity pl);
23 void target_voicescript_clear(entity pl);
24
25 void SUB_UseTargets_PreventReuse(entity this, entity actor, entity trigger);
26 #endif
27
28 .float sub_target_used;
29
30 .float volume, atten;
31
32 .vector dest;
33
34 void FixSize(entity e);
35
36 #ifdef CSQC
37 void trigger_common_read(entity this, bool withtarget);
38 void trigger_remove_generic(entity this);
39
40 .float active;
41 .string target;
42 .string targetname;
43
44 const int ACTIVE_NOT            = 0;
45 const int ACTIVE_ACTIVE         = 1;
46 const int ACTIVE_IDLE           = 2;
47 const int ACTIVE_BUSY           = 2;
48 const int ACTIVE_TOGGLE         = 3;
49 #endif