- SW: Pitch-adjusted velocity for InitTurretFireball().

This commit is contained in:
Mitchell Richters 2022-10-11 17:04:47 +11:00 committed by Christoph Oelckers
parent 462576bc51
commit 01e326df9d

View file

@ -15873,7 +15873,7 @@ int InitTurretFireball(DSWActor* actor, PLAYER* pp)
actorNew->user.Flags2 |= (SPR2_SO_MISSILE);
actorNew->spr.cstat |= (CSTAT_SPRITE_YCENTER);
actorNew->vel.Z = pp->horizon.horiz.Tan() * actorNew->vel.X;
setFreeAimVelocity(actorNew->vel.X, actorNew->vel.Z, pp->horizon.horiz, actorNew->vel.X);
WeaponAutoAim(actor, actorNew, DAngle22_5 / 2, false);
// a bit of randomness