]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Document the negative w_backoff factor of the hook bomb
authorterencehill <piuntn@gmail.com>
Wed, 8 Feb 2023 22:34:41 +0000 (23:34 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 9 Feb 2023 00:47:53 +0000 (01:47 +0100)
qcsrc/common/weapons/weapon/hook.qc

index 278571d1bc2ba09a7e998bacb8e0f52d540fb24f..94d4ac33ed765899b1fd0cd46ae9a964f8d54324 100644 (file)
@@ -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)