mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-03-13 22:42:07 +00:00
- 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:
parent
a15d4e574d
commit
f517d33ecf
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue