From: terencehill Date: Sun, 23 Jun 2024 22:56:51 +0000 (+0200) Subject: Fix regression introduced in f5f2dd9b where the arc beam stops for a moment while... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6bd11d986e657c7b1cb1b9547375aa51b898368b;p=xonotic%2Fxonotic-data.pk3dir.git Fix regression introduced in f5f2dd9b where the arc beam stops for a moment while crouching / standing up --- diff --git a/qcsrc/common/weapons/weapon/arc.qc b/qcsrc/common/weapons/weapon/arc.qc index 2869843a4..02090a411 100644 --- a/qcsrc/common/weapons/weapon/arc.qc +++ b/qcsrc/common/weapons/weapon/arc.qc @@ -959,7 +959,9 @@ void Draw_ArcBeam(entity this) if(v_shot_idx && this.beam_usevieworigin == 2) { start_pos = gettaginfo(wepent, v_shot_idx) - '0 0 2'; - traceline(start_pos_saved, start_pos, MOVE_NORMAL, this); + // ignore our own player model in this traceline otherwise it may be hit with trace_fraction < 1 + // while crouching / standing up due to view height smoothing (cl_smoothviewheight) + traceline(start_pos_saved, start_pos, MOVE_NORMAL, csqcplayer); if (trace_fraction < 1) { // found an obstacle between view origin and shot tag