Actor LeafBombWep_V_NormalBar : NormalBar {Args 4, 104}
actor LeafBombWep_V : BaseMM8BDMWep
{
Weapon.AmmoUse 3
Weapon.AmmoGive 30
Weapon.SlotNumber 3
Inventory.Pickupmessage "$PU_LEAFBOMB"
Obituary "$OB_LEAFBOMB"
Tag "$TAG_LEAFBOMB"
weapon.ammotype "LeafBombAmmo_V"
inventory.icon "LFBRICON"
States
{
SpawnLoop:
LFBR A 1
loop
ReadyC: Goto Ready+1
Ready:
LFBR B 0 ACS_NamedExecuteWithResult("core_weaponcolor",COLOR_LEAFBOMB)
LFBR B 0 A_JumpIfNoAmmo("ReadyNoAmmo")
LFBR Q 1 A_WeaponReady
Goto Ready+2
ReadyNoAmmo:
LFBR B 1 A_WeaponReady
LFBR B 0 A_JumpIfNoAmmo("ReadyNoAmmo")
Goto Ready+1
Deselect:
LFBR B 0
goto DeselectSwap
Select:
LFBR B 0
goto SelectSwap
Fire:
LFBR B 0 A_JumpIfNoAmmo("NoAmmo")
LFBR B 0 A_PlaySoundEx("weapon/leafbombthrow","Weapon")
LFBR B 0 A_FireCustomMissile("LeafBomb_V",0,1,8,0)
LFBR CDEFGH 2
LFBR H 1 Offset(0,42)
LFBR H 1 Offset(0,42)
LFBR B 2 A_WeaponReady(WRF_NOFIRE|WRF_NOSWITCH)
LFBR B 0 A_Refire
goto Ready+1
NoAmmo:
LFBR B 1 ACS_NamedExecuteWithResult("core_noammo", 0)
Goto Ready+1
}
}

actor LeafBombAmmo_V : Ammo
{
inventory.amount 1
inventory.maxamount 30
+INVENTORY.IGNORESKILL
}

actor LeafBomb_V : BasicProjectile
{
PROJECTILE
Radius 13
Height 13
Scale 2.0
Damage (CallACS("vile_cbm_damage",10))
-NOGRAVITY
+HEXENBOUNCE
+CANBOUNCEWATER
Damagetype "LeafBomb_V"
Obituary "$OB_LEAFBOMB"
Speed 22
States
{
Spawn:
TNT1 A 0
LFBR M 0 ThrustThingZ(0,22,0,1)
LFBR MNOPMNOPMNOPMNOPMNOPMNOPMNOPMNOP 2
Goto Death
Death:
TNT1 A 0 A_SpawnItemEx("LeafBombShield_V")
TNT1 A 0 A_SpawnItemEx("ExplosionEffect1", 0, 0, 0, 0, 0, 0, 0, SXF_WEPFXCOLOR)
stop
}
}

actor LeafBombShield_V : BasicProjectile //: LeafShield
{
scale 2.0
PROJECTILE
+NOEXPLODEFLOOR
+NOGRAVITY
+NOINTERACTION
Damage(0)
Obituary "$OB_LEAFBOMB"
damagetype "LeafBombShield_V"
Radius 55
Height 55
Speed 0
States
{
Spawn:
TNT1 A 0
TNT1 A 0 A_PlaySoundEx("weapon/leafbombexplode","Weapon",0)
LFBR IJ 2 A_Explode(CallACS("vile_cbm_damage",3),55,0,0,55)
TNT1 A 0 A_PlaySoundEx("weapon/leafbombexplode","Weapon",0)
LFBR KL 2 A_Explode(CallACS("vile_cbm_damage",3),55,0,0,55)
TNT1 A 0 A_PlaySoundEx("weapon/leafbombexplode","Weapon",0)
LFBR IJ 2 A_Explode(CallACS("vile_cbm_damage",3),55,0,0,55)
TNT1 A 0 A_PlaySoundEx("weapon/leafbombexplode","Weapon",0)
LFBR KL 2 A_Explode(CallACS("vile_cbm_damage",3),55,0,0,55)
goto Death
Death:
TNT1 A 0 A_SpawnItemEx("ExplosionEffect1", 0, 0, 0, 0, 0, 0, 0, SXF_WEPFXCOLOR)
stop
}
}