From: terencehill Date: Tue, 1 Mar 2022 18:07:20 +0000 (+0100) Subject: Adjust smoke position of tuba and alternative instruments X-Git-Tag: xonotic-v0.8.5~184 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bb4ef7788ddb76a945d9b100593c3c008d0b1711;p=xonotic%2Fxonotic-data.pk3dir.git Adjust smoke position of tuba and alternative instruments --- diff --git a/qcsrc/common/weapons/weapon/tuba.qc b/qcsrc/common/weapons/weapon/tuba.qc index 687ada154..43e5ca24e 100644 --- a/qcsrc/common/weapons/weapon/tuba.qc +++ b/qcsrc/common/weapons/weapon/tuba.qc @@ -306,7 +306,12 @@ void W_Tuba_NoteOn(entity actor, .entity weaponentity, float hittype) { // 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); + if(actor.(weaponentity).tuba_instrument == 1) + Send_Effect(EFFECT_SMOKE_RING, org + v_up * 25 + v_right * 10 + v_forward * 14, v_up * 100, 1); + else if(actor.(weaponentity).tuba_instrument == 2) + Send_Effect(EFFECT_SMOKE_RING, org + v_up * 50 + v_right * 10 + v_forward * 45, v_up * 100, 1); + else + Send_Effect(EFFECT_SMOKE_RING, org + v_up * 40 + v_right * 10 + v_forward * 14, v_up * 100, 1); actor.(weaponentity).tuba_smoketime = time + 0.25; } }