X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Fsubs.qh;h=1b3bc5e690d438f6eeb1b0bf228eab6efd7ee75a;hb=f3c9d62b68cb415609dce698ec2fcd966b8c8ace;hp=ea8ef3057425b28b9e260785a314da659bfbad7a;hpb=fc2be4c1e7547ae97301f7966333e4dc858baf92;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/subs.qh b/qcsrc/common/triggers/subs.qh index ea8ef3057..1b3bc5e69 100644 --- a/qcsrc/common/triggers/subs.qh +++ b/qcsrc/common/triggers/subs.qh @@ -1,63 +1,16 @@ -#ifndef SUBS_H -#define SUBS_H +#pragma once -#ifdef SVQC - - #define SUB_ANGLES(s) (s).angles - #define SUB_VELOCITY velocity - #define SUB_AVELOCITY avelocity - #define SUB_ORIGIN origin - #define SUB_SETORIGIN(s,v) setorigin((s), (v)) - #define SUB_NEXTTHINK nextthink - #define SUB_THINK think - #define SUB_LTIME ltime - #define SUB_FLAGS flags - -#elif defined(CSQC) - - void _Movetype_LinkEdict(float touch_triggers); - - #define SUB_ANGLES(s) (s).move_angles - #define SUB_VELOCITY move_velocity - #define SUB_AVELOCITY move_avelocity - #define SUB_ORIGIN move_origin - #define SUB_NEXTTHINK move_nextthink - #define SUB_THINK move_think - #define SUB_LTIME move_ltime - #define SUB_FLAGS move_flags - - void SUB_SETORIGIN(entity s, vector v) - { - s.move_origin = v; - entity oldself = self; - self = s; - _Movetype_LinkEdict(true); - self = oldself; - } - -#endif - -void SUB_Remove(); void SUB_SetFade (entity ent, float when, float fading_time); void SUB_VanishOrRemove (entity ent); .vector finaldest, finalangle; //plat.qc stuff -.void() think1; +.void(entity this) think1; .float state; .float t_length, t_width; .vector destvec; .vector destvec2; -// player animation state -.float animstate_startframe; -.float animstate_numframes; -.float animstate_framerate; -.float animstate_starttime; -.float animstate_endtime; -.float animstate_override; -.float animstate_looping; - .float delay; .float wait; .float lip; @@ -66,7 +19,7 @@ void SUB_VanishOrRemove (entity ent); .string platmovetype; .float platmovetype_start, platmovetype_end; -entity activator; +//entity activator; .string killtarget; @@ -104,5 +57,3 @@ float STATE_DOWN = 3; .float max_health; // players maximum health is stored here #endif - -#endif