mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-07 17:11:17 +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;
|
FTranslatedLineTarget t;
|
||||||
|
|
||||||
angle += self.angle;
|
angle += self.angle;
|
||||||
double x = Spawnofs_xy * cos(angle);
|
Vector2 ofs = AngleToVector(self.Angle - 90, spawnofs_xy);
|
||||||
double y = Spawnofs_xy * sin(angle);
|
|
||||||
let pos = self.Vec3Offset(x, y, Spawnofs_z);
|
|
||||||
|
|
||||||
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;
|
if (!mo) return;
|
||||||
|
|
||||||
Pitch += mo.PitchFromVel();
|
Pitch += mo.PitchFromVel();
|
||||||
|
|
Loading…
Reference in a new issue