ACTOR TWINEGrenadeLauncher: Weapon
{
  Weapon.Kickback 100
  Scale 0.1
   Weapon.Ammotype "TWINEGrenadeLauncherAmmo"
   Weapon.AmmoUse 1
  Weapon.AmmoGive 0
  Tag "Grenade Launcher"
  +WEAPON.EXPLOSIVE
  Inventory.PickupMessage "Got Grenade Launcher"
  Obituary  "%o was filled with holes by %k's Grenade Launcher with his one hand."
  	Inventory.PickupSound "TWINE/Items/Pickup"
  States
  {
  Spawn:
    TKA7 F -1
    Loop
  Ready:
  TNT1 A 0 A_PlaySound ("TWINE/Weapons/WeaponupPSX","Weapon")
    TL19 A 3 
    TL19 B 3
    TL19 C 3
    TL19 D 3
    TL19 E -1  A_WeaponReady
    Goto Ready+6
  Deselect:
  TNT1 A 0 A_PlaySound ("TWINE/Weapons/Switch","Weapon")
    TL21 CDEF 2
    TK61 E 0 A_Lower
    wait
  Select: 
    TK61 A 0 A_Raise 
    Loop  
  Fire: 
 	TNT1 A 0 A_PlaySound ("TWINE/Weapons/GrenadeLauncher","Weapon")
	TNT1 A 0
    TL19 F 1 A_FireCustomMissile ("TWINEMustangMAR4GLGrenade")
	TL19 G 2
	TL19 HIJKLMNOPQRSTUVXYZ 2
	TL20 ABCDEFGHIJKLMNOPQRSTUVXYZ 2
	TL21 AB 1
    Goto Ready+5
	Reload:
		TK04 A 0
		goto ReloadCheck
  }
}

// This uses the Mustang MAR4GL's coding and sprites as a placeholder for now

ACTOR TWINEGrenadeLauncherLaunched
{   
  Speed 49
  Damage 200
  scale 0.4
        radius 8
  height 8
  Projectile
	  obituary "%k took out %o with the Grenade Launcher."
	    -NOGRAVITY
	+DEHEXPLOSION
  +FORCEXYBILLBOARD
  +RANDOMIZE
  States
  {
  Spawn:
  Spawn:
    TF06 G 0
    TF01 A 1
    Loop
			Detonate:
		MISL B 4 A_Scream
		MISL C 6 A_Detonate
		MISL D 10
		Stop
	Mushroom:
		MISL B 8 A_Mushroom
		Goto Death+1
DEATH:
NULL A 0
TNT1 A 0 A_PlaySound ("TWINE/Weapons/Boom")
NULL A 0 A_ALERTMONSTERS
NULL A 0 A_SPAWNITEMEX("TWINERocketBoom",0,0,0,random(0,0),random(0,0),0)
STOP
}}