Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
triggers.qh
Go to the documentation of this file.
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// handy fields used by a lot of the codebase, but more importantly used by map objects
14.float cnt;
15.float count;
16
17// used elsewhere (will fix)
18#ifdef SVQC
19.string message2;
20
21void trigger_common_write(entity this, bool withtarget);
22
23string trigger_magicear_processmessage_forallears(entity source, float teamsay, entity privatesay, string msgin);
24
27
28void SUB_DontUseTargets(entity this, entity actor, entity trigger);
29void SUB_UseTargets(entity this, entity actor, entity trigger);
30
31void SUB_UseTargets_PreventReuse(entity this, entity actor, entity trigger);
32
33// allow excluding certain .target* fields without needing to nullify them
34// use BIT(1) through BIT(4)
35void SUB_UseTargets_SkipTargets(entity this, entity actor, entity trigger, int skiptargets);
36
37void generic_setactive(entity this, int act);
38// generic methods for netlinked entities
40void generic_netlinked_setactive(entity this, int act);
41// WARNING: DON'T USE, ONLY TO KEEP COMPATIBILITY BECAUSE OF SWITCH FROM .state TO .alive!!!!
42void generic_netlinked_legacy_use(entity this, entity actor, entity trigger);
43#endif
44
46
47.float volume, atten;
48
49.vector dest;
50
51#ifdef CSQC
52void trigger_common_read(entity this, bool withtarget);
54
55.string target;
56.string targetname;
57#endif
float height
Definition bobbing.qc:3
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
float cnt
Definition powerups.qc:24
float count
Definition powerups.qc:22
bool pushable
Definition items.qc:14
vector dest
Definition jumppads.qh:54
float lip
Definition subs.qh:40
float volume
Definition triggers.qh:47
void trigger_remove_generic(entity this)
string message2
Definition triggers.qh:19
float atten
Definition triggers.qh:47
void generic_netlinked_reset(entity this)
Definition triggers.qc:76
void generic_netlinked_legacy_use(entity this, entity actor, entity trigger)
Definition triggers.qc:98
void SUB_UseTargets(entity this, entity actor, entity trigger)
Definition triggers.qc:344
float antiwall_flag
Definition triggers.qh:6
void generic_setactive(entity this, int act)
Definition triggers.qc:46
void SUB_UseTargets_PreventReuse(entity this, entity actor, entity trigger)
Definition triggers.qc:345
string targetname
Definition triggers.qh:56
void target_voicescript_next(entity pl)
void SUB_DontUseTargets(entity this, entity actor, entity trigger)
Definition triggers.qc:35
string trigger_magicear_processmessage_forallears(entity source, float teamsay, entity privatesay, string msgin)
Definition magicear.qc:149
void trigger_common_write(entity this, bool withtarget)
Definition triggers.qc:110
void trigger_common_read(entity this, bool withtarget)
void target_voicescript_clear(entity pl)
Definition voicescript.qc:8
void generic_netlinked_setactive(entity this, int act)
Definition triggers.qc:65
float sub_target_used
Definition triggers.qh:45
void SUB_UseTargets_SkipTargets(entity this, entity actor, entity trigger, int skiptargets)
Definition triggers.qc:346
string target
Definition triggers.qh:55