ACTOR Shot_Gun : BrutalWeapon
{
	Game Doom
	SpawnID 27
	Weapon.SelectionOrder 1300
	Weapon.AmmoUse1 0
	Weapon.AmmoUse2 0
	Weapon.AmmoGive1 0
	Weapon.AmmoGive2 0
	Weapon.AmmoType1 "AmmoShell"
	Weapon.AmmoType2 "ShotgunAmmo"
	Inventory.PickupMessage "$GOTSHOTGUN"
    Inventory.PickupSound "weapons/sgpump"
	Obituary "$OB_MPSHOTGUN"
    AttackSound "None"
    +WEAPON.NOALERT
    +WEAPON.NOAUTOAIM
	+WEAPON.NOAUTOFIRE
	+FORCEXYBILLBOARD
	Scale 0.9
	Tag "Shotgun"
	States
	{
		
    
	Select:
		TNT1 A 0 A_Giveinventory("GoSpecial",1)
		TNT1 A 0 A_Takeinventory("FistsSelected",1)
		TNT1 A 0 A_Takeinventory("SawSelected",1)
		TNT1 A 0 A_Giveinventory("ShotgunSelected",1)
		TNT1 A 0 A_Takeinventory("SSGSelected",1)
		TNT1 A 0 A_Takeinventory("MinigunSelected",1)
		TNT1 A 0 A_Takeinventory("PlasmaGunSelected",1)
		TNT1 A 0 A_Takeinventory("RocketLauncherSelected",1)
		TNT1 A 0 A_Takeinventory("GrenadeLauncherSelected",1)
		TNT1 A 0 A_Takeinventory("BFGSelected",1)
		TNT1 A 0 A_Takeinventory("BFG10kSelected",1)
		TNT1 A 0 A_Takeinventory("RailGunSelected",1)
		TNT1 A 0 A_Takeinventory("SubMachineGunSelected",1)
		TNT1 A 0 A_Takeinventory("RevenantLauncherSelected",1)
		TNT1 A 0 A_Takeinventory("LostSoulSelected",1)
		TNT1 A 0 A_Takeinventory("FlameCannonSelected",1)
		TNT1 A 0 A_Takeinventory("HasBarrel",1)
		TNT1 A 0 A_TakeInventory("TossGrenade", 1)
		TNT1 AAAAAAAAA 0 A_Raise
		TNT1 AAAA 1 A_Raise

	SelectAnimation:
        TNT1 AAAA 0 A_JumpIfInventory("GoFatality", 1, "Steady")
		TNT1 A 0 A_JumpIfInventory("IsPlayingAsPurist", 1, "PuristGun")
        SHSS ABCD 1 A_JumpIfInventory("GoFatality", 1, "Steady")
		TNT1 A 0 A_PlaySound("weapons/sgpump")
		TNT1 A 0 A_GunFlash

	Ready3:	
	Ready:	
        TNT1 A 0 A_JumpIfInventory("Kicking",1,"DoKick")
        TNT1 A 0 A_JumpIfInventory("Taunting",1,"Taunt")
        TNT1 A 0 A_JumpIfInventory("Reloading",1,"Reload")
		TNT1 A 0 A_JumpIfInventory("Salute1", 1, "Salute")
		TNT1 A 0 A_JumpIfInventory("Salute2", 1, "Salute")
		TNT1 A 0 A_JumpIfInventory("Unloading",1,"Unload")
		TNT1 A 0 A_JumpIfInventory("Zoomed",1,"REady2")
		TNT1 A 0 A_JumpIfInventory("TossGrenade",1,"TossGrenade")
	OkToFire:
		SHTN A 1 A_WeaponReady(WRF_ALLOWRELOAD)
		TNT1 A 0 A_JumpIfInventory("IsRunning",1,"CheckSprint")
		
        Goto Ready
		
	CheckSprint:
		SHTN A 1 A_WeaponReady(WRF_NOFIRE)
		TNT1 A 0 A_Takeinventory("Zoomed",1)
        TNT1 A 0 A_ZoomFactor(1.0)
		TNT1 A 0 A_Takeinventory("ADSmode",1)
		TNT1 A 0 A_Giveinventory("GoSpecial",1)
		TNT1 A 0 A_JumpIfInventory("IsStandingStill", 1, "Ready3")
		TNT1 A 0 A_JumpIfInventory("IsTacticalClass", 1, "StartSprint")
		Goto Ready
		
	StartSprint:
		SHTN A 1 A_WeaponReady(WRF_NOFIRE)
		TNT1 A 0 A_Takeinventory("Zoomed",1)
		TNT1 A 0 A_Takeinventory("ADSmode",1)
		TNT1 A 0 A_ZoomFactor(1.0)
		TNT1 A 0 A_JumpIfInventory("UsedStamina", 40, "StopSprintTired")
		
	Sprinting:	
		STRN A 0 offset(-9,32) 
		TNT1 A 0 offset(-9,32) A_JumpIfInventory("IsStandingStill", 1, "Ready3")
		TNT1 A 0 offset(-9,32) A_JumpIfInventory("UsedStamina", 100, "StopSprintTired")
		PLAY A 0 offset(-9,32) ACS_ExecuteAlways(852, 0, 0, 0, 0)//Makes player faster.
		TNT1 A 0 offset(-9,32) A_JumpIfInventory("PowerStrength", 1, 2)
		TNT1 A 0 offset(-9,32) A_GiveInventory("UsedStamina", 5)
		TNT1 A 0 offset(-9,32)
		STRN A 1 offset(-9,34) A_SetPitch(pitch -0.5)
		STRN A 1 offset(-6,36) A_SetPitch(pitch -0.5)
		STRN A 1 offset(-3,38) A_SetPitch(pitch -0.5)
		STRN A 1 offset(0,38) A_SetPitch(pitch -0.5)
		STRN A 1 offset(3,36) A_SetPitch(pitch -0.5)
		STRN A 1 offset(6,34) A_SetPitch(pitch -0.5)
		STRN A 1 offset(9,32) A_SetPitch(pitch -0.5)
		TNT1 A 0 offset(9,32) A_WeaponReady(WRF_NOBOB)
		TNT1 A 0 A_JumpIfInventory("Kicking",1,"DoKick")
        TNT1 A 0 A_JumpIfInventory("Taunting",1,"Taunt")
        TNT1 A 0 A_JumpIfInventory("Reloading",1,"Reload")
		TNT1 A 0 offset(-9,32) A_GiveInventory("UsedStamina", 5)
		TNT1 A 0 offset(9,33) A_SpawnItemEx("FootStep", 0, 0, 2, 0, 0, -4)
		STRN A 1 offset(9,34) A_SetPitch(pitch +0.5)
		STRN A 1 offset(6,36) A_SetPitch(pitch +0.5)
		STRN A 1 offset(3,38) A_SetPitch(pitch +0.5)
		STRN A 1 offset(0,38) A_SetPitch(pitch +0.5)
		STRN A 1 offset(-3,36) A_SetPitch(pitch +0.5)
		STRN A 1 offset(-6,34) A_SetPitch(pitch +0.5)
		STRN A 1 offset(-9,32) A_SetPitch(pitch +0.5)
		TNT1 A 0 offset(-9,32) A_WeaponReady(WRF_NOBOB)
		TNT1 A 0 offset(-9,32) A_JumpIfInventory("IsRunning", 1, "Sprinting")
		
		Goto StopSprint
	StopSprintTired:
		SHTN A 1
		PLAY A 0 ACS_ExecuteAlways(853, 0, 0, 0, 0)//Makes player slower.
		TNT1 A 0 A_PlaySound("Tired", 2)
		TNT1 A 0 A_TakeInventory("UsedStamina", 2)
		SHTN A 5 A_WeaponReady
		TNT1 A 0 A_TakeInventory("UsedStamina", 2)
		SHTN A 5 A_WeaponReady
		TNT1 A 0 A_TakeInventory("UsedStamina", 2)
		SHTN A 5 A_WeaponReady
		TNT1 A 0 A_TakeInventory("UsedStamina", 2)
		SHTN A 5 A_WeaponReady
		TNT1 A 0 A_TakeInventory("UsedStamina", 2)
		SHTN A 5 A_WeaponReady
		Goto Ready
	StopSprint:
		STRN A 1
		TNT1 A 0 A_JumpIfInventory("UsedStamina", 60, "StopSprintTired")
		PLAY A 0 ACS_ExecuteAlways(853, 0, 0, 0, 0)//Makes player slower.
		Goto Ready
		
	Ready2:
        TNT1 A 0 A_JumpIfInventory("Kicking",1,"DoKick")
        TNT1 A 0 A_JumpIfInventory("Taunting",1,"Taunt")
        TNT1 A 0 A_JumpIfInventory("Reloading",1,"Reload")
		TNT1 A 0 A_JumpIfInventory("Salute1", 1, "Salute")
		TNT1 A 0 A_JumpIfInventory("Salute2", 1, "Salute")
		TNT1 A 0 A_JumpIfInventory("TossGrenade",1,"TossGrenade")
		TNT1 A 0 A_JumpIfInventory("Unloading",1,"Unload")
		TNT1 A 0 A_JumpIfInventory("IsRunning",1,"CheckSprint")
		SHT8 A 1 A_WeaponReady(WRF_ALLOWRELOAD)
		Loop
	
	
	Deselect:
			TNT1 A 0
			TNT1 A 0 A_Takeinventory("Zoomed",1)
			TNT1 A 0 A_TakeInventory("TossGrenade", 1)
			TNT1 A 0 A_Takeinventory("ADSmode",1)
		TNT1 A 0 A_Takeinventory("UseShotgunStrap",1)
        TNT1 A 0 A_ZoomFactor(1.0)
		SHSS DCBA 1
		TNT1 AAAAAAAAAAAAAAAAAA 0 A_Lower
		TNT1 A 1
		Wait

		
    Fire:
        TNT1 A 0 A_Takeinventory("Reloading",1)
		TNT1 A 0 A_JumpIfInventory("Zoomed",1,"Fire2")
        TNT1 A 0 A_JumpIfInventory("ShotgunAmmo",1,2)
        Goto Reload
        TNT1 AAAA 0
		TNT1 A 0 A_ZoomFactor(0.96)
		TNT1 A 0 A_JumpIfInventory("ShotgunWasEmpty", 1, "Pump2")
        //TNT1 AA 0 A_FireCustomMissile("SmokeSpawner",0,0,0,5)
		//TNT1 A 0 A_SetAngle(random(2, -2) + angle)
		//TNT1 A 0 A_SetPitch(random(2, -2) + pitch)
        TNT1 A 0 A_AlertMonsters
        TNT1 A 0 A_PlaySound("weapons/sg", 1)
		RIFF AA 0 A_FireCustomMissile("GunFireSmoke", 0, 0, 0, 0, 0, 0)
		RIFF A 0 A_FireCustomMissile("DistantFireSoundShotgun", random(-1,1), 0, 0, -12, 0, random(-1,1))
        TNT1 A 0
		TNT1 AA 0 A_FireCustomMissile("YellowFlareSpawn",0,0,0,0)
		TNT1 A 0 A_SpawnItemEx("PlayerMuzzle1",30,5,30)
		TNT1 AAAAAAAAAAAAAAAA 0 BRIGHT A_FireCustomMissile("ShotgunParticles", random(-12,12), 0, -1, 0, 0, random(-9,9))
		TNT1 AAAAA 0 BRIGHT A_FireCustomMissile("ShotgunParticles2", random(-12,12), 0, -1, 0, 0, random(-9,9))
		TNT1 AAAAA 0 A_FireCustomMissile("DecorativeTracer", random(-3,3), 0, 0, -12, 0, random(-3,3))
		TNT1 A 0 A_Takeinventory("ShotgunAmmo",1)
		SHTN A 0 A_FireBullets (2.5, 2.5, 3, 13, "ShotgunPuff", FBF_NORANDOM)
		SHTN A 0 A_FireBullets (2.5, 2.5, 6, 13, "ShotgunPuff2", FBF_NORANDOM)
        SHTA B 1 BRIGHT
		TNT1 A 0 A_SetPitch(-6.0 + pitch)
		//SHTA B 1 BRIGHT
		TNT1 AA 0 A_FireCustomMissile("YellowFlareSpawn",0,0,0,0)
		TNT1 A 0 A_ZoomFactor(1.00)
		
		SHTA C 1 A_SetPitch(+1.0 + pitch)
		
		SHTA DE 1 A_SetPitch(+1.0 + pitch)
		
		
		SHTN A 0 A_SetPitch(+3.0 + pitch)
		//SHTN AA 1 A_SetPitch(+1.0 + pitch)
		
		//TNT1 A 0 A_Jump(128, "Pump1")
		Goto Pump1
		
   Pump1:	
	   TNT1 A 0
	   TNT1 A 0 A_GiveInventory ("Pumping", 1)
	   TNT1 A 0 A_GiveInventory ("GoSpecial", 1)
	   
	   SHTN BCDEFG 1
	   TNT1 A 0 A_FireCustomMissile("ShotCaseSpawn",40,0,-8,-26)
	   TNT1 A 0 A_WeaponReady(WRF_NOFIRE| WRF_NOBOB)//Allows quick switch
	   SHTN H 1 A_PlaySound("weapons/sgpump", 3)
	   //TNT1 A 0 A_SetPitch(+1 + pitch)
	   SHTN IJ 1
	   TNT1 A 0 A_JumpIfInventory("ShotgunAmmo",1,4)
	   TNT1 A 0 A_JumpIfInventory("TurboReload", 1, 2)
	   TNT1 A 0 A_Giveinventory("ShotgunWasEmpty",1)
	   Goto Reload+18
	   TNT1 AA 0
	   //TNT1 A 0 A_SetPitch(-1 + pitch)
	   SHTN KL 1
	   SHTN KJIH 1
	   TNT1 A 0 A_JumpIfInventory("IsRunning",1,"CheckSprint")
	   TNT1 A 0 A_Takeinventory("ShotgunWasEmpty",1)
	   SHTN GFEDC 1 A_JumpIfInventory("Kicking",1,"DoKick")
	   TNT1 A 0 A_JumpIfInventory("ShotgunAmmo",1,2)
	   TNT1 A 0 A_JumpIfInventory("TurboReload", 1, "TurboReload")
	   TNT1 A 0
	   Goto ReadyToFireAgain
   
   
   Pump2:	
	   TNT1 A 0
	   TNT1 A 0 A_GiveInventory ("Pumping", 1)
	   TNT1 A 0 A_GiveInventory ("GoSpecial", 1)
	   TNT1 A 0 A_TakeInventory("Reloading", 1)
			TNT1 A 0 A_Takeinventory("Zoomed",1)
			TNT1 A 0 A_ZoomFactor(1.0)
	   SHTN FG 1
	   SHTN H 1 A_PlaySound("weapons/sgpump", 3)
	   //TNT1 A 0 A_SetPitch(+1 + pitch)
	   SHTN IJ 1
	   //TNT1 A 0 A_SetPitch(-1 + pitch)
	   SHTN KL 1
	   SHTN KJIH 1
	   TNT1 A 0 A_JumpIfInventory("IsRunning",1,"CheckSprint")
	   TNT1 A 0 A_Takeinventory("ShotgunWasEmpty",1)
	   SHTN GFEDC 1 A_JumpIfInventory("Kicking",1,"DoKick")
	  
	   Goto ReadyToFireAgain
   
		
	ReadyToFireAgain:	
		//SHTN A 6 <-- Old frame
        SHTN A 1 Offset(10,36) // <-- New frames
        SHTN A 1 Offset(9,40) //
        SHTN A 1 Offset(4,40) //
        SHTN A 1 Offset(0,32) //
        SHTN A 0 A_Refire
        SHTN A 0 //A_Refire
		Goto Ready3
		
	Fire2:
        TNT1 A 0 A_Takeinventory("Reloading",1)
        TNT1 A 0 A_JumpIfInventory("ShotgunAmmo",1,2)
        Goto Reload
        TNT1 AAAA 0
		TNT1 A 0 A_JumpIfInventory("ShotgunWasEmpty", 1, "Pump2")
        //TNT1 AA 0 A_FireCustomMissile("SmokeSpawner",0,0,0,5)
        TNT1 A 0 A_AlertMonsters
		RIFF AA 0 A_FireCustomMissile("GunFireSmoke", 0, 0, 0, 2, 0, 0)
        TNT1 A 0 A_PlaySound("weapons/sg", 1)
        TNT1 A 0
		TNT1 A 0 A_SpawnItemEx("PlayerMuzzle1",30,0,45)
		SHTN A 0 A_FireBullets (2.5, 2.5, 9, 13, "ShotgunPuff", FBF_NORANDOM)
		RIFF A 0 A_FireCustomMissile("DistantFireSoundShotgun", random(-1,1), 0, 0, -12, 0, random(-1,1))
		//TNT1 AAAAAAAAAAAA 0 BRIGHT A_FireCustomMissile("ShotgunParticles", random(-15,15), 0, -1, 0, 0, random(-10,10))
		TNT1 AAAAA 0 A_FireCustomMissile("DecorativeTracer", random(-5,5), 0, 0, 0, 0, random(-5,5))
		TNT1 A 0 A_SetPitch(-10.0 + pitch)
		//TNT1 A 0 A_FireCustomMissile("ShakeYourAssDouble", 0, 0, 0, 0)
		TNT1 A 0 A_Takeinventory("ShotgunAmmo",1)
        SHT8 F 1 BRIGHT A_SetPitch(+2.0 + pitch)
		SHT8 GHIA 1 A_SetPitch(+2.0 + pitch)
	   SHT8 A 1	
	   TNT1 A 0 A_GiveInventory ("Pumping", 1)
	   SHT8 JKLM 1
	   TNT1 A 0 A_FireCustomMissile("ShotCaseSpawn",40,0,14,0)
	   TNT1 A 0 A_PlaySound("weapons/sgpump")
	   SHT8 NOONMLKJ 1
	   SHT8 A 2
	   TNT1 A 0 A_Refire
	   SHT8 A 1
	   Goto Ready2
	
	
	
	
	AltFire:
        TNT1 A 0
		TNT1 A 0 A_Giveinventory("GoSpecial",1)
		TNT1 A 0 A_JumpIfInventory("Zoomed",1,8)
		TNT1 A 0 A_Giveinventory("Zoomed",1)
        TNT1 A 0 A_ZoomFactor(1.2)
		TNT1 A 0 A_Giveinventory("ADSmode",1)
        SHT8 E 1
        Goto Ready2
        TNT1 AAAAAA 0
		TNT1 A 0 A_Takeinventory("Zoomed",1)
        TNT1 A 0 A_ZoomFactor(1.0)
		TNT1 A 0 A_Takeinventory("ADSmode",1)
		TNT1 A 0 A_Giveinventory("GoSpecial",1)
		SHT8 D 1
        Goto Ready
		
	WarmUp:
	TNT1 A 0
	TNT1 A 0 A_TakeInventory ("NeverSelectedShotgun", 1)
   TNT1 A 0 A_TakeInventory("Reloading", 1)
	    TNT1 A 0 A_Takeinventory("Zoomed",1)
        TNT1 A 0 A_ZoomFactor(1.0)
	SHSS EFGHIJKLM 1
   SHTN FG 1
   SHTN H 1 A_PlaySound("weapons/sgpump", 3)
   //TNT1 A 0 A_SetPitch(+1 + pitch)
   SHTN IJ 1
   //TNT1 A 0 A_SetPitch(-1 + pitch)
   SHTN KL 1
   SHTN KJIH 1
   TNT1 A 0 A_Takeinventory("ShotgunWasEmpty",1)
   SHTN GFEDC 1 A_JumpIfInventory("Kicking",1,"DoKick")
   Goto ReadyToFireAgain	
	
	Spawn:
		SHTC A -1
		Stop
    	
    

    ReloadWithNoAmmoLeft:
    Reload:
	    TNT1 A 0
	    
		TNT1 A 0 A_TakeInventory("Reloading", 1)
	    TNT1 A 0 A_Takeinventory("Zoomed",1)
        TNT1 A 0 A_ZoomFactor(1.0)
		SHTN A 1 A_WeaponReady
		
		TNT1 A 0 A_JumpIfInventory("ShotgunAmmo",10,"OkToFire")
		
		TNT1 A 0 A_JumpIfInventory("ShotgunAmmo", 1, "ReloadNormally")
		TNT1 A 0 A_GiveInventory("ShotgunWasEmpty", 1)
	
	ReloadNormally:	
        TNT1 A 0 A_JumpIfInventory("AmmoShell",1,3)
        Goto Ready
        TNT1 AA 0
		TNT1 A 0 A_JumpIfInventory("TurboReload", 1, "TurboReload")
		SHTN B 1 
				TNT1 A 0 A_GiveInventory ("Pumping", 1)
		SHTN CDE 1 A_Takeinventory("FiredSecondary",1)
        TNT1 AAAA 0
        TNT1 A 0 A_JumpIfInventory("AmmoShell",1,2)
        Goto Reload+53
        TNT1 AAAAA 0


		TNT1 A 0 A_GiveInventory ("Pumping", 1)
        TNT1 A 0 A_JumpIfInventory("ShotgunAmmo",10,23)
		//TNT1 A 0 A_JumpIfInventory("AmmoShell",0,23)
        TNT1 A 0
        TNT1 A 0 A_Giveinventory("ShotgunAmmo",1)
		TNT1 A 0 A_Takeinventory("AmmoShell",1)


        SSHR AAAABC 1
        SSHR D 1 A_PlaySound("insertshell")
        SSHR EF 1 A_WeaponReady(WRF_NOBOB)
        SSHR A 0 A_JumpIfInventory("Reloading", 1, "Pump2")
        TNT1 A 0 A_JumpIfInventory("Kicking",1,"DoKickReloading")
		TNT1 A 0 A_JumpIfInventory("IsRunning",1,"CheckSprint")


        Goto Reload+18
        TNT1 AAAAA 0
		TNT1 A 0 A_Takeinventory("Reloading",1)
		TNT1 AAAAA 0
		TNT1 A 0 A_JumpIfInventory("ShotgunWasEmpty", 1, "Pump2")
		SHTN FEDCBA 1 A_WeaponReady
		TNT1 A 0 A_Takeinventory("Reloading",1)
		TNT1 A 0 //A_Giveinventory("SGFullReloaded",1)
		Goto Ready
		
	
	 TurboReload:
		SHSS BC 0
	TurboBullets:	
		TNT1 A 0
		TNT1 A 0 A_JumpIfInventory("ShotgunAmmo",10,"FinishTurboReload")
        TNT1 A 0 A_JumpIfInventory("AmmoShell",1,3)
        Goto FinishTurboReload
        TNT1 AAAA 0
        TNT1 A 0 A_Giveinventory("ShotgunAmmo",1)
		TNT1 A 0 A_Takeinventory("AmmoShell",1)
		Goto TurboBullets
	FinishTurboReload:
		SHTN A 1 A_Refire
		Goto Ready3

      PuristGun:
		TNT1 A 1
		TNT1 A 0 A_GiveInventory("ClassicShotgun", 1)
		TNT1 A 0 A_TakeInventory("Shot_Gun", 1)
		TNT1 A 10
		Goto Ready2
		
	
		
	Unload:
		SHTN A 1
		TNT1 A 0 A_ZoomFactor(1.0)
		TNT1 A 0 A_Takeinventory("Unloading",1)
		TNT1 A 0 A_Takeinventory("ADSmode",1)
		TNT1 A 0 A_Takeinventory("Zoomed",1)
		TNT1 A 0 A_GiveInventory("ShotgunWasEmpty", 1)
        TNT1 A 0 A_JumpIfInventory("ShotgunAmmo",1,3)
        Goto OkToFire
        TNT1 AAA 0
		TNT1 A 0 A_Takeinventory("Zoomed",1)
		TNT1 A 0 A_GiveInventory ("Pumping", 1)
		TNT1 A 0 A_Takeinventory("Unloading",1)
		SHTN ABCDEF 1
		
	RemoveBullets:
		TNT1 AAAA 0
		TNT1 A 0 A_JumpIfInventory("ShotgunAmmo",1,3)
		Goto FinishUnload
        TNT1 AAAAAA 0
		TNT1 A 0 A_Takeinventory("ShotgunAmmo",1)
		TNT1 A 0 A_Giveinventory("AmmoShell",1)
		
		SHTN G 1
	   SHTN H 1 A_PlaySound("weapons/sgpump", 3)
	   //TNT1 A 0 A_SetPitch(+1 + pitch)
	   SHTN IJ 1
	   //TNT1 A 0 A_SetPitch(-1 + pitch)
	   SHTN KL 1
	   SHTN KJIH 1
	   TNT1 A 0 A_Giveinventory("ShotgunWasEmpty",1)
	   SHTN GF 1
		Goto RemoveBullets
	
	FInishUnload:
		SHTN EDCBA 1
		TNT1 A 0 A_Takeinventory("Unloading",1)
		Goto OkToFire	
		
		
	DoKickReloading:
		NULL A 0 A_JumpIf (momZ > 0, "AirKick")
		NULL A 0 A_JumpIf (momZ < 0, "AirKick")
        TNT1 A 0 A_PlaySound("KICK")
		TNT1 A 0 SetPlayerProperty(0,1,0)
		KICK BCD 1
		RIFF A 0 A_FireCustomMissile("KickAttack", 0, 0, 0, -7)
        KICK H 3
		KICK A 0 A_Takeinventory("Kicking",1)
		KICK I 1
		KICK GFEDCBA 1 
		RIBA A 0 A_Takeinventory("Kicking",1)
		TNT1 A 0 SetPlayerProperty(0,0,0)
		Goto Reload+18
		
	Steady:
		TNT1 A 1
		Goto Ready
			
	}
}

ACTOR ShotgunAmmo : Ammo
{
   Inventory.Amount 0
   Inventory.MaxAmount 10
   Ammo.BackpackAmount 0
   Ammo.BackpackMaxAmount 10
   Inventory.Icon "SHTCA0"
}



