]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/mapobjects/triggers.qh
Remove an obscure macro from trigger code that was hiding a simple targetname check
[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 .float lip;
12
13 // used elsewhere (will fix)
14 #ifdef SVQC
15 void trigger_common_write(entity this, bool withtarget);
16
17 string trigger_magicear_processmessage_forallears(entity source, float teamsay, entity privatesay, string msgin);
18
19 void target_voicescript_next(entity pl);
20 void target_voicescript_clear(entity pl);
21
22 void SUB_DontUseTargets(entity this, entity actor, entity trigger);
23 void SUB_UseTargets(entity this, entity actor, entity trigger);
24
25 void SUB_UseTargets_PreventReuse(entity this, entity actor, entity trigger);
26
27 // allow excluding certain .target* fields without needing to nullify them
28 // use BIT(1) through BIT(4)
29 void SUB_UseTargets_SkipTargets(entity this, entity actor, entity trigger, int skiptargets);
30
31 void generic_setactive(entity this, int act);
32 // generic methods for netlinked entities
33 void generic_netlinked_reset(entity this);
34 void generic_netlinked_setactive(entity this, int act);
35 // WARNING: DON'T USE, ONLY TO KEEP COMPATIBILITY BECAUSE OF SWITCH FROM .state TO .alive!!!!
36 void generic_netlinked_legacy_use(entity this, entity actor, entity trigger);
37 #endif
38
39 .float sub_target_used;
40
41 .float volume, atten;
42
43 .vector dest;
44
45 #ifdef CSQC
46 void trigger_common_read(entity this, bool withtarget);
47 void trigger_remove_generic(entity this);
48
49 .float active;
50 .string target;
51 .string targetname;
52 #endif