X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ftriggers.qh;h=2b8274f4b890aa473b5432de2415bb1719e925a1;hb=468b023e4b41cbd40bae363aa136b102a63fc811;hp=5c000cff16d5ce198f7cc3eb75d2107e40e51e9b;hpb=661c5365ee3261447a593813946fb8975a7097b0;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/triggers.qh b/qcsrc/common/triggers/triggers.qh index 5c000cff1..2b8274f4b 100644 --- a/qcsrc/common/triggers/triggers.qh +++ b/qcsrc/common/triggers/triggers.qh @@ -1,5 +1,4 @@ -#ifndef TRIGGERS_H -#define TRIGGERS_H +#pragma once const float SF_TRIGGER_INIT = 1; const float SF_TRIGGER_UPDATE = 2; @@ -8,8 +7,6 @@ const float SF_TRIGGER_RESET = 4; const float SPAWNFLAG_NOMESSAGE = 1; const float SPAWNFLAG_NOTOUCH = 1; -.void() trigger_touch; - .bool pushable; .float antiwall_flag; // Variable to define what to do with func_clientwall @@ -18,7 +15,7 @@ const float SPAWNFLAG_NOTOUCH = 1; .float height; .float nottargeted; -#define IFTARGETED if(!self.nottargeted && self.targetname != "") +#define IFTARGETED if(!this.nottargeted && this.targetname != "") .float lip; @@ -30,8 +27,12 @@ string trigger_magicear_processmessage_forallears(entity source, float teamsay, void target_voicescript_next(entity pl); void target_voicescript_clear(entity pl); + +void SUB_UseTargets_PreventReuse(entity this, entity actor, entity trigger); #endif +.float sub_target_used; + .float volume, atten; .vector dest; @@ -39,8 +40,8 @@ void target_voicescript_clear(entity pl); void FixSize(entity e); #ifdef CSQC -void trigger_common_read(bool withtarget); -void trigger_remove_generic(); +void trigger_common_read(entity this, bool withtarget); +void trigger_remove_generic(entity this); .float active; .string target; @@ -52,5 +53,3 @@ const int ACTIVE_IDLE = 2; const int ACTIVE_BUSY = 2; const int ACTIVE_TOGGLE = 3; #endif - -#endif