From f517d33ecf6be0c61521b03664df8bffc3e1c022 Mon Sep 17 00:00:00 2001 From: Blue Shadow Date: Wed, 29 Sep 2021 06:50:30 +0300 Subject: [PATCH] - fixed A_Punch having a short attack range (take 2). The previous attempt to fix this did so partially; the range was fixed for AimLineAttack, but not for LineAttack, too. --- wadsrc/static/zscript/actors/doom/weaponfist.zs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/actors/doom/weaponfist.zs b/wadsrc/static/zscript/actors/doom/weaponfist.zs index c1535f8c7..711ca97d9 100644 --- a/wadsrc/static/zscript/actors/doom/weaponfist.zs +++ b/wadsrc/static/zscript/actors/doom/weaponfist.zs @@ -66,9 +66,10 @@ extend class Actor damage *= 10; double ang = angle + Random2[Punch]() * (5.625 / 256); - double pitch = AimLineAttack (ang, MeleeRange + MELEEDELTA, null, 0., ALF_CHECK3D); + double range = MeleeRange + MELEEDELTA; + double pitch = AimLineAttack (ang, range, null, 0., ALF_CHECK3D); - LineAttack (ang, MeleeRange, pitch, damage, 'Melee', "BulletPuff", LAF_ISMELEEATTACK, t); + LineAttack (ang, range, pitch, damage, 'Melee', "BulletPuff", LAF_ISMELEEATTACK, t); // turn to face target if (t.linetarget)