X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ftriggers.qh;h=474f797afea7ad67e1611b8c12644f836ab0af1d;hb=99c1b6ca80a69e112d410ee493d62f757b2c6df8;hp=c5e0d466f872b61fe0a75c9b19567f08343f37f1;hpb=2816a5c6171f6683860fbfe906548007067a08d4;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/triggers.qh b/qcsrc/common/triggers/triggers.qh index c5e0d466f..474f797af 100644 --- a/qcsrc/common/triggers/triggers.qh +++ b/qcsrc/common/triggers/triggers.qh @@ -1,19 +1,52 @@ +#ifndef TRIGGERS_H +#define TRIGGERS_H + const float SF_TRIGGER_INIT = 1; const float SF_TRIGGER_UPDATE = 2; const float SF_TRIGGER_RESET = 4; +const float SPAWNFLAG_NOMESSAGE = 1; +const float SPAWNFLAG_NOTOUCH = 1; + .void() trigger_touch; -.string bgmscript; -.float bgmscriptattack; -.float bgmscriptdecay; -.float bgmscriptsustain; -.float bgmscriptrelease; +.float antiwall_flag; // Variable to define what to do with func_clientwall +// 0 == do nothing, 1 == deactivate, 2 == activate + +.float height; + +.float nottargeted; +#define IFTARGETED if(!self.nottargeted && self.targetname != "") + +.float lip; // used elsewhere (will fix) -void multi_touch(); -void spawnfunc_trigger_once(); +#ifdef SVQC +void trigger_common_write(bool withtarget); + string trigger_magicear_processmessage_forallears(entity source, float teamsay, entity privatesay, string msgin); void target_voicescript_next(entity pl); void target_voicescript_clear(entity pl); +#endif + +.float volume, atten; + +.vector dest; + +#ifdef CSQC +void trigger_common_read(bool withtarget); +void trigger_remove_generic(); + +.float active; +.string target; +.string targetname; + +const int ACTIVE_NOT = 0; +const int ACTIVE_ACTIVE = 1; +const int ACTIVE_IDLE = 2; +const int ACTIVE_BUSY = 2; +const int ACTIVE_TOGGLE = 3; +#endif + +#endif