X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fcommon%2Fmapobjects%2Ftriggers.qh;fp=qcsrc%2Fcommon%2Fmapobjects%2Ftriggers.qh;h=1fac7907a57b57fa9701738373d369d70b1ce5e0;hb=ca2b4af3846cb6e38d166006cc3b32c89cf99142;hp=82e7d54f0283781eb42fde552e99adfc14c6b4da;hpb=f53ede36a1898c157e840c96ffac2534ab3c8e31;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mapobjects/triggers.qh b/qcsrc/common/mapobjects/triggers.qh index 82e7d54f0..1fac7907a 100644 --- a/qcsrc/common/mapobjects/triggers.qh +++ b/qcsrc/common/mapobjects/triggers.qh @@ -8,12 +8,16 @@ .float height; -#define IFTARGETED if(this.targetname && this.targetname != "") - .float lip; +// handy fields used by a lot of the codebase, but more importantly used by map objects +.float cnt; +.float count; + // used elsewhere (will fix) #ifdef SVQC +.string message2; + void trigger_common_write(entity this, bool withtarget); string trigger_magicear_processmessage_forallears(entity source, float teamsay, entity privatesay, string msgin); @@ -26,6 +30,10 @@ void SUB_UseTargets(entity this, entity actor, entity trigger); void SUB_UseTargets_PreventReuse(entity this, entity actor, entity trigger); +// allow excluding certain .target* fields without needing to nullify them +// use BIT(1) through BIT(4) +void SUB_UseTargets_SkipTargets(entity this, entity actor, entity trigger, int skiptargets); + void generic_setactive(entity this, int act); // generic methods for netlinked entities void generic_netlinked_reset(entity this); @@ -40,13 +48,10 @@ void generic_netlinked_legacy_use(entity this, entity actor, entity trigger); .vector dest; -void FixSize(entity e); - #ifdef CSQC void trigger_common_read(entity this, bool withtarget); void trigger_remove_generic(entity this); -.float active; .string target; .string targetname; #endif