actor HyperBombWep : BaseMM8BDMWep 10037
{
//$Category MM8BDM-Weapons
//$Title Hyper Bomb
//$Sprite WEAPH0
Weapon.AmmoUse 2
Weapon.AmmoGive 28
Weapon.SlotNumber 5
Inventory.Pickupmessage "$PU_HYPERBOMB"
Obituary "$OB_HYPERBOMB"
Tag "$TAG_HYPERBOMB"
weapon.ammotype "HyperBombAmmo"
inventory.icon "BOMBSI"
States
{
SpawnLoop:
WEAP H -1
loop
Ready:
BOMH A 0 ACS_ExecuteAlways(998,0,7)
BOMH A 0 A_JumpIfNoAmmo("ReadyNoAmmo")
BOMH A 1 A_WeaponReady
Goto Ready+2
ReadyNoAmmo:
BOMH J 1 A_WeaponReady
BOMH J 0 A_JumpIfNoAmmo("ReadyNoAmmo")
Goto Ready+1
Deselect:
TNT1 AAAAAAAAAAAAAAAAAAAAAA 0 A_Lower
BOMH A 1 A_Lower
Loop
Select:
TNT1 AAAAAAAAAAAAAAAAAAAAAA 0 A_Raise
BOMH A 1 A_Raise
Loop
Fire:
BOMH A 0 A_JumpIfNoAmmo("NoAmmo")
BOMH A 0 A_PlaySoundEx("weapon/mbuster","Weapon")
BOMH A 0 A_FireCustomMissile("HyperBomb",0,1,8,0)
BOMH BCDEFG 2
BOMH HI 2
BOMH A 7
BOMH A 0 A_Refire
Goto Ready+1
NoAmmo:
BOMH J 1 ACS_Execute(979,0)
Goto ReadyNoAmmo
}
}

actor HyperBombAmmo : Ammo
{
inventory.amount 1
inventory.maxamount 28
+INVENTORY.IGNORESKILL
}


actor HyperBomb
{
PROJECTILE
damagetype "HyperBomb"
Obituary "$OB_HYPERBOMB"
- NOGRAVITY
+RIPPER
+BOUNCEONACTORS
+HEXENBOUNCE
+CANBOUNCEWATER
Radius 6
Height 7
scale 2.5
speed 13
reactiontime 85
bouncefactor 0.7
States
{
Spawn:
BOMB A 0
BOMB A 0 ThrustThingZ(0, 12, 0, 1)
BOMB A 1 A_CountDown
Goto Spawn+2
Death:
BOMB A 0 A_Stop
BOMB A 0 A_PlaySoundEx("weapon/hyperbomb", "Weapon")
BOMB A 0 A_ChangeFlag("NOGRAVITY",1)
BOMB A 0 A_Explode(250, 180, 0)
TNT1 A 35 A_SpawnItemEx("ExplosionEffect3")
stop
}
}