From 2b8c7a195558bfdd8b28c0bbd8f969960a3e4cf3 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 15 Dec 2022 18:44:31 +0100 Subject: [PATCH] Fix decals not appearing if a grenade explodes slighlty above the ground as reported in #2777; fixed by reducing w_backoff factor to 1 --- qcsrc/common/weapons/weapon/mortar.qc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qcsrc/common/weapons/weapon/mortar.qc b/qcsrc/common/weapons/weapon/mortar.qc index 52b8a571a..2152accff 100644 --- a/qcsrc/common/weapons/weapon/mortar.qc +++ b/qcsrc/common/weapons/weapon/mortar.qc @@ -358,9 +358,7 @@ METHOD(Mortar, wr_killmessage, Notification(entity thiswep)) METHOD(Mortar, wr_impacteffect, void(entity thiswep, entity actor)) { - vector org2; - org2 = w_org + w_backoff * 12; - pointparticles(EFFECT_GRENADE_EXPLODE, org2, '0 0 0', 1); + pointparticles(EFFECT_GRENADE_EXPLODE, w_org + w_backoff, '0 0 0', 1); if(!w_issilent) sound(actor, CH_SHOTS, SND_GRENADE_IMPACT, VOL_BASE, ATTN_NORM); } -- 2.39.2