actor BassBuster : BaseMM8BDMWep
{
Weapon.AmmoUse 1
Weapon.AmmoGive 3
Weapon.SlotNumber 1
Inventory.Pickupmessage "$PU_BASSBUSTER"
Obituary "$OB_BASSBUSTER"
Tag "$TAG_BASSBUSTER"
weapon.ammotype "BusterAmmo"
inventory.icon "NULLICON"
Dropitem ""
States
{
SpawnLoop:
WEA3 A 1
stop
Ready:
BASB B 0 A_JumpIfInventory("BusterGiven",1,"TakeBusters")
Goto Ready2
TakeBusters:
TNT1 Q 0 A_GiveInventory("TakeBuster", 1)
Goto Ready2
Ready2:
BASB B 0 ACS_ExecuteAlways(998,0,46)
BASB B 1 A_WeaponReady
Goto Ready2+1
Deselect:
TNT1 AAAAAAAAAAAAAAAAAAAAAA 0 A_Lower
BASB B 1 A_Lower
Loop
Select:
TNT1 AAAAAAAAAAAAAAAAAAAAAA 0 A_Raise
BASB B 1 A_Raise
Loop
Fire:
BASB B 0 A_PlaySoundEx("weapon/mbuster","Weapon")
BASB B 0 A_GiveInventory("BassBusterRage", 1)
BASB B 0 A_JumpIfInventory("BassBusterRage", 9*4, "Fire4")
BASB B 0 A_JumpIfInventory("BassBusterRage", 9*3, "Fire3")
BASB B 0 A_JumpIfInventory("BassBusterRage", 9*2, "Fire2")
BASB B 0 A_JumpIfInventory("BassBusterRage", 9*1, "Fire1")
Fire0:
BASB B 0 A_FireCustomMissile("BassShot",frandom(-3,3),0,8,0,0,frandom(0,0))
Goto Anim
Fire1:
BASB B 0 A_FireCustomMissile("BassShot",frandom(-4,4),0,8,0,0,frandom(-1,1))
goto Anim
Fire2:
BASB B 0 A_FireCustomMissile("BassShot",frandom(-5,5),0,8,0,0,frandom(-2,2))
goto Anim
Fire3:
BASB B 0 A_FireCustomMissile("BassShot",frandom(-6,6),0,8,0,0,frandom(-3,3))
goto Anim
Fire4:
BASB B 0 A_FireCustomMissile("BassShot",frandom(-7,7),0,8,0,0,frandom(-4,4))
goto Anim
Anim:
BASB CCD 1
BASB B 1
BASB B 0 A_Refire
Cooldown:
BASB D 20 A_TakeInventory("BassBusterRage",999)
BASB C 8
goto Ready2+1
}
}

actor BassBusterRage : Inventory
{
inventory.amount 1
inventory.maxamount 999
}

actor BassShot : FastProjectile
{
PROJECTILE
+FORCEXYBILLBOARD
+BRIGHT
damagetype "BassBuster"
Obituary "$OB_BASSBUSTER"
Speed 64
Damage (6)
radius 5
height 5
scale 2.5
States
{
Spawn:
TNT1 A 1
BASB A 1
wait
}
}
