]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/mapobjects/triggers.qh
bfb32696a53e16c94d7c1c3d55d8f38af1b1cb0a
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mapobjects / triggers.qh
1 #pragma once
2 #include "defs.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
26 void generic_setactive(entity this, int act);
27 // generic methods for netlinked entities
28 void generic_netlinked_reset(entity this);
29 void generic_netlinked_setactive(entity this, int act);
30 // WARNING: DON'T USE, ONLY TO KEEP COMPATIBILITY BECAUSE OF SWITCH FROM .state TO .alive!!!!
31 void generic_netlinked_legacy_use(entity this, entity actor, entity trigger);
32 #endif
33
34 .float sub_target_used;
35
36 .float volume, atten;
37
38 .vector dest;
39
40 void FixSize(entity e);
41
42 #ifdef CSQC
43 void trigger_common_read(entity this, bool withtarget);
44 void trigger_remove_generic(entity this);
45
46 .float active;
47 .string target;
48 .string targetname;
49 #endif