actor WaveBurnerWep : BaseMM8BDMWep 10013
{
//$Category MM8BDM-Weapons
//$Title Wave Burner
//$Sprite WABUX0
Weapon.AmmoUse 1
Weapon.AmmoGive 56
Weapon.SlotNumber 3
Inventory.Pickupmessage "$PU_WAVEBURNER"
Obituary "$OB_WAVEBURNER"
Tag "$TAG_WAVEBURNER"
weapon.ammotype "WaveBurnerAmmo"
inventory.icon "BURNRI"
States
{
SpawnLoop:
WABU X -1
loop
Ready:
WAVB K 0 ACS_ExecuteAlways(998,0,171)
WAVB K 1 A_WeaponReady
Goto Ready+1
Deselect:
TNT1 AAAAAAAAAAAAAAAAAAAAAA 0 A_Lower
WAVB K 1 A_Lower
goto Ready+1
Select:
TNT1 AAAAAAAAAAAAAAAAAAAAAA 0 A_Raise
WAVB K 1 A_Raise
goto Ready+1
Fire:
WAVB K 0 A_JumpIfNoAmmo("NoAmmo")
WAVB K 2 
UnderWater0:
WAVB L 0 A_JumpIfInventory("IsUnderWater", 1, "UnderWater")
Goto Fire1
UnderWater:
WAVB K 0 A_JumpIfNoAmmo("NoAmmo")
WAVB L 0 A_GunFlash
WAVB L 0 A_PlaySoundEx("weapon/waveburner", "Weapon")
WAVB L 2 A_FireCustomMissile("WaveBurnUW",0,1,8,0)
WAVB L 0 A_ReFire("UnderWater2")
Goto End
UnderWater2:
WAVB K 0 A_JumpIfNoAmmo("NoAmmo")
WAVB L 0 A_PlaySoundEx("weapon/waveburner", "Weapon")
WAVB L 2 A_FireCustomMissile("WaveBurnUW",0,0,8,0)
WAVB L 0 A_ReFire("UnderWater0")
Goto End
Fire1:
WAVB K 0 A_JumpIfNoAmmo("NoAmmo")
WAVB L 0 A_JumpIfInventory("IsUnderWater", 1, "UnderWater")
WAVB L 0 A_PlaySoundEx("weapon/waveburner", "Weapon")
WAVB L 2 A_FireCustomMissile("WaveBurn",0,1,8,0)
WAVB L 0 A_ReFire("Fire2")
goto End
Fire2:
WAVB K 0 A_JumpIfNoAmmo("NoAmmo")
WAVB L 0 A_PlaySoundEx("weapon/waveburner", "Weapon")
WAVB L 2 A_FireCustomMissile("WaveBurn",5,0,8,0)
WAVB L 0 A_ReFire("Fire3")
goto End
Fire3:
WAVB K 0 A_JumpIfNoAmmo("NoAmmo")
WAVB L 0 A_JumpIfInventory("IsUnderWater", 1, "UnderWater")
WAVB L 0 A_PlaySoundEx("weapon/waveburner", "Weapon")
WAVB L 2 A_FireCustomMissile("WaveBurn",10,1,8,0)
WAVB L 0 A_ReFire("Fire4")
goto End
Fire4:
WAVB K 0 A_JumpIfNoAmmo("NoAmmo")
WAVB L 0 A_PlaySoundEx("weapon/waveburner", "Weapon")
WAVB L 2 A_FireCustomMissile("WaveBurn",15,0,8,0)
WAVB L 0 A_ReFire("Fire5")
goto End
Fire5:
WAVB K 0 A_JumpIfNoAmmo("NoAmmo")
WAVB L 0 A_JumpIfInventory("IsUnderWater", 1, "UnderWater")
WAVB L 0 A_PlaySoundEx("weapon/waveburner", "Weapon")
WAVB L 2 A_FireCustomMissile("WaveBurn",10,1,8,0)
WAVB L 0 A_ReFire("Fire6")
goto End
Fire6:
WAVB K 0 A_JumpIfNoAmmo("NoAmmo")
WAVB L 0 A_PlaySoundEx("weapon/waveburner", "Weapon")
WAVB L 2 A_FireCustomMissile("WaveBurn",5,0,8,0)
WAVB L 0 A_ReFire("Fire7")
goto End
Fire7:
WAVB K 0 A_JumpIfNoAmmo("NoAmmo")
WAVB L 0 A_JumpIfInventory("IsUnderWater", 1, "UnderWater")
WAVB L 0 A_PlaySoundEx("weapon/waveburner", "Weapon")
WAVB L 2 A_FireCustomMissile("WaveBurn",0,1,8,0)
WAVB L 0 A_ReFire("Fire8")
goto End
Fire8:
WAVB K 0 A_JumpIfNoAmmo("NoAmmo")
WAVB L 0 A_PlaySoundEx("weapon/waveburner", "Weapon")
WAVB L 2 A_FireCustomMissile("WaveBurn",-5,0,8,0)
WAVB L 0 A_ReFire("Fire9")
goto End
Fire9:
WAVB K 0 A_JumpIfNoAmmo("NoAmmo")
WAVB L 0 A_PlaySoundEx("weapon/waveburner", "Weapon")
WAVB L 2 A_FireCustomMissile("WaveBurn",-10,1,8,0)
WAVB L 0 A_ReFire("Fire10")
goto End
Fire10:
WAVB K 0 A_JumpIfNoAmmo("NoAmmo")
WAVB L 0 A_PlaySoundEx("weapon/waveburner", "Weapon")
WAVB L 2 A_FireCustomMissile("WaveBurn",-15,0,8,0)
WAVB L 0 A_ReFire("Fire11")
goto End
Fire11:
WAVB K 0 A_JumpIfNoAmmo("NoAmmo")
WAVB L 0 A_PlaySoundEx("weapon/waveburner", "Weapon")
WAVB L 2 A_FireCustomMissile("WaveBurn",-10,1,8,0)
WAVB L 0 A_ReFire("Fire12")
goto End
Fire12:
WAVB K 0 A_JumpIfNoAmmo("NoAmmo")
WAVB L 0 A_PlaySoundEx("weapon/waveburner", "Weapon")
WAVB L 2 A_FireCustomMissile("WaveBurn",-5,0,8,0)
WAVB L 0 A_ReFire("Fire1")
goto End
End:
WAVB M 4
WAVB LK 2
Goto Ready+1
Flash:
TNT1 A 0 A_FireCustomMissile("WaveBurnerBubbleFX",random(-7,7),0,8,0,0,random(-4,4))
TNT1 A 0 A_Jump(16, "NoFlash")
TNT1 A 1 A_FireCustomMissile("WaveBurnerBubbleFX",random(-7,7),0,8,0,0,random(-4,4))
TNT1 A 0 A_Jump(96, "NoFlash")
TNT1 A 1 A_FireCustomMissile("WaveBurnerBubbleFX",random(-7,7),0,8,0,0,random(-4,4))
TNT1 A 0 A_Jump(128, "NoFlash")
TNT1 A 1 A_FireCustomMissile("WaveBurnerBubbleFX",random(-7,7),0,8,0,0,random(-4,4))
Goto NoFlash
NoFlash:
TNT1 A 0
stop
NoAmmo:
WAVB K 1 ACS_Execute(979,0)
goto Ready+1
}
}

actor WaveBurn
{
PROJECTILE
+BRIGHT
damagetype "WaveBurner"
Obituary "$OB_WAVEBURNER"
Speed 26
Damage (9)
radius 5
height 5
scale 2.5
States
{
Spawn:
TNT1 A 2
WABU ABCD 3
goto Death
Death:
TNT1 A 1 A_SpawnItemEx("OilPitIgnite",0,0,8)
stop
}
}

actor WaveBurnUW : WaveBurn
{
-BRIGHT
damagetype "WaveBurnerUW"
Obituary "$OB_WAVEBURNER2"
States
{
Spawn:
TNT1 A 2
WABU EFGH 3
goto Death
Death:
TNT1 A 1
stop
}
}


actor WaveBurnerAmmo : Ammo
{
inventory.amount 1
inventory.maxamount 56
+INVENTORY.IGNORESKILL
}

actor WaveBurnerFlag : Inventory
{
inventory.amount 1
inventory.maxamount 12
}

actor WaveBurnerBubbleFX
{
PROJECTILE
Renderstyle "Translucent"
Alpha 0.8
damage 0
height 1
radius 1
+NOINTERACTION
+NOGRAVITY
+DONTBLAST
scale 2.5
Speed 5
States
{
Spawn:
TNT1 A 0
TNT1 A 2 A_ScaleVelocity(Random(2, 5))
WABU IJ 3 ThrustThingZ(0, Random(3, 6), 0, 1)
WABU K 5 A_Jump(230, 1)
wait
WABU L 3
stop
}
}