fix MBF21 A_WeaponProjectile spawn position

This commit is contained in:
Xaser Acheron 2022-01-11 11:28:48 -06:00 committed by Christoph Oelckers
parent 97859fd608
commit cf04ebb774
1 changed files with 2 additions and 4 deletions

View File

@ -316,11 +316,9 @@ extend class Weapon
FTranslatedLineTarget t;
angle += self.angle;
double x = Spawnofs_xy * cos(angle);
double y = Spawnofs_xy * sin(angle);
let pos = self.Vec3Offset(x, y, Spawnofs_z);
Vector2 ofs = AngleToVector(self.Angle - 90, spawnofs_xy);
let mo = SpawnPlayerMissile(type, angle, pos.X, pos.Y, pos.Z, pLineTarget: t);
let mo = SpawnPlayerMissile(type, angle, ofs.x, ofs.y, Spawnofs_z, pLineTarget: t);
if (!mo) return;
Pitch += mo.PitchFromVel();