From f538b1c7986940b689d094dcfd6aab85f17ec99b Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 8 Apr 2021 14:52:52 +0200 Subject: [PATCH] Fix #2475 "Tuba smoke comes out of the ground" --- qcsrc/common/weapons/weapon/tuba.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/weapons/weapon/tuba.qc b/qcsrc/common/weapons/weapon/tuba.qc index d27351641..687ada154 100644 --- a/qcsrc/common/weapons/weapon/tuba.qc +++ b/qcsrc/common/weapons/weapon/tuba.qc @@ -304,8 +304,9 @@ void W_Tuba_NoteOn(entity actor, .entity weaponentity, float hittype) if(time > actor.(weaponentity).tuba_smoketime) { - vector o = gettaginfo(actor.exteriorweaponentity, 0); - Send_Effect(EFFECT_SMOKE_RING, o + v_up * 45 + v_right * -6 + v_forward * 8, v_up * 100, 1); + // FIXME gettaginfo(actor.(weaponentity), 0) doesn't return the real origin of the weapon + vector org = gettaginfo(actor.(weaponentity), 0); + Send_Effect(EFFECT_SMOKE_RING, org + v_up * 45 + v_right * 10 + v_forward * 14, v_up * 100, 1); actor.(weaponentity).tuba_smoketime = time + 0.25; } } -- 2.39.2