- 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.
This commit is contained in:
Blue Shadow 2021-09-29 06:50:30 +03:00 committed by Christoph Oelckers
parent a15d4e574d
commit f517d33ecf
1 changed files with 3 additions and 2 deletions

View File

@ -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)