From: terencehill Date: Wed, 8 Feb 2023 22:34:41 +0000 (+0100) Subject: Document the negative w_backoff factor of the hook bomb X-Git-Tag: xonotic-v0.8.6~144^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d9dff3313338091745ef2c740eca17b9574a67ee;p=xonotic%2Fxonotic-data.pk3dir.git Document the negative w_backoff factor of the hook bomb --- 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)