- fixed velocity for Duke's pipe bomb and RR's dynamite when crouching.

These cases may not use the generic free aim adjustment.
This commit is contained in:
Christoph Oelckers 2022-11-09 22:50:13 +01:00
parent e88b24bce7
commit a8585d72c7
2 changed files with 2 additions and 2 deletions

View file

@ -2199,7 +2199,7 @@ static void operateweapon(int snum, ESyncBits actions)
if (p->on_ground && (actions & SB_CROUCH)) if (p->on_ground && (actions & SB_CROUCH))
{ {
vel = 15/16.; vel = 15/16.;
setFreeAimVelocity(vel, zvel, p->horizon.sum(), 10.); zvel = p->horizon.sum().Tan() * 10.;
} }
else else
{ {

View file

@ -2699,7 +2699,7 @@ static void operateweapon(int snum, ESyncBits actions, sectortype* psectp)
if (p->on_ground && (actions & SB_CROUCH)) if (p->on_ground && (actions & SB_CROUCH))
{ {
vel = 15 / 16.; vel = 15 / 16.;
setFreeAimVelocity(vel, zvel, p->horizon.sum(), 10.); zvel = p->horizon.sum().Tan() * 10.;
} }
else else
{ {