X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fturrets%2Fsv_turrets.qc;h=ae7822fbf2c95c6be27ab5179c50822f94864a3d;hb=9677a6f1dd8dbca207cf972f8cfa3ca6a8e4820e;hp=84aae19335fd0d970a32a2024090780e16c3d372;hpb=021728329f7609ccd73e24dfda4bd8ef36a482ae;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/turrets/sv_turrets.qc b/qcsrc/common/turrets/sv_turrets.qc index 84aae1933..ae7822fbf 100644 --- a/qcsrc/common/turrets/sv_turrets.qc +++ b/qcsrc/common/turrets/sv_turrets.qc @@ -1242,9 +1242,9 @@ void turret_initparams(entity tur) #undef TRY } -bool turret_closetotarget(entity this, vector targ) +bool turret_closetotarget(entity this, vector targ, float range) { - vector path_extra_size = '64 64 64'; + vector path_extra_size = '1 1 1' * range; return boxesoverlap(targ - path_extra_size, targ + path_extra_size, this.absmin - path_extra_size, this.absmax + path_extra_size); }