
//==============================================================================
//		ARMOR MODPACKS
//==============================================================================

ACTOR RLArmorModItem : CustomInventory 16509
{
	Radius 20
	Height 16
    -COUNTITEM
    +INVENTORY.INVBAR
    +INVENTORY.UNTOSSABLE
    +DONTGIB
    Tag "Armor Modpack"
    //$category "DRLA Items"
    Inventory.InterHubAmount 1
    Inventory.MaxAmount 1
    Inventory.Icon "AMK1I0"
    Inventory.Pickupmessage "You picked up an Armor Mod Pack."
    Inventory.Pickupsound "misc/modpackpickup"
    Inventory.UseSound "weapons/assembly"
	States
	{
	Spawn:
		TNT1 A 0
		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "DRPGInit")
		TNT1 A 0 A_Jump (256, "SpecialStartCheck")
		Goto SpecialStartCheck
    SpecialStartCheck:
		TNT1 A 0 A_JumpIf(CallACS("DRLA_specialstarts") == 2, "Duke2Stuff")
		TNT1 A 0 A_Jump (256, "SpawnLoop")
		Goto SpawnLoop
    SpawnLoop:
		AMK1 ABCDDDCB 3 Bright
		Loop
		
//------------------------------------------------------------------------------

	Pickup:
		TNT1 A 0 A_JumpIfInventory("RLArmorModItemInInventory",1,"NoPickup") // If the player is carrying an Armor Mod already, they cannot pick it up
		TNT1 A 0 A_GiveInventory("RLArmorModItemInInventory",1)
		Stop
	NoPickup:
		TNT1 A 0 A_JumpIfInventory("DRLA_ModsAntiLogFloodCheck",1,"NoPickup_NoPrint")
		TNT1 A 0 A_GiveInventory("DRLA_ModsAntiLogFloodCheck")
		TNT1 A 0 A_Print("You are already carrying an Armor Modpack.", 2)
	NoPickup_NoPrint:
		TNT1 A 0
		Fail

//------------------------------------------------------------------------------

	Use:
		TNT1 A 0
		TNT1 A 0 A_GiveInventory("RLMisfireSpamPreventionCooldown",1)
		// Detect that you've activated an armor previously, skipping confirmation check.
		TNT1 A 0 A_JumpIfInventory("RLGenericArmorUse",1,"GenericArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLBlueArmorUse",1,"BlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLRedArmorUse",1,"RedArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLAblativeBlueArmorUse",1,"AblativeBlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLAblativeRedArmorUse",1,"AblativeRedArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLBallisticBlueArmorUse",1,"BallisticBlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLBallisticRedArmorUse",1,"BallisticRedArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLCybernanoBlueArmorUse",1,"CybernanoBlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLCybernanoRedArmorUse",1,"CybernanoRedArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLFireproofBlueArmorUse",1,"FireproofBlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLFireproofRedArmorUse",1,"FireproofRedArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLPowerBlueArmorUse",1,"PowerBlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLPowerRedArmorUse",1,"PowerRedArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberBlueArmorUse",1,"NanofiberBlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberRedArmorUse",1,"NanofiberRedArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberSkinBlueArmorUse",1,"NanofiberSkinBlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberSkinRedArmorUse",1,"NanofiberSkinRedArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLOModBlueArmorUse",1,"OModBlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLOModRedArmorUse",1,"OModRedArmorConfigure")
		
		// Detect that you have a compatible armor for this configuration of armor modpack in your inventory.
		TNT1 A 0 A_JumpIfInventory("RLGenericArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLAblativeBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLAblativeRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLBallisticBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLBallisticRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLCybernanoBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLCybernanoRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLFireproofBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLFireproofRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLPowerBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLPowerRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberSkinBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberSkinRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLOModBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLOModRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLArmorModItemActivate",1,"Deactivate")
		TNT1 A 0 A_PlaySound("hud/generic", 5)
		TNT1 A 0 A_Print("\c-Press \crAltFire\c- to configure this modpack into \chCombat \c-mode.\n\nPress \caDrop Item (DRLA)\c- to drop this armor modpack.\n\nSwitch weapons or activate again to cancel.", 8)
		TNT1 A 0 A_GiveInventory("RLArmorModItemActivate",1)
		Fail
	Confirm:
		TNT1 A 0 A_JumpIfInventory("RLArmorModItemActivate",1,"Deactivate")
		TNT1 A 0 A_PlaySound("hud/generic", 5)
		TNT1 A 0 A_Print("Activate a compatible armor in your inventory\nto convert it into a \cdSecurity\c- variant.\n\n\c-Press \crAltFire\c- to configure this armor modpack into \chCombat \c-mode.\n\nPress \caDrop Item (DRLA)\c- to drop this armor modpack.\n\nSwitch weapons or activate again to cancel.", 8)
		TNT1 A 0 A_GiveInventory("RLArmorModItemActivate",1)
		Fail
	Deactivate:
		TNT1 A 0 A_PlaySound("hud/generic", 5)
		TNT1 A 0 A_Print("Armor modpack activation canceled.", 3)
		TNT1 A 0 A_TakeInventory("RLArmorModItemActivate",1)
		Fail
    SuccessfulActivation:
		TNT1 A 0 A_GiveInventory("RLItemManipulationRemover",1)
		TNT1 A 0 A_TakeInventory("RLArmorModItemActivate",1)
		TNT1 A 0 A_TakeInventory("RLArmorModItemInInventory",1)
		Stop

//------------------------------------------------------------------------------

	GenericArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLGenericArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLGreenArmorPickup",1)
		TNT1 A 0 A_Print("\cjGeneric Armor \c-reconfigured into \cdSecurity Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	BlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLGreenArmorPickup",1)
		TNT1 A 0 A_Print("\chCombat Armor \c-reconfigured into \cdSecurity Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	RedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLGreenArmorPickup",1)
		TNT1 A 0 A_Print("\cgCommando Armor \c-reconfigured into \cdSecurity Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
		
	AblativeBlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLAblativeBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLAblativeGreenArmorPickup",1)
		TNT1 A 0 A_Print("\chAblative Combat Armor \c-reconfigured into \cdAblative Security Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	AblativeRedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLAblativeRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLAblativeGreenArmorPickup",1)
		TNT1 A 0 A_Print("\cgAblative Commando Armor \c-reconfigured into \cdAblative Security Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	BallisticBlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLBallisticBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLBallisticGreenArmorPickup",1)
		TNT1 A 0 A_Print("\chBallistic Combat Armor \c-reconfigured into \cdBallistic Security Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	BallisticRedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLBallisticRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLBallisticGreenArmorPickup",1)
		TNT1 A 0 A_Print("\cgBallistic Commando Armor \c-reconfigured into \cdBallistic Security Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	CybernanoBlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLCybernanoBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLCybernanoGreenArmorPickup",1)
		TNT1 A 0 A_Print("\chCybernano Combat Armor \c-reconfigured into \cdCybernano Security Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	CybernanoRedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLCybernanoRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLCybernanoGreenArmorPickup",1)
		TNT1 A 0 A_Print("\cgCybernano Commando Armor \c-reconfigured into \cdCybernano Security Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	FireproofBlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLFireproofBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLFireproofGreenArmorPickup",1)
		TNT1 A 0 A_Print("\chFireproof Combat Armor \c-reconfigured into \cdFireproof Security Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	FireproofRedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLFireproofRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLFireproofGreenArmorPickup",1)
		TNT1 A 0 A_Print("\cgFireproof Commando Armor \c-reconfigured into \cdFireproof Security Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	PowerBlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLPowerBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLPowerGreenArmorPickup",1)
		TNT1 A 0 A_Print("\chPowered Combat Armor \c-reconfigured into \cdPowered Security Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	PowerRedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLPowerRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLPowerGreenArmorPickup",1)
		TNT1 A 0 A_Print("\cgPowered Commando Armor \c-reconfigured into \cdPowered Security Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	NanofiberBlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLNanofiberBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLNanofiberGreenArmorPickup",1)
		TNT1 A 0 A_Print("\chNanofiber Combat Armor \c-reconfigured into \cdNanofiber Security Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	NanofiberRedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLNanofiberRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLNanofiberGreenArmorPickup",1)
		TNT1 A 0 A_Print("\cgNanofiber Commando Armor \c-reconfigured into \cdNanofiber Security Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	NanofiberSkinBlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLNanofiberSkinBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLNanofiberSkinGreenArmorPickup",1)
		TNT1 A 0 A_Print("\chNanofiber Skin Combat Armor \c-reconfigured into \cdNanofiber Skin Security Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	NanofiberSkinRedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLNanofiberSkinRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLNanofiberSkinGreenArmorPickup",1)
		TNT1 A 0 A_Print("\cgNanofiber Skin Commando Armor \c-reconfigured into \cdNanofiber Skin Security Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
		
	OModBlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLOModBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLOModGreenArmorPickup",1)
		TNT1 A 0 A_Print("\chCombat Armor \c-reconfigured into \cdSecurity Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	OModRedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLOModRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLOModGreenArmorPickup",1)
		TNT1 A 0 A_Print("\cgCommando Armor \c-reconfigured into \cdSecurity Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
		
//==============================================================================
	Duke2Stuff:
		"####" "#" 0 A_SpawnItemEx("RLDuke2ArmorCrate",0,0,0, 0,0,0, 0,SXF_NOCHECKPOSITION)
		Stop
//==============================================================================
//					--	DRPG Compatibility Stuff  --
//==============================================================================
	DRPGInit:
		"####" "#" 0 ACS_NamedExecuteAlways("ItemInit", 0)
		"####" "#" 0 A_Jump (256, "SpawnLoop")
		Goto SpawnLoop
	}
}

ACTOR RLArmorModItemBlue : RLArmorModItem
{
    Inventory.Icon "AMK2I0"
	States
	{
    SpawnLoop:
		AMK2 ABCDDDCB 3 Bright
		Loop
	Use:
		TNT1 A 0
		// Detect that you've activated an armor previously, skipping confirmation check.
		TNT1 A 0 A_JumpIfInventory("RLGenericArmorUse",1,"GenericArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLGreenArmorUse",1,"GreenArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLRedArmorUse",1,"RedArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLAblativeGreenArmorUse",1,"AblativeGreenArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLAblativeRedArmorUse",1,"AblativeRedArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLBallisticGreenArmorUse",1,"BallisticGreenArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLBallisticRedArmorUse",1,"BallisticRedArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLCybernanoGreenArmorUse",1,"CybernanoGreenArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLCybernanoRedArmorUse",1,"CybernanoRedArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLFireproofGreenArmorUse",1,"FireproofGreenArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLFireproofRedArmorUse",1,"FireproofRedArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLPowerGreenArmorUse",1,"PowerGreenArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLPowerRedArmorUse",1,"PowerRedArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberGreenArmorUse",1,"NanofiberGreenArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberRedArmorUse",1,"NanofiberRedArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberSkinGreenArmorUse",1,"NanofiberSkinGreenArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberSkinRedArmorUse",1,"NanofiberSkinRedArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLOModGreenArmorUse",1,"OModGreenArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLOModRedArmorUse",1,"OModRedArmorConfigure")
		
		// Detect that you have a compatible armor for this configuration of armor modpack in your inventory.
		TNT1 A 0 A_JumpIfInventory("RLGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLAblativeGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLAblativeRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLBallisticGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLBallisticRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLCybernanoGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLCybernanoRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLFireproofGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLFireproofRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLPowerGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLPowerRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberSkinGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberSkinRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLOModGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLOModRedArmorPickup",1,"Confirm")
		TNT1 A 0 A_Print("\c-Press \crAltFire\c-e to configure this modpack into \cgCommando \c-mode.\nPress \caDrop Item (DRLA)\c- to drop this armor modpack.\n\nSwitch weapons or activate again to cancel.", 8)
		TNT1 A 0 A_JumpIfInventory("RLArmorModItemActivate",1,"Deactivate")
		TNT1 A 0 A_GiveInventory("RLArmorModItemActivate",1)
		Fail
	Confirm:
		TNT1 A 0 A_JumpIfInventory("RLArmorModItemActivate",1,"Deactivate")
		TNT1 A 0 A_Print("Activate a compatible armor in your inventory\nto convert it into a \chCombat\c- variant.\n\n\c-Press \crAltFire\c- to configure this armor modpack into \cgCommando \c-mode.\n\nPress \caDrop Item (DRLA)\c- to drop this armor modpack.\n\nSwitch weapons or activate again to cancel.", 8)
		TNT1 A 0 A_GiveInventory("RLArmorModItemActivate",1)
		Fail

//------------------------------------------------------------------------------

	GenericArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLGenericArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cjGeneric Armor \c-reconfigured into \chCombat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	GreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cdSecurity Armor \c-reconfigured into \chCombat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	RedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cgCommando Armor \c-reconfigured into \chCombat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
		
	AblativeGreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLAblativeGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLAblativeBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cdAblative Security Armor \c-reconfigured into \chAblative Combat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	AblativeRedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLAblativeRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLAblativeBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cgAblative Commando Armor \c-reconfigured into \chAblative Combat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	BallisticGreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLBallisticGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLBallisticBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cdBallistic Security Armor \c-reconfigured into \chBallistic Combat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	BallisticRedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLBallisticRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLBallisticBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cgBallistic Commando Armor \c-reconfigured into \chBallistic Combat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	CybernanoGreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLCybernanoGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLCybernanoBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cdCybernano Security Armor \c-reconfigured into \chCybernano Combat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	CybernanoRedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLCybernanoRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLCybernanoBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cgCybernano Commando Armor \c-reconfigured into \chCybernano Combat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	FireproofGreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLFireproofGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLFireproofBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cdFireproof Security Armor \c-reconfigured into \chFireproof Combat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	FireproofRedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLFireproofRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLFireproofBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cgFireproof Commando Armor \c-reconfigured into \chFireproof Combat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	PowerGreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLPowerGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLPowerBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cdPowered Security Armor \c-reconfigured into \chPowered Combat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	PowerRedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLPowerRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLPowerBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cgPowered Commando Armor \c-reconfigured into \chPowered Combat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	NanofiberGreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLNanofiberGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLNanofiberBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cdNanofiber Security Armor \c-reconfigured into \chNanofiber Combat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	NanofiberRedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLNanofiberRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLNanofiberBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cgNanofiber Commando Armor \c-reconfigured into \chNanofiber Combat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	NanofiberSkinGreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLNanofiberSkinGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLNanofiberSkinBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cdNanofiber Skin Security Armor \c-reconfigured into \chNanofiber Skin Combat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	NanofiberSkinRedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLNanofiberSkinRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLNanofiberSkinBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cgNanofiber Skin Commando Armor \c-reconfigured into \chNanofiber Skin Combat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
		
	OModGreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLOModGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLOModBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cdSecurity Armor \c-reconfigured into \chCombat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	OModRedArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLOModRedArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLOModBlueArmorPickup",1)
		TNT1 A 0 A_Print("\cgCommando Armor \c-reconfigured into \chCombat Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	}
}


ACTOR RLArmorModItemRed : RLArmorModItem
{
    Inventory.Icon "AMK3I0"
	States
	{
    SpawnLoop:
		AMK3 ABCDDDCB 3 Bright
		Loop
	Use:
		TNT1 A 0
		// Detect that you've activated an armor previously, skipping confirmation check.
		TNT1 A 0 A_JumpIfInventory("RLGenericArmorUse",1,"GenericArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLBlueArmorUse",1,"BlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLGreenArmorUse",1,"GreenArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLAblativeBlueArmorUse",1,"AblativeBlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLAblativeGreenArmorUse",1,"AblativeGreenArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLBallisticBlueArmorUse",1,"BallisticBlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLBallisticGreenArmorUse",1,"BallisticGreenArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLCybernanoBlueArmorUse",1,"CybernanoBlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLCybernanoGreenArmorUse",1,"CybernanoGreenArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLFireproofBlueArmorUse",1,"FireproofBlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLFireproofGreenArmorUse",1,"FireproofGreenArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLPowerBlueArmorUse",1,"PowerBlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLPowerGreenArmorUse",1,"PowerGreenArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberBlueArmorUse",1,"NanofiberBlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberGreenArmorUse",1,"NanofiberGreenArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberSkinBlueArmorUse",1,"NanofiberSkinBlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberSkinGreenArmorUse",1,"NanofiberSkinGreenArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLOModBlueArmorUse",1,"OModBlueArmorConfigure")
		TNT1 A 0 A_JumpIfInventory("RLOModGreenArmorUse",1,"OModGreenArmorConfigure")
		
		// Detect that you have a compatible armor for this configuration of armor modpack in your inventory.
		TNT1 A 0 A_JumpIfInventory("RLGenericArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLAblativeBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLAblativeGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLBallisticBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLBallisticGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLCybernanoBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLCybernanoGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLFireproofBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLFireproofGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLPowerBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLPowerGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberSkinBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLNanofiberSkinGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLOModBlueArmorPickup",1,"Confirm")
		TNT1 A 0 A_JumpIfInventory("RLOModGreenArmorPickup",1,"Confirm")
		TNT1 A 0 A_Print("\c-Press \crAltFire\c- to configure this modpack into \cdSecurity \c-mode.\n\nPress \caDrop Item (DRLA)\c- to drop this armor modpack.\n\nSwitch weapons or activate again to cancel.", 8)
		TNT1 A 0 A_JumpIfInventory("RLArmorModItemActivate",1,"Deactivate")
		TNT1 A 0 A_GiveInventory("RLArmorModItemActivate",1)
		Fail
	Confirm:
		TNT1 A 0 A_JumpIfInventory("RLArmorModItemActivate",1,"Deactivate")
		TNT1 A 0 A_Print("Activate a compatible armor in your inventory\nto convert it into a \cgCommando\c- variant.\n\n\c-Press \crAltFire\c- to configure this armor modpack into \cdSecurity \c-mode.\n\nPress \caDrop Item (DRLA)\c- to drop this armor modpack.\n\nSwitch weapons or activate again to cancel.", 8)
		TNT1 A 0 A_GiveInventory("RLArmorModItemActivate",1)
		Fail

//------------------------------------------------------------------------------

	GenericArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLGenericArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLRedArmorPickup",1)
		TNT1 A 0 A_Print("\cjGeneric Armor \c-reconfigured into \cgCommando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	BlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLRedArmorPickup",1)
		TNT1 A 0 A_Print("\chCombat Armor \c-reconfigured into \cgCommando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	GreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLRedArmorPickup",1)
		TNT1 A 0 A_Print("\cdSecurity Armor \c-reconfigured into \cgCommando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
		
	AblativeBlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLAblativeBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLAblativeRedArmorPickup",1)
		TNT1 A 0 A_Print("\chAblative Combat Armor \c-reconfigured into \cgAblative Commando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	AblativeGreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLAblativeGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLAblativeRedArmorPickup",1)
		TNT1 A 0 A_Print("\cdAblative Security Armor \c-reconfigured into \cgAblative Commando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	BallisticBlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLBallisticBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLBallisticRedArmorPickup",1)
		TNT1 A 0 A_Print("\chBallistic Combat Armor \c-reconfigured into \cgBallistic Commando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	BallisticGreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLBallisticGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLBallisticRedArmorPickup",1)
		TNT1 A 0 A_Print("\cdBallistic Security Armor \c-reconfigured into \cgBallistic Commando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	CybernanoBlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLCybernanoBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLCybernanoRedArmorPickup",1)
		TNT1 A 0 A_Print("\chCybernano Combat Armor \c-reconfigured into \cgCybernano Commando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	CybernanoGreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLCybernanoGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLCybernanoRedArmorPickup",1)
		TNT1 A 0 A_Print("\cdCybernano Security Armor \c-reconfigured into \cgCybernano Commando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	FireproofBlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLFireproofBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLFireproofRedArmorPickup",1)
		TNT1 A 0 A_Print("\chFireproof Combat Armor \c-reconfigured into \cgFireproof Commando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	FireproofGreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLFireproofGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLFireproofRedArmorPickup",1)
		TNT1 A 0 A_Print("\cdFireproof Security Armor \c-reconfigured into \cgFireproof Commando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	PowerBlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLPowerBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLPowerRedArmorPickup",1)
		TNT1 A 0 A_Print("\chPowered Combat Armor \c-reconfigured into \cgPowered Commando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	PowerGreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLPowerGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLPowerRedArmorPickup",1)
		TNT1 A 0 A_Print("\cdPowered Security Armor \c-reconfigured into \cgPowered Commando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	NanofiberBlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLNanofiberBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLNanofiberRedArmorPickup",1)
		TNT1 A 0 A_Print("\chNanofiber Combat Armor \c-reconfigured into \cgNanofiber Commando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	NanofiberGreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLNanofiberGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLNanofiberRedArmorPickup",1)
		TNT1 A 0 A_Print("\cdNanofiber Security Armor \c-reconfigured into \cgNanofiber Commando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	NanofiberSkinBlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLNanofiberSkinBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLNanofiberSkinRedArmorPickup",1)
		TNT1 A 0 A_Print("\chNanofiber Skin Combat Armor \c-reconfigured into \cgNanofiber Skin Commando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	NanofiberSkinGreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLNanofiberSkinGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLNanofiberSkinRedArmorPickup",1)
		TNT1 A 0 A_Print("\cdNanofiber Skin Security Armor \c-reconfigured into \cgNanofiber Skin Commando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
		
	OModBlueArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLOModBlueArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLOModRedArmorPickup",1)
		TNT1 A 0 A_Print("\chCombat Armor \c-reconfigured into \cgCommando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	OModGreenArmorConfigure:
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
		TNT1 A 0 A_TakeInventory("RLOModGreenArmorPickup",1)
		TNT1 A 0 A_GiveInventory("RLOModRedArmorPickup",1)
		TNT1 A 0 A_Print("\cdSecurity Armor \c-reconfigured into \cgCommando Armor.")
		TNT1 A 0 A_Jump (256, "SuccessfulActivation")
		Goto SuccessfulActivation
	}
}

ACTOR DroppedRLArmorModItem
{
	PROJECTILE
	-NOGRAVITY
	Damage 0
	Radius 16
	Height 8
	Speed 9
	DeathSound "weapons/gundrop"
	States
	{
	Spawn:
		AMK1 ABCDDDCB 3 Bright
		Loop
	Death:
		TNT1 A 0
		TNT1 A 1 A_SpawnItem("RLArmorModItem",0,0,0,0)
		Stop
	}
}

ACTOR DroppedRLArmorModItemBlue : DroppedRLArmorModItem
{
	States
	{
	Spawn:
		AMK2 ABCDDDCB 3 Bright
		Loop
	Death:
		TNT1 A 0
		TNT1 A 1 A_SpawnItem("RLArmorModItemBlue",0,0,0,0)
		Stop
	}
}

ACTOR DroppedRLArmorModItemRed : DroppedRLArmorModItem
{
	States
	{
	Spawn:
		AMK3 ABCDDDCB 3 Bright
		Loop
	Death:
		TNT1 A 0
		TNT1 A 1 A_SpawnItem("RLArmorModItemRed",0,0,0,0)
		Stop
	}
}
