
//--armor--//

actor GMOTAHelmet : Custominventory replaces armorbonus
{
	Inventory.PickupMessage "Picked up a steel helmet!"
	inventory.pickupsound "powerups/helmet"
	scale 1
	+notimefreeze
	+COUNTITEM
	+INVENTORY.ALWAYSPICKUP
	states
	{
	Spawn:
		HLMT A 6
		HLMT A 6 bright
		Loop
	pickup:
		TNT1 A 0
		TNT1 A 1 A_GiveInventory ("Steelhelmet",1)
		stop
	}
}

actor SteelHelmet : armorbonus
{
	Inventory.PickupMessage "Picked up a steel helmet!"
	inventory.pickupsound "powerups/helmet"
	Inventory.Icon "HLMTA0"
	Armor.SavePercent 33.335
	Armor.SaveAmount 1
	scale 1
	Armor.MaxSaveAmount 200
	+notimefreeze
	+INVENTORY.ALWAYSPICKUP
	States
	{
	Spawn:
		HLMT A 6
		HLMT A 6 bright
		Loop
	pickup:
		TNT1 A 0
		TNT1 A 1 A_GiveInventory ("Steelhelmet",1)
		stop
	}
}


Actor GMOTAArmor : CustomInventory replaces Greenarmor
{
	+notimefreeze
	Radius 20
	Height 16
	scale 1.5
	Inventory.PickupMessage "Got Steel armor!"
	Inventory.pickupsound "powerups/armor"
	states
	{
	Spawn:
		SARM A 6
		SARM A 6 bright
		Loop
	pickup:
		TNT1 A 0
		TNT1 A 1 A_GiveInventory ("SteelArmor",1)
		stop
	}
}

actor SteelArmor : Greenarmor 
{
	Inventory.Icon "SARMA0"
	Armor.SavePercent 33.335
	Armor.SaveAmount 100
	States
	{
	Spawn:
		SARM A 6
		SARM A 6 bright
		Loop
	}
}



actor GMOTAGoldArmor : custominventory replaces bluearmor
{
	+notimefreeze
	scale 1.5
	Inventory.PickupMessage "Got golden armor!"
	Inventory.Icon "GARMA0"
	Inventory.pickupsound "powerups/bigarmor"
	states
	{
	Spawn:
		GARM A 6
		GARM A 6 Bright
		Loop
	Pickup:
		TNT1 A 0
		TNT1 A 1 A_GiveInventory ("GoldArmor",1)
		stop
	}
}


actor GoldArmor : bluearmor 
{
	Armor.SavePercent 50
	Armor.SaveAmount 200
	Inventory.Icon "GARMA0"
	States
	{
	Spawn:
		GARM A 6
		GARM A 6 Bright
		Loop
	}
}


//--food--//

actor milkjug : healthbonus replaces healthbonus
{
	+notimefreeze
	+COUNTITEM
	+INVENTORY.ALWAYSPICKUP
	Inventory.Amount 1
	Inventory.MaxAmount 200
	inventory.pickupsound "powerups/drink"
	Inventory.PickupMessage "Drank some milk"
	scale 0.90
	States
	{
	Spawn:
		MILK A 6
		MILK A 6 bright
		Loop
	}
}

actor bread : stimpack replaces stimpack
{
	+notimefreeze
	Inventory.Amount 10
	inventory.pickupsound "powerups/munch"
	Inventory.PickupMessage "Ate a loaf of bread"
	Health.LowMessage 25, "All this for a loaf of bread?"
	scale 1.25
	States
	{
	Spawn:
		BRED A 6
		BRED A 6 Bright
		loop
	}
}

actor drumstick : health
{
	+notimefreeze
	Inventory.Amount 10
	inventory.maxamount 200
	inventory.pickupsound "powerups/munch"
	Inventory.PickupMessage "Bit into a drumstick"
	inventory.pickupflash "droppedbone"
	scale 1.20
	States
	{
	Spawn:
		DSTK A 6
		DSTK A 6 Bright
		loop
	}
}

actor droppedbone
{
	+notimefreeze
	+cannotpush
	+movewithsector
	+dontsplash
	+noblockmap
	+missile
	+doombounce
	+thruactors
	-nogravity
	+FORCEXYBILLBOARD	
	+LOOKALLAROUND
	+bounceonactors
	+randomize
	+clientsideonly
	seesound "powerups/foodbone"
	scale 1
	Gravity 1.2 
	bouncecount 3
    bouncefactor 0.45
	Speed 5
    States
    {
    Spawn:
		TNT1 A 0
		TNT1 A 0
		BNGB A 1 thrustthingz (0,random(40,65),0,0)
        BNGB B 1 thrustthing (random(160,224),random(6,10),0)
	flight:	
        BNGB ABCD 2
		loop
	death:
		BNGB C 300
		BNGB C 10 A_FadeOut (0.25)
  		BNGB C 10 A_FadeOut (0.25)
		BNGB C 10 A_FadeOut (0.25)
		BNGB C 10 A_FadeOut (0.25)
		stop
    }
}

actor roastmeat : medikit replaces medikit
{	
	+notimefreeze
	Inventory.Amount 25
	inventory.pickupsound "powerups/munch"
	Inventory.PickupMessage "Ate a large chunk of nondescript meat off the floor"
	Health.LowMessage 25, "Ate a large chunk of meat off the floor you REALLY needed!"
	inventory.pickupflash "biggerbone"
	scale 1.50
	States
	{
	Spawn:
		MEAT A 6
		MEAT A 6 bright
		loop
	}
}

actor biggerbone : droppedbone
{
	scale 1.6
}


actor icecreamcone : healthbonus
{
	+notimefreeze
	-COUNTITEM
	+INVENTORY.ALWAYSPICKUP
	Inventory.Amount 3
	Inventory.MaxAmount 200
	inventory.pickupsound "powerups/drink"
	Inventory.PickupMessage "Ice cream!"
	states
	{
	spawn:
		FTRT A 6
		FTRT A 6 bright
		loop
	}
}

actor popsicle : icecreamcone
{
	Inventory.PickupMessage "Popsicle!"
	states
	{
	spawn:
		FTRT B 6
		FTRT B 6 bright
		loop
	}
}

actor sundae : icecreamcone
{
	Inventory.PickupMessage "Hot fudge sundae!"
	states
	{
	spawn:
		FTRT C 6
		FTRT C 6 bright
		loop
	}
}

actor strawberrycone : icecreamcone
{
	Inventory.PickupMessage "Strawberry ice cream!"
	states
	{
	spawn:
		FTRT D 6
		FTRT D 6 bright
		loop
	}
}
