From: Samual Lenks Date: Sun, 8 Dec 2013 07:50:28 +0000 (-0500) Subject: Add reminder X-Git-Tag: xonotic-v0.8.0~152^2~290 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ba7d62fdf90db5bfd5f44bfaefc2bf8cdf44f5a6;p=xonotic%2Fxonotic-data.pk3dir.git Add reminder --- diff --git a/qcsrc/common/weapons/w_shockwave.qc b/qcsrc/common/weapons/w_shockwave.qc index 228c905ad..c8e6cb768 100644 --- a/qcsrc/common/weapons/w_shockwave.qc +++ b/qcsrc/common/weapons/w_shockwave.qc @@ -440,6 +440,7 @@ void W_Shockwave_Attack() h = vlen(center - self.origin); ang = acos(dotproduct(normalize(center - self.origin), w_shotdir)); a = h * cos(ang); + // WEAPONTODO: replace with simpler method vector nearest_on_line = (w_shotorg + a * w_shotdir); vector nearest_to_attacker = WarpZoneLib_NearestPointOnBox(center + head.mins, center + head.maxs, nearest_on_line);