mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-31 13:50:48 +00:00
fix MBF21 A_WeaponProjectile spawn position
This commit is contained in:
parent
97859fd608
commit
cf04ebb774
1 changed files with 2 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue