actor NeedleCannonWep : BaseMM8BDMWep 10040
{
//$Category MM8BDM-Weapons
//$Title Needle Cannon
//$Sprite WEAPL0
Weapon.AmmoUse 1
Weapon.AmmoGive 28
Weapon.SlotNumber 3
Inventory.Pickupmessage "$PU_NEEDLECANNON"
Obituary "$OB_NEEDLECANNON"
Tag "$TAG_NEEDLECANNON"
weapon.ammotype "NeedleCannonAmmo"
inventory.icon "NEEDSI"
States
{
SpawnLoop:
WEAP L -1
loop
Ready:
NEDC B 0 ACS_ExecuteAlways(998,0,10)
NEDC B 1 A_WeaponReady
Goto Ready+1
Deselect:
TNT1 AAAAAAAAAAAAAAAAAAAAAA 0 A_Lower
NEDC B 1 A_Lower
Loop
Select:
TNT1 AAAAAAAAAAAAAAAAAAAAAA 0 A_Raise
NEDC B 1 A_Raise
Loop
Fire:
Hold:
NEDC B 0 A_JumpIfNoAmmo("NoAmmo")
NEDC B 0 A_PlaySoundEx("weapon/mbuster","Weapon")
NEDC B 0 A_FireCustomMissile("Needle",random(-2,2),0,8,0)
NEDC CDB 2
NEDC B 0 A_PlaySoundEx("weapon/mbuster","Weapon")
NEDC D 0 A_FireCustomMissile("Needle",random(-2,2),0,8,0)
NEDC CDB 2
NEDC B 0 A_PlaySoundEx("weapon/mbuster","Weapon")
NEDC B 0 A_FireCustomMissile("Needle",random(-2,2),1,8,0)
NEDC CDB 2
NEDC B 0 A_Refire
Goto Ready+1
NoAmmo:
NEDC B 1 ACS_Execute(979,0)
Goto Ready+1
}
}

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


actor Needle
{
PROJECTILE
Radius 6
Height 7
damagetype "NeedleCannon"
Obituary "$OB_NEEDLECANNON"
scale 2.5
damage (16)
speed 38
States
{
Spawn:
NEDC A 1
loop
}
}