X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fcommon%2Fturrets%2Futil.qh;h=d42c433a1106ed0109010500a8905aaf8144e914;hb=64c7cc273aa1dfe25509c18a86236432c316f497;hp=dd9efec6b2b9f3b668c6cdf18de3f6598bb3509c;hpb=c22a6c32f7160124e1a2753282548fa3be38de8d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/turrets/util.qh b/qcsrc/common/turrets/util.qh index dd9efec6b..d42c433a1 100644 --- a/qcsrc/common/turrets/util.qh +++ b/qcsrc/common/turrets/util.qh @@ -1,12 +1,18 @@ -#ifndef TURRETS_UTIL_H -#define TURRETS_UTIL_H - -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