From 6bd11d986e657c7b1cb1b9547375aa51b898368b Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 24 Jun 2024 00:56:51 +0200 Subject: [PATCH] Fix regression introduced in f5f2dd9b where the arc beam stops for a moment while crouching / standing up --- qcsrc/common/weapons/weapon/arc.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2