X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fturrets%2Futil.qc;h=5201f4751c9ee14df84cec520e313c959cc5b7c7;hb=d01c567581179df7cc68bcdc8dce58efad911bc4;hp=2c33c165a7fa3a2acf39e375a46c17f393969fe0;hpb=a4bcbda7a1eb2367fae1c2514d474d426803a673;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/turrets/util.qc b/qcsrc/common/turrets/util.qc index 2c33c165a..5201f4751 100644 --- a/qcsrc/common/turrets/util.qc +++ b/qcsrc/common/turrets/util.qc @@ -1,3 +1,7 @@ +#include "util.qh" + +#ifdef SVQC + /* * Update this.tur_shotorg by getting up2date bone info * NOTICE this func overwrites the global v_forward, v_right and v_up vectors. @@ -6,7 +10,7 @@ float turret_tag_fire_update(entity this) { if(!this.tur_head) { - LOG_DEBUG("Call to turret_tag_fire_update with this.tur_head missing!\n"); + LOG_DEBUG("Call to turret_tag_fire_update with this.tur_head missing!"); this.tur_shotorg = '0 0 0'; return false; } @@ -81,7 +85,7 @@ void FireImoBeam(entity this, vector start, vector end, vector smin, vector smax // apply the damage if (ent.takedamage) { - Damage (ent, this, this, f_dmg, deathtype, hitloc, force); + Damage (ent, this, this, f_dmg, deathtype, DMG_NOWEP, hitloc, force); ent.velocity = ent.velocity * f_velfactor; //ent.alpha = 0.25 + random() * 0.75; } @@ -209,3 +213,5 @@ void paint_target3(vector where, float f_size, vector v_color, float f_time) SUB_SetFade(e,time,f_time); } #endif + +#endif