X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fturrets%2Futil.qh;h=d42c433a1106ed0109010500a8905aaf8144e914;hb=64c7cc273aa1dfe25509c18a86236432c316f497;hp=71ba0662e6f4fdfd87fb0cef48eb0b71ea21eb02;hpb=867ce0406b74601b6d74a4ac412ac30063490d88;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/turrets/util.qh b/qcsrc/common/turrets/util.qh index 71ba0662e..d42c433a1 100644 --- a/qcsrc/common/turrets/util.qh +++ b/qcsrc/common/turrets/util.qh @@ -1,13 +1,18 @@ -#ifndef TURRETS_UTIL_H -#define TURRETS_UTIL_H - -vector real_origin(entity ent); -float shortangle_f(float ang1, float ang2); -float anglemods(float v); -float turret_tag_fire_update(); -vector shortangle_vxy(vector ang1, vector ang2); -vector angleofs(entity from, entity to); -vector angleofs3(vector from, vector from_a, entity to); -void FireImoBeam (vector start, vector end, vector smin, vector smax, float bforce, float f_dmg, float f_velfactor, float deathtype); +#pragma once + +#ifdef SVQC + +float turret_tag_fire_update(entity this); +void FireImoBeam(entity this, vector start, vector end, vector smin, vector smax, float bforce, float f_dmg, float f_velfactor, float deathtype); + +#ifdef TURRET_DEBUG +void mark_error(vector where,float lifetime); +void mark_info(vector where,float lifetime); +entity mark_misc(vector where,float lifetime); + +void paint_target(entity onwho, float f_size, vector v_color, float f_time); +void paint_target2(entity onwho, float f_size, vector v_color, float f_time); +void paint_target3(vector where, float f_size, vector v_color, float f_time); +#endif #endif