actor DiveMissileWep : MegaBuster 10068
{
Weapon.AmmoUse 2
Weapon.AmmoGive 28
Weapon.SlotNumber 2
Obituary "%o was intercepted by %k's Dive Missile."
Inventory.Pickupmessage "Power up! Dive Missile!"
weapon.ammotype "DiveMissileAmmo"
inventory.pickupsound "weapon/weaponup"
+WEAPON.AMMO_OPTIONAL
inventory.icon "DIVESI"
Scale 2.0
States
{
Spawn:
WEA2 S 1
loop
Ready:
BLIZ D 0 ACS_ExecuteAlways(998,0,38)
BLIZ D 1 A_WeaponReady
Goto Ready+1
Deselect:
TNT1 AAAAAAAAAAAAAAAAAAAAAA 0 A_Lower
BLIZ D 1 A_Lower
Loop
Select:
TNT1 AAAAAAAAAAAAAAAAAAAAAA 0 A_Raise
BLIZ D 1 A_Raise
Loop
Fire:
BLIZ D 0 A_JumpIfNoAmmo("NoAmmo")
BLIZ D 0 A_PlaySoundEx("weapon/mbuster","Weapon")
BLIZ D 0 A_FireCustomMissile("DiveMissile",0,1,8,0)
BLIZ EFD 3
BLIZ D 23
BLIZ D 0 A_Refire
Goto Ready+1
NoAmmo:
BLIZ D 1 ACS_Execute(979,0)
Goto Ready+1
}
}

actor DiveMissileAmmo : Ammo
{
inventory.amount 1
inventory.maxamount 28
}


actor DiveMissile : MageStaffFX2
{
PROJECTILE
+SEEKERMISSILE
-EXTREMEDEATH
Radius 5
Height 5
scale 2.5
damage (8)
damagetype "Dive"
speed 35
States
{
Spawn:
DIVE AB 1 A_MStaffTrack
loop
Death:
MMFX BCDE 2
stop
}
}