From d9dff3313338091745ef2c740eca17b9574a67ee Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 8 Feb 2023 23:34:41 +0100 Subject: [PATCH] Document the negative w_backoff factor of the hook bomb --- qcsrc/common/weapons/weapon/hook.qc | 1 + 1 file changed, 1 insertion(+) diff --git a/qcsrc/common/weapons/weapon/hook.qc b/qcsrc/common/weapons/weapon/hook.qc index 278571d1b..94d4ac33e 100644 --- a/qcsrc/common/weapons/weapon/hook.qc +++ b/qcsrc/common/weapons/weapon/hook.qc @@ -243,6 +243,7 @@ METHOD(Hook, wr_killmessage, Notification(entity thiswep)) METHOD(Hook, wr_impacteffect, void(entity thiswep, entity actor)) { + // the hook bomb uses a negative w_backoff factor because it explodes slightly below the floor, unlike other projectiles vector org2 = w_org + w_backoff * -2; pointparticles(EFFECT_HOOK_EXPLODE, org2, '0 0 0', 1); if(!w_issilent) -- 2.39.2