actor CrowKatanaMAC10 : DravenWeaponBase
{
  	Weapon.AmmoType1 "Clip"
  	Weapon.AmmoGive 50
  	Weapon.AmmoUse 1
  	+WEAPON.NOALERT
  	+FloorClip
  	weapon.bobstyle inversesmooth
    weapon.bobspeed 2.0
  	weapon.bobrangex 0.75
  	weapon.bobrangey 0.75
  	Inventory.Pickupmessage "You can now Dual-Wield the Katana and the MAC-10! (Slot 9)"
	inventory.pickupsound "misc/w_pkup"
	Obituary "%o ate %k's bullets."
	Weapon.UpSound "Weapon/switch"
	+WEAPON.NOAUTOAIM
	+FORCEXYBILLBOARD
	+weapon.noautoaim
	Weapon.SelectionOrder 800
	Tag "MAC-10 Submachinegun"
	States
	{
	Ready:
		CKM1 A 1 A_WeaponReady(WRF_ALLOWZOOM|WRF_ALLOWRELOAD)
		Loop
	Select:
		CKM1 A 1 A_Raise
		CKM1 AA 0 A_Raise
		Loop
	Deselect:
		CKM1 A 1 A_Lower
		CKM1 AA 0 A_Lower
		Loop
	Fire:
		TNT1 A 0 A_GunFlash
		TNT1 A 0 A_AlertMonsters
		TNT1 A 0 A_SetPitch(pitch-1)
		TNT1 A 0 A_FireCustomMissile("PistolCaseSpawn",5,0,12,-14)
		TNT1 A 0 A_PlayWeaponSound("mac10/fire")
		CKM1 B 1 Bright A_FireBullets(5,5,1,20,"CrowMachinePuff")
		TNT1 A 0 A_SetPitch(pitch+1)
		CKM1 CD 1
		TNT1 A 0 A_Refire
		Goto Ready
	AltFire:
		TNT1 A 0 A_JumpifInventory("CrowIsSlashing",1,"AltHold")
		CKMS ABCDE 1
		Goto AltHold
	AltHold:
		TNT1 A 0 A_PlaySoundEx("crowkatana/swing","Soundslot7",0,0)
		TNT1 A 0 A_Jump(256,"AltHold2","AltHold3","AltHold4","AltHold5","AltHold6","AltHold7")
		Goto AltHold1
	AltHold1:
		TNT1 A 0 A_GiveInventory("CrowisSlashing",1)
		KATN AB 1
		TNT1 A 0 A_CustomPunch(50,0,0,"CrowSwordPuff")
		KATN CDE 1
		Goto Ready2
	AltHold2:
		TNT1 A 0 A_GiveInventory("CrowisSlashing",1)
		KATN FG 1
		TNT1 A 0 A_CustomPunch(50,0,0,"CrowSwordPuff")
		KATN HIJ 1
		Goto Ready2
	AltHold3:
		TNT1 A 0 A_GiveInventory("CrowisSlashing",1)
		KATN KLM 1
		TNT1 A 0 A_CustomPunch(50,0,0,"CrowSwordPuff")
		KATN NOP 1
		Goto Ready2
	AltHold4:
		TNT1 A 0 A_GiveInventory("CrowisSlashing",1)
		KATN QRS 1
		TNT1 A 0 A_CustomPunch(50,0,0,"CrowSwordPuff")
		KATN TU 1
		Goto Ready2
	AltHold5:
		TNT1 A 0 A_GiveInventory("CrowisSlashing",1)
		KATN VWX 1
		TNT1 A 0 A_CustomPunch(50,1,0,"CrowSwordPuff")
		KATN YZ 1
		Goto Ready2
	AltHold6:
		TNT1 A 0 A_GiveInventory("CrowisSlashing",1)
		KAT2 ABC 1
		TNT1 A 0 A_CustomPunch(50,1,0,"CrowSwordPuff")
		KAT2 DEF 1
		Goto Ready2
	AltHold7:
		TNT1 A 0 A_GiveInventory("CrowisSlashing",1)
		KAT2 GHI 1
		TNT1 A 0 A_CustomPunch(50,1,0,"CrowSwordPuff")
		KAT2 JKL 1
		Goto Ready2
	Ready2:
		TNT1 A 14
		TNT1 A 0 A_Refire("AltHold")
		CKMS EDCBA 1
		TNT1 A 0 A_TakeInventory("CrowisSlashing",999)
		Goto Ready
	KickFlash:
		CKM1 A 19 A_WeaponReady(WRF_NOFIRE|WRF_NOSWITCH)
		Stop
	}
}
