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