Edit: I forgot to add that I want this to have all the accuracy stuff like A_FireMiniMissile and the other strife attacks which is why I'm not just shooting three rockets with A_FireProjectile
Code: Select all
action void A_FireThreeMiniMissile ()
{
if (player == null)
{
return;
}
Weapon weapon = player.ReadyWeapon;
if (weapon != null)
{
if (!weapon.DepleteAmmo (weapon.bAltFire))
return;
}
double savedangle = angle;
angle += Random2[MiniMissile]() * (11.25 / 256) * AccuracyFactor();
player.mo.PlayAttacking2 ();
SpawnPlayerMissile ("MiniMissile",angle);
SpawnPlayerMissile ("MiniMissile",angle,0,8,-8);
SpawnPlayerMissile ("MiniMissile",angle,0,-8,-8);
angle = savedangle;
}
}