
//==============================================================================
//		STARTING ITEM SPAWNERS
//==============================================================================

ACTOR RLSpecialStarter : RLCustomFunction
{
  States
  {
  Pickup:
    TNT1 A 0 
	TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), 2) // If Doorpeg is active, skip the gamemode check.
	TNT1 A 0 A_JumpIf(CallACS("DRLA_specialstarts") > 0, "FunTiems") // If a special gamemode is active, go find out which one.
    TNT1 A 0 A_GiveInventory("RLAllAmmoStarter", 1)
    TNT1 A 0 A_GiveInventory("RLHUDStyleRestorer", 1) // This gives you the necessary tokens to preserve your hud style settings
	TNT1 A 0 A_JumpIf(CallACS("DRLA_noperk"), "WeaponStartCheck")
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk", 1, "TechnicianModpackChoose")
  WeaponStartCheck:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") >= 1, "CustomWeaponChoice") // If a specific starting weapon is selected, go get it.

	// Give the standard class weaponry
	TNT1 A 0 A_JumpIf(CallACS("DRLA_noperk"), "RemovePerks")
    TNT1 A 0 A_JumpIfInventory("RLAmmochainPerk", 1, "MarineStandardLoadout")
    TNT1 A 0 A_JumpIfInventory("RLSharpshooterPerk", 1, "ScoutStandardLoadout")
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk", 1, "TechnicianStandardLoadout")
    TNT1 A 0 A_JumpIfInventory("RLShellshockPerk", 1, "RenegadeStandardLoadout")
    TNT1 A 0 A_JumpIfInventory("RLFireangelPerk", 1, "DemolitionistStandardLoadout")
    TNT1 A 0 A_JumpIfInventory("RLBerserkerPerk", 1, "CommandoStandardLoadout")
	Goto ScoutStandardLoadout
//------------------------------------------------------------------------------
// Random basic modpack for Technician
  TechnicianModpackChoose:
    TNT1 A 0 A_Jump(256, 1,2,3,4)
    TNT1 A 0 A_GiveInventory("RLPowerModItem", 1)
	Goto WeaponStartCheck
    TNT1 A 0 A_GiveInventory("RLBulkModItem", 1)
	Goto WeaponStartCheck
    TNT1 A 0 A_GiveInventory("RLAgilityModItem", 1)
	Goto WeaponStartCheck
    TNT1 A 0 A_GiveInventory("RLTechnicalModItem", 1)
	Goto WeaponStartCheck
//------------------------------------------------------------------------------
// Standard Marine starting weapon, the Chaingun
  MarineStandardLoadout:
    TNT1 A 0 A_GiveInventory("Clip", 40)
    TNT1 A 0 A_GiveInventory("Shell", 5)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLChaingun", 1)
    TNT1 A 0 A_SelectWeapon("RLChaingun")
	Goto ArmorStartCheck
//------------------------------------------------------------------------------
// Standard Scout starting weapon, the Pistol
// The state is also used for the pistol start cvar.
  ScoutStandardLoadout:
    TNT1 A 0 A_GiveInventory("Clip", 60)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLPistol", 1)
    TNT1 A 0 A_SelectWeapon("RLPistol")
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk", 1, "TechnicianModpackChoose")
	Goto ArmorStartCheck
//------------------------------------------------------------------------------
// Standard Technician starting items, a random basic assembly and a random basic modpack
  TechnicianStandardLoadout:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_specialstarts") >= 1, "TechnicianModpackChoose")
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_Jump(256, "TechnicianWeaponChoose1","TechnicianWeaponChoose2","TechnicianWeaponChoose3","TechnicianWeaponChoose4","TechnicianWeaponChoose5","TechnicianWeaponChoose6","TechnicianWeaponChoose7","TechnicianWeaponChoose8","TechnicianWeaponChoose9","TechnicianWeaponChoose10","TechnicianWeaponChoose11","TechnicianWeaponChoose12","TechnicianWeaponChoose13")
  TechnicianWeaponChoose1:
    TNT1 A 0 A_GiveInventory("Clip", 40)
    TNT1 A 0 A_GiveInventory("Shell", 5)
    TNT1 A 0 A_GiveInventory("RLSilencedPistol", 1)
    TNT1 A 0 A_GiveInventory("RLSilencedPistolAssemblyLearntToken", 1)
    TNT1 A 0 A_SelectWeapon("RLSilencedPistol")
    Goto ArmorStartCheck
  TechnicianWeaponChoose2:
    TNT1 A 0 A_GiveInventory("Clip", 60)
    TNT1 A 0 A_GiveInventory("RLStealthRifle", 1)
    TNT1 A 0 A_GiveInventory("RLSilencedPistolAssemblyLearntToken", 1)
    TNT1 A 0 A_SelectWeapon("RLStealthRifle")
    Goto ArmorStartCheck
  TechnicianWeaponChoose3:
    TNT1 A 0 A_GiveInventory("Shell", 15)
    TNT1 A 0 A_GiveInventory("RLShredderPistol", 1)
    TNT1 A 0 A_GiveInventory("RLShredderPistolAssemblyLearntToken", 1)
    TNT1 A 0 A_SelectWeapon("RLShredderPistol")
    Goto ArmorStartCheck
  TechnicianWeaponChoose4:
    TNT1 A 0 A_GiveInventory("Clip", 40)
    TNT1 A 0 A_GiveInventory("Shell", 5)
    TNT1 A 0 A_GiveInventory("RLSpeedloaderPistol", 1)
    TNT1 A 0 A_GiveInventory("RLSpeedloaderPistolAssemblyLearntToken", 1)
    TNT1 A 0 A_SelectWeapon("RLSpeedloaderPistol")
    Goto ArmorStartCheck
  TechnicianWeaponChoose5:
    TNT1 A 0 A_GiveInventory("Shell", 15)
    TNT1 A 0 A_GiveInventory("RLElephantGun", 1)
    TNT1 A 0 A_GiveInventory("RLElephantGunAssemblyLearntToken", 1)
    TNT1 A 0 A_SelectWeapon("RLElephantGun")
    Goto ArmorStartCheck
  TechnicianWeaponChoose6:
    TNT1 A 0 A_GiveInventory("Clip", 60)
    TNT1 A 0 A_GiveInventory("RLGatlingGun", 1)
    TNT1 A 0 A_GiveInventory("RLGatlingGunAssemblyLearntToken", 1)
    TNT1 A 0 A_SelectWeapon("RLGatlingGun")
    Goto ArmorStartCheck
  TechnicianWeaponChoose7:
    TNT1 A 0 A_GiveInventory("Shell", 15)
    TNT1 A 0 A_GiveInventory("RLTacticalShotgun", 1)
    TNT1 A 0 A_GiveInventory("RLTacticalShotgunAssemblyLearntToken", 1)
    TNT1 A 0 A_SelectWeapon("RLTacticalShotgun")
    Goto ArmorStartCheck
  TechnicianWeaponChoose8:
    TNT1 A 0 A_GiveInventory("Shell", 15)
    TNT1 A 0 A_GiveInventory("RLHeavyShotgun", 1)
    TNT1 A 0 A_GiveInventory("RLHeavyShotgunAssemblyLearntToken", 1)
    TNT1 A 0 A_SelectWeapon("RLHeavyShotgun")
    Goto ArmorStartCheck
  TechnicianWeaponChoose9:
    TNT1 A 0 A_GiveInventory("Shell", 15)
    TNT1 A 0 A_GiveInventory("RLHeavyCombatShotgun", 1)
    TNT1 A 0 A_GiveInventory("RLHeavyShotgunAssemblyLearntToken", 1)
    TNT1 A 0 A_SelectWeapon("RLHeavyCombatShotgun")
    Goto ArmorStartCheck
  TechnicianWeaponChoose10:
    TNT1 A 0 A_GiveInventory("RLHeavyDoubleShotgun", 1)
    TNT1 A 0 A_GiveInventory("RLHeavyShotgunAssemblyLearntToken", 1)
    TNT1 A 0 A_GiveInventory("Shell", 15)
    TNT1 A 0 A_SelectWeapon("RLHeavyDoubleShotgun")
    Goto ArmorStartCheck
  TechnicianWeaponChoose11:
    TNT1 A 0 A_GiveInventory("Clip", 40)
    TNT1 A 0 A_GiveInventory("Shell", 5)
    TNT1 A 0 A_GiveInventory("RLHighPowerPistol", 1)
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1)
    TNT1 A 0 A_SelectWeapon("RLHighPowerPistol")
    Goto ArmorStartCheck
  TechnicianWeaponChoose12:
    TNT1 A 0 A_GiveInventory("Clip", 60)
    TNT1 A 0 A_GiveInventory("RLHighPowerChaingun", 1)
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1)
    TNT1 A 0 A_SelectWeapon("RLHighPowerChaingun")
    Goto ArmorStartCheck
  TechnicianWeaponChoose13:
    TNT1 A 0 A_GiveInventory("Clip", 60)
    TNT1 A 0 A_GiveInventory("RLHighPowerBattleRifle", 1)
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1)
    TNT1 A 0 A_SelectWeapon("RLHighPowerBattleRifle")
    Goto ArmorStartCheck
/*  TechnicianWeaponChoose14: // Disabled
    TNT1 A 0 A_GiveInventory("RocketAmmo", 10)
    TNT1 A 0 A_GiveInventory("RLShrapnelCannon", 1)
    TNT1 A 0 A_GiveInventory("RLShrapnelCannonAssemblyLearntToken", 1)
    TNT1 A 0 A_SelectWeapon("RLShrapnelCannon")
    Goto ArmorStartCheck*/
//------------------------------------------------------------------------------
// Standard Renegade starting weapon, the Shotgun
  RenegadeStandardLoadout:
    TNT1 A 0 A_GiveInventory("Shell", 15)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLShotgun", 1)
    TNT1 A 0 A_SelectWeapon("RLShotgun")
	Goto ArmorStartCheck
//------------------------------------------------------------------------------
// Standard Demolitionist starting weapon, the Rocket Launcher
  DemolitionistStandardLoadout:
    TNT1 A 0 A_GiveInventory("RocketAmmo", 10)
    TNT1 A 0 A_GiveInventory("Clip", 20)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLRocketLauncher", 1)
    TNT1 A 0 A_SelectWeapon("RLRocketLauncher")
	Goto ArmorStartCheck
//------------------------------------------------------------------------------
// Standard Commando starting weapon, the Combat Knife
  CommandoStandardLoadout:
    TNT1 A 0 
    TNT1 A 0 A_GiveInventory("Clip", 40)
    TNT1 A 0 A_GiveInventory("Shell", 5)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLPistol", 1)
    TNT1 A 0 A_SelectWeapon("RLPistol")
//    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
//    TNT1 A 0 A_GiveInventory("RLCombatKnife", 1)
//    TNT1 A 0 A_SelectWeapon("RLCombatKnife")
	Goto ArmorStartCheck

//==============================================================================	
  CustomWeaponChoice:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 1, "CustomChainsaw")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 2, "CustomCombatKnife")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 3, "CustomPistol")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 4, "CustomShotgun")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 5, "CustomCombatShotgun")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 6, "CustomDoubleShotgun")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 7, "CustomChaingun")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 8, "CustomBattleRifle")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 9, "CustomRocketLauncher")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 10, "CustomGrenades")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 11, "CustomPlasmaRifle")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 12, "CustomBFG9000")
	
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 13, "CustomRandomExotic")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 14, "CustomClassExotic")
/*	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 15, "CustomRandomSuperior")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 16, "CustomClassSuperior")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 17, "CustomRandomUnique")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 18, "CustomClassUnique")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 19, "CustomRandomDemonic")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 20, "CustomClassDemonic")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 21, "CustomRandomLegendary")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_StartWeapon") == 22, "CustomClassLegendary")*/
	Stop
//------------------------------------------------------------------------------
  CustomChainsaw:
    TNT1 A 0 A_GiveInventory("Clip", 50)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLChainsaw", 1)
    TNT1 A 0 A_SelectWeapon("RLChainsaw")
	Goto ArmorStartCheck
  CustomCombatKnife:
    TNT1 A 0
	Goto CustomChainsaw
/*    TNT1 A 0 A_GiveInventory("Clip", 50)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLCombatKnife", 1)
    TNT1 A 0 A_SelectWeapon("RLCombatKnife")
	Goto ArmorStartCheck*/
  CustomPistol:
    TNT1 A 0 A_GiveInventory("Clip", 50)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLPistol", 1)
    TNT1 A 0 A_SelectWeapon("RLPistol")
	Goto ArmorStartCheck
  CustomShotgun:
    TNT1 A 0 A_GiveInventory("Shell", 20)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLShotgun", 1)
    TNT1 A 0 A_SelectWeapon("RLShotgun")
	Goto ArmorStartCheck
  CustomCombatShotgun:
    TNT1 A 0 A_GiveInventory("Shell", 20)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLCombatShotgun", 1)
    TNT1 A 0 A_SelectWeapon("RLCombatShotgun")
	Goto ArmorStartCheck
  CustomDoubleShotgun:
    TNT1 A 0 A_GiveInventory("Shell", 20)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLDoubleShotgun", 1)
    TNT1 A 0 A_SelectWeapon("RLDoubleShotgun")
	Goto ArmorStartCheck
  CustomChaingun:
    TNT1 A 0 A_GiveInventory("Clip", 50)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLChaingun", 1)
    TNT1 A 0 A_SelectWeapon("RLChaingun")
	Goto ArmorStartCheck
  CustomBattleRifle:
    TNT1 A 0 A_GiveInventory("Clip", 50)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLBattleRifle", 1)
    TNT1 A 0 A_SelectWeapon("RLBattleRifle")
	Goto ArmorStartCheck
  CustomRocketLauncher:
    TNT1 A 0 A_GiveInventory("RocketAmmo", 10)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLRocketLauncher", 1)
    TNT1 A 0 A_SelectWeapon("RLRocketLauncher")
	Goto ArmorStartCheck
  CustomGrenades:
    TNT1 A 0
	Goto CustomRocketLauncher
/*    TNT1 A 0 A_GiveInventory("RocketAmmo", 10)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLGrenades", 1)
    TNT1 A 0 A_SelectWeapon("RLGrenades")
	Goto ArmorStartCheck*/
  CustomPlasmaRifle:
    TNT1 A 0 A_GiveInventory("Cell", 100)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLPlasmaRifle", 1)
    TNT1 A 0 A_SelectWeapon("RLPlasmaRifle")
	Goto ArmorStartCheck
  CustomBFG9000:
    TNT1 A 0 A_GiveInventory("Cell", 100)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLBFG9000", 1)
    TNT1 A 0 A_SelectWeapon("RLBFG9000")
	Goto ArmorStartCheck
//------------------------------------------------------------------------------
  CustomRandomExotic:
    TNT1 A 0 A_Jump(256,	"CustomBlaster","CustomCombatPistol","CustomMarksmanPistol","CustomHandcannon",
							"CustomSuperShotgun","CustomAssaultShotgun","CustomPlasmaShotgun","CustomTristarBlaster",
							"CustomMinigun","CustomMissileLauncher","CustomNapalmLauncher","CustomLaserRifle",
							"CustomNuclearPlasmaPistol","CustomNuclearPlasmaRifle","CustomNuclearBFG9000",
							"CustomCombatTranslocator","CustomUzi")
	Goto CustomBlaster
	
  CustomClassExotic:
    TNT1 A 0 A_JumpIfInventory("RLAmmochainPerk", 1, "MarineExoticLoadout")
    TNT1 A 0 A_JumpIfInventory("RLSharpshooterPerk", 1, "ScoutExoticLoadout")
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk", 1, "CustomRandomExotic")
    TNT1 A 0 A_JumpIfInventory("RLShellshockPerk", 1, "RenegadeExoticLoadout")
    TNT1 A 0 A_JumpIfInventory("RLFireangelPerk", 1, "DemolitionistExoticLoadout")
    TNT1 A 0 A_JumpIfInventory("RLBerserkerPerk", 1, "CommandoExoticLoadout")
	Goto CustomRandomExotic
	
  MarineExoticLoadout:
    TNT1 A 0 A_Jump(256,	"CustomMinigun","CustomLaserRifle","CustomNuclearPlasmaRifle","CustomUzi")
	Goto CustomUzi
  ScoutExoticLoadout:
    TNT1 A 0 A_Jump(256,	"CustomBlaster","CustomCombatPistol","CustomMarksmanPistol","CustomHandcannon",
							"CustomNuclearPlasmaPistol","CustomUzi")
	Goto CustomCombatPistol
  RenegadeExoticLoadout:
    TNT1 A 0 A_Jump(256,	"CustomSuperShotgun","CustomAssaultShotgun","CustomPlasmaShotgun")
	Goto CustomSuperShotgun
  DemolitionistExoticLoadout:
    TNT1 A 0 A_Jump(256,	"CustomPlasmaShotgun","CustomTristarBlaster","CustomMissileLauncher","CustomNapalmLauncher",
							"CustomNuclearBFG9000","CustomCombatTranslocator")
	Goto CustomMissileLauncher
  CommandoExoticLoadout:
    TNT1 A 0 A_Jump(256,	"CustomCombatTranslocator")
	Goto CustomCombatTranslocator
	
  CustomBlaster:
    TNT1 A 0 A_GiveInventory("Clip", 50)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLBlaster", 1)
    TNT1 A 0 A_SelectWeapon("RLBlaster")
	Goto ArmorStartCheck
  CustomCombatPistol:
    TNT1 A 0 A_GiveInventory("Clip", 50)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLCombatPistol", 1)
    TNT1 A 0 A_SelectWeapon("RLCombatPistol")
	Goto ArmorStartCheck
  CustomMarksmanPistol:
    TNT1 A 0 A_GiveInventory("Clip", 50)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLMarksmanPistol", 1)
    TNT1 A 0 A_SelectWeapon("RLMarksmanPistol")
	Goto ArmorStartCheck
  CustomHandcannon:
    TNT1 A 0 A_GiveInventory("Clip", 50)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLHandcannon", 1)
    TNT1 A 0 A_SelectWeapon("RLHandcannon")
	Goto ArmorStartCheck
  CustomSuperShotgun:
    TNT1 A 0 A_GiveInventory("Shell", 20)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLSuperShotgun", 1)
    TNT1 A 0 A_SelectWeapon("RLSuperShotgun")
	Goto ArmorStartCheck
  CustomAssaultShotgun:
    TNT1 A 0 A_GiveInventory("Shell", 20)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLAssaultShotgun", 1)
    TNT1 A 0 A_SelectWeapon("RLAssaultShotgun")
	Goto ArmorStartCheck
  CustomPlasmaShotgun:
    TNT1 A 0 A_GiveInventory("Cell", 100)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLPlasmaShotgun", 1)
    TNT1 A 0 A_SelectWeapon("RLPlasmaShotgun")
	Goto ArmorStartCheck
  CustomTristarBlaster:
    TNT1 A 0 A_GiveInventory("Cell", 100)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLTristarBlaster", 1)
    TNT1 A 0 A_SelectWeapon("RLTristarBlaster")
	Goto ArmorStartCheck
  CustomMinigun:
    TNT1 A 0 A_GiveInventory("Clip", 50)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLMinigun", 1)
    TNT1 A 0 A_SelectWeapon("RLMinigun")
	Goto ArmorStartCheck
  CustomMissileLauncher:
    TNT1 A 0 A_GiveInventory("RocketAmmo", 10)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLMissileLauncher", 1)
    TNT1 A 0 A_SelectWeapon("RLMissileLauncher")
	Goto ArmorStartCheck
  CustomNapalmLauncher:
    TNT1 A 0 A_GiveInventory("RocketAmmo", 10)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLNapalmLauncher", 1)
    TNT1 A 0 A_SelectWeapon("RLNapalmLauncher")
	Goto ArmorStartCheck
  CustomLaserRifle:
    TNT1 A 0 A_GiveInventory("Cell", 100)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLLaserRifle", 1)
    TNT1 A 0 A_SelectWeapon("RLLaserRifle")
	Goto ArmorStartCheck
  CustomNuclearPlasmaPistol:
    TNT1 A 0 A_GiveInventory("Clip", 50)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaPistol", 1)
    TNT1 A 0 A_SelectWeapon("RLNuclearPlasmaPistol")
	Goto ArmorStartCheck
  CustomNuclearPlasmaRifle:
    TNT1 A 0 A_GiveInventory("Clip", 50)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaRifle", 1)
    TNT1 A 0 A_SelectWeapon("RLNuclearPlasmaRifle")
	Goto ArmorStartCheck
  CustomNuclearBFG9000:
    TNT1 A 0 A_GiveInventory("Clip", 50)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLNuclearBFG9000", 1)
    TNT1 A 0 A_SelectWeapon("RLNuclearBFG9000")
	Goto ArmorStartCheck
  CustomCombatTranslocator:
    TNT1 A 0 A_GiveInventory("Clip", 50)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLCombatTranslocator", 1)
    TNT1 A 0 A_SelectWeapon("RLCombatTranslocator")
	Goto ArmorStartCheck
  CustomUzi:
    TNT1 A 0 A_GiveInventory("Clip", 50)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLUzi", 1)
    TNT1 A 0 A_SelectWeapon("RLUzi")
	Goto ArmorStartCheck
//------------------------------------------------------------------------------
  ArmorStartCheck:
    TNT1 A 0
	Goto BootsStartCheck
//------------------------------------------------------------------------------
  BootsStartCheck:
    TNT1 A 0
	Goto HelmetStartCheck
//------------------------------------------------------------------------------
  HelmetStartCheck:
    TNT1 A 0
	Goto AccessoryStartCheck
//------------------------------------------------------------------------------
  AccessoryStartCheck:
    TNT1 A 0
	Goto MiscStartCheck
//------------------------------------------------------------------------------
  MiscStartCheck:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(CallACS("DRLA_infinitesidearm"), 1)
	Goto PhaseDeviceCheck
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoPistol", 1)
	Goto PhaseDeviceCheck
  PhaseDeviceCheck:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_coopphasedevice"), 1)
	Goto SetDangerLevel
	TNT1 A 0 A_JumpIf(CallACS("DRLA_PlayerCount") >= 2, 1)
	Goto SetDangerLevel
    TNT1 A 0 A_GiveInventory("RLExperimentalPhaseDevice", 1)
    TNT1 A 0 A_GiveInventory("RLCoopPhaseRestriction", 1)
	Goto SetDangerLevel
  SetDangerLevel:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_MonsterpackCheck"), 1) // check for the monsterpack so unknown scripts don't get logged
	Goto AllDoneHere
	TNT1 A 0 A_JumpIf(IsPointerEqual(AAPTR_DEFAULT, AAPTR_PLAYER1) == TRUE, 1)
	Goto AllDoneHere
	TNT1 A 0 A_JumpIf(CallACS("DRLA_startdangerlevel") <= 0, "AllDoneHere")
    TNT1 A 0 A_GiveInventory("RLDangerLevel", CallACS("DRLA_startdangerlevel"))
	Goto AllDoneHere
	
	
//==============================================================================
// The special gamemodes take control from here on.
  FunTiems:
// Take unwanted ammotypes
    TNT1 A 0 A_TakeInventory("Clip", 400)
    TNT1 A 0 A_TakeInventory("Shell", 100)
    TNT1 A 0 A_TakeInventory("RocketAmmo", 100)
    TNT1 A 0 A_TakeInventory("Cell", 600)
	TNT1 A 0 A_JumpIf(CallACS("DRLA_specialstarts") == 1, "KeenStart")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_specialstarts") == 2, "Duke2Start")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_specialstarts") == 3, "MarathonStart")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_specialstarts") == 4, "OverkillStart")
	Stop
  KeenStart:
    TNT1 A 0 A_TakeInventory("RLFist", 1)
//    TNT1 A 0 A_GiveInventory("RLSpecialHUD", 1)
    TNT1 A 0 A_GiveInventory("RLGoodbyeGalaxyMode", 1)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLNeuralStunner", 1)
    TNT1 A 0 A_GiveInventory("Cell", 15)
    TNT1 A 0 A_SelectWeapon("RLNeuralStunner")
    Goto AllDoneHere
  Duke2Start:
    TNT1 A 0 A_TakeInventory("RLFist", 1)
    TNT1 A 0 A_GiveInventory("RLSpecialHUD", 1)
    TNT1 A 0 A_GiveInventory("RLImBackMode", 1)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLDuke2Rifle", 1)
    TNT1 A 0 A_SelectWeapon("RLDuke2Rifle")
    Goto AllDoneHere
  MarathonStart:
    TNT1 A 0 A_GiveInventory("RLAllAmmoStarter", 1)
//    TNT1 A 0 A_GiveInventory("RLSpecialHUD", 1) // Re add this when a specific Marathon-style HUD is made
    TNT1 A 0 A_GiveInventory("RLAllAmmoStarter", 1)
    TNT1 A 0 A_GiveInventory("RLHUDStyleRestorer", 1) // This gives you the necessary tokens to preserve your hud style settings
    TNT1 A 0 A_GiveInventory("RLBackPhforMoreMode", 1)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 2)
    TNT1 A 0 A_GiveInventory("RLMarathonAssaultRifle", 1)
    TNT1 A 0 A_GiveInventory("RLMarathonShotguns", 1)
    TNT1 A 0 A_GiveInventory("RLMarathonShotgunsDemonArtifacts", 1)
    TNT1 A 0 A_GiveInventory("Clip", 104)
    TNT1 A 0 A_GiveInventory("Shell", 16)
    TNT1 A 0 A_JumpIfInventory("RLShellshockPerk", 1, 2)
    TNT1 A 0 A_SelectWeapon("RLMarathonAssaultRifle")
    Goto AllDoneHere
    TNT1 A 0 A_SelectWeapon("RLMarathonShotguns")
    Goto AllDoneHere
  OverkillStart:
    TNT1 A 0 A_GiveInventory("RLAllAmmoStarter", 1)
//    TNT1 A 0 A_GiveInventory("RLSpecialHUD", 1) // This probably won't get a special HUD
    TNT1 A 0 A_GiveInventory("RLAllAmmoStarter", 1)
    TNT1 A 0 A_GiveInventory("RLHUDStyleRestorer", 1) // This gives you the necessary tokens to preserve your hud style settings
    TNT1 A 0 A_GiveInventory("RLOverkillMode", 1)
    TNT1 A 0 A_GiveInventory("RLWeaponLimit", 1)
    TNT1 A 0 A_GiveInventory("RLConquerorShotgun", 1)
    TNT1 A 0 A_SelectWeapon("RLConquerorShotgun")
    Goto AllDoneHere
	
//==============================================================================
  RemovePerks:
    TNT1 A 0 A_TakeInventory("RLAmmochainPerk", 1)
    TNT1 A 0 A_TakeInventory("RLSharpshooterPerk", 1)
    TNT1 A 0 A_TakeInventory("RLScavengerPerk", 1)
    TNT1 A 0 A_TakeInventory("RLShellshockPerk", 1)
    TNT1 A 0 A_TakeInventory("RLFireangelPerk", 1)
    TNT1 A 0 A_TakeInventory("RLBerserkerPerk", 1)
	Goto ScoutStandardLoadout
//------------------------------------------------------------------------------
  AllDoneHere:
    TNT1 A 0
	Stop
  }
}

ACTOR RLAllAmmoStarter : CustomInventory
{
  -COUNTITEM
  +INVENTORY.ALWAYSPICKUP
  Inventory.PickupMessage ""
  Inventory.PickupSound ""
  States
  {
  Spawn:
    TNT1 A 1
    Stop
  Pickup:
    TNT1 A 0 
//	- STANDARD CLIPS -
    TNT1 A 0 A_GiveInventory("RLPistolClip", 6)
    TNT1 A 0 A_GiveInventory("RLShotgunClip", 1)
    TNT1 A 0 A_GiveInventory("RLDoubleShotgunClip", 2)
    TNT1 A 0 A_GiveInventory("RLCombatShotgunClip", 5)
    TNT1 A 0 A_GiveInventory("RLChaingunClip", 40)
    TNT1 A 0 A_GiveInventory("RLBattleRifleClip", 20)
    TNT1 A 0 A_GiveInventory("RLRocketLauncherClip", 1)
    TNT1 A 0 A_GiveInventory("RLPlasmaRifleClip", 40)
    TNT1 A 0 A_GiveInventory("RLBFG9000Clip", 100)
//	- EXOTIC CLIPS -
    TNT1 A 0 A_GiveInventory("RLBlasterClip", 10)
    TNT1 A 0 A_GiveInventory("RLCombatPistolClip", 15)
    TNT1 A 0 A_GiveInventory("RLMarksmanPistolClip", 10)
    TNT1 A 0 A_GiveInventory("RLHandcannonClip", 7)
    TNT1 A 0 A_GiveInventory("RLSuperShotgunClip", 2)
    TNT1 A 0 A_GiveInventory("RLAssaultShotgunClip", 6)
    TNT1 A 0 A_GiveInventory("RLPlasmaShotgunClip", 30)
    TNT1 A 0 A_GiveInventory("RLTristarBlasterClip", 45)
    TNT1 A 0 A_GiveInventory("RLMinigunClip", 200)
    TNT1 A 0 A_GiveInventory("RLMissileLauncherClip", 4)
    TNT1 A 0 A_GiveInventory("RLNapalmLauncherClip", 1)
    TNT1 A 0 A_GiveInventory("RLLaserRifleClip", 40)
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaPistolClip", 16)
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaRifleClip", 24)
    TNT1 A 0 A_GiveInventory("RLNuclearBFG9000Clip", 40)
    TNT1 A 0 A_GiveInventory("RLNuclearBFG9000Charged", 1)
    TNT1 A 0 A_GiveInventory("RLCombatTranslocatorClip", 60)
    TNT1 A 0 A_GiveInventory("RLUziClip", 32)
//	- SUPERIOR CLIPS -
    TNT1 A 0 A_GiveInventory("RLMarksmanRifleClip", 15)
    TNT1 A 0 A_GiveInventory("RLVanguardRifleClip", 70)
    TNT1 A 0 A_GiveInventory("RLHuntingRevolverClip", 6)
    TNT1 A 0 A_GiveInventory("RLThompsonClip", 20)
    TNT1 A 0 A_GiveInventory("RLPP7Clip", 7)
    TNT1 A 0 A_GiveInventory("RLHuntingShotgunClip", 2)
    TNT1 A 0 A_GiveInventory("RLRCP90Clip", 80)
//	- UNIQUE CLIPS -
    TNT1 A 0 A_GiveInventory("RLJackhammerClip", 9)
    TNT1 A 0 A_GiveInventory("RLRailgunClip", 40)
    TNT1 A 0 A_GiveInventory("RLMysteriousMagnumClip", 6)
    TNT1 A 0 A_GiveInventory("RLBFG10KClip", 50)
    TNT1 A 0 A_GiveInventory("RLUnknownHeraldClip", 6)
    TNT1 A 0 A_GiveInventory("RLFragShotgunClip", 16)
    TNT1 A 0 A_GiveInventory("RLQuadShotgunClip", 4)
    TNT1 A 0 A_GiveInventory("RLLightweaverCharge", 100)
    TNT1 A 0 A_GiveInventory("RLTrigunClip", 6)
    TNT1 A 0 A_GiveInventory("RLGrammatonClericBerettaClip", 18)
    TNT1 A 0 A_GiveInventory("RLAntiFreakJackalClip", 6)
    TNT1 A 0 A_GiveInventory("RLHellsingARMSCasullClip", 6)
    TNT1 A 0 A_GiveInventory("RLTantrumCannonClip", 20)
    TNT1 A 0 A_GiveInventory("RLRevenantsLauncherClip", 2)
    TNT1 A 0 A_GiveInventory("RLNullPointerClip", 60)
    TNT1 A 0 A_GiveInventory("RLParticleBeamCannonClip", 90)
    TNT1 A 0 A_GiveInventory("RLPlasmaRedirectionCannonClip", 50)
    TNT1 A 0 A_GiveInventory("RLSteelBeastClip", 1)
    TNT1 A 0 A_GiveInventory("RLMIRVLauncherClip", 1)
    TNT1 A 0 A_GiveInventory("RLMarathonAssaultRifleClip", 52)
    TNT1 A 0 A_GiveInventory("RLMarathonShotgunsClip1", 2)
    TNT1 A 0 A_GiveInventory("RLMarathonShotgunsClip2", 2)
    TNT1 A 0 A_GiveInventory("RLWidowmakerSMGClip", 32)
    TNT1 A 0 A_GiveInventory("RLChameleonRifleClip", 50)
    TNT1 A 0 A_GiveInventory("RLNuclearOnslaughtClip1", 16)
    TNT1 A 0 A_GiveInventory("RLNuclearOnslaughtClip2", 16)
    TNT1 A 0 A_GiveInventory("RLDirectHitClip", 4)
//	- DEMONIC CLIPS -
    TNT1 A 0 A_GiveInventory("RLDeathsGazeClip", 10)
    TNT1 A 0 A_GiveInventory("RLHellsReignClip", 20)
    TNT1 A 0 A_GiveInventory("RLSoulstormRifleClip", 50)
//	- LEGENDARY CLIPS -
    TNT1 A 0 A_GiveInventory("RLBaronBlasterClip", 1)
    TNT1 A 0 A_GiveInventory("RLRealityDistortionArrayClip", 100)
    TNT1 A 0 A_GiveInventory("RLLonghornClip",  6)
    TNT1 A 0 A_GiveInventory("RLLonghornClip2", 6)
//	- BASIC ASSEMBLY CLIPS -
    TNT1 A 0 A_GiveInventory("RLSilencedPistolClip", 6)
    TNT1 A 0 A_GiveInventory("RLStealthRifleClip", 20)
    TNT1 A 0 A_GiveInventory("RLShredderPistolClip", 10)
    TNT1 A 0 A_GiveInventory("RLShredderShotgunClip", 2)
    TNT1 A 0 A_GiveInventory("RLShredderShotgunShredderClip", 20)
    TNT1 A 0 A_GiveInventory("RLSpeedloaderPistolClip", 6)
    TNT1 A 0 A_GiveInventory("RLElephantGunClip", 1)
    TNT1 A 0 A_GiveInventory("RLGatlingGunClip", 90)
    TNT1 A 0 A_GiveInventory("RLMicroLauncherClip", 1)
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaRevolverClip", 6)
    TNT1 A 0 A_GiveInventory("RLTacticalShotgunClip", 5)
    TNT1 A 0 A_GiveInventory("RLFlamethrowerClip", 60)
    TNT1 A 0 A_GiveInventory("RLSniperRifleClip", 8)
    TNT1 A 0 A_GiveInventory("RLShrapnelCannonClip", 1)
//	- HEAVY SHOTGUN ASSEMBLY CLIPS -
    TNT1 A 0 A_GiveInventory("RLHeavyShotgunClip", 1)
    TNT1 A 0 A_GiveInventory("RLHeavyCombatShotgunClip", 5)
    TNT1 A 0 A_GiveInventory("RLHeavyDoubleShotgunClip", 2)
    TNT1 A 0 A_GiveInventory("RLHeavySuperShotgunClip", 2)
    TNT1 A 0 A_GiveInventory("RLHeavyAssaultShotgunClip", 6)
    TNT1 A 0 A_GiveInventory("RLHeavyPlasmaShotgunClip", 30)
    TNT1 A 0 A_GiveInventory("RLHeavyHuntingShotgunClip", 2)
//	- HIGH POWER ASSEMBLY CLIPS -
    TNT1 A 0 A_GiveInventory("RLHighPowerPistolClip", 4)
    TNT1 A 0 A_GiveInventory("RLHighPowerChaingunClip", 26)
    TNT1 A 0 A_GiveInventory("RLHighPowerBattleRifleClip", 13)
    TNT1 A 0 A_GiveInventory("RLHighPowerPlasmaRifleClip", 26)
    TNT1 A 0 A_GiveInventory("RLHighPowerBFG9000Clip", 65)
    TNT1 A 0 A_GiveInventory("RLHighPowerBlasterClip", 6)
    TNT1 A 0 A_GiveInventory("RLHighPowerCombatPistolClip", 10)
    TNT1 A 0 A_GiveInventory("RLHighPowerMarksmanPistolClip", 7)
    TNT1 A 0 A_GiveInventory("RLHighPowerHandcannonClip", 5)
    TNT1 A 0 A_GiveInventory("RLHighPowerTristarBlasterClip", 30)
    TNT1 A 0 A_GiveInventory("RLHighPowerMinigunClip", 130)
    TNT1 A 0 A_GiveInventory("RLHighPowerLaserRifleClip", 26)
    TNT1 A 0 A_GiveInventory("RLHighPowerNuclearPlasmaPistolClip", 10)
    TNT1 A 0 A_GiveInventory("RLHighPowerNuclearPlasmaRifleClip", 16)
    TNT1 A 0 A_GiveInventory("RLHighPowerNuclearBFG9000Clip", 26)
    TNT1 A 0 A_GiveInventory("RLHighPowerUziClip", 21)
    TNT1 A 0 A_GiveInventory("RLHighPowerMarksmanRifleClip", 10)
    TNT1 A 0 A_GiveInventory("RLHighPowerVanguardRifleClip", 46)
    TNT1 A 0 A_GiveInventory("RLHighPowerHuntingRevolverClip", 4)
    TNT1 A 0 A_GiveInventory("RLHighPowerThompsonClip", 13)
    TNT1 A 0 A_GiveInventory("RLHighPowerPP7Clip", 5)
    TNT1 A 0 A_GiveInventory("RLHighPowerRCP90Clip", 120)
//	- PLASMATIC SHRAPNEL ASSEMBLY CLIPS -
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelShotgunClip", 1)
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelCombatShotgunClip", 5)
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelDoubleShotgunClip", 2)
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelSuperShotgunClip", 2)
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelAssaultShotgunClip", 6)
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelPlasmaShotgunClip", 30)
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelHuntingShotgunClip", 2)
//	- ADVANCED ASSEMBLY CLIPS -
    TNT1 A 0 A_GiveInventory("RLTacticalRocketLauncherClip", 5)
    TNT1 A 0 A_GiveInventory("RLVBFG9000Clip", 150)
    TNT1 A 0 A_GiveInventory("RLNuclearVBFG9000Clip", 60)
    TNT1 A 0 A_GiveInventory("RLNuclearVBFG9000Charged", 1)
    TNT1 A 0 A_GiveInventory("RLFocusedDoubleShotgunClip", 2)
    TNT1 A 0 A_GiveInventory("RLHyperblasterClip", 40)
    TNT1 A 0 A_GiveInventory("RLAutoshotgunClip", 20)
    TNT1 A 0 A_GiveInventory("RLAutoDoubleShotgunClip", 20)
    TNT1 A 0 A_GiveInventory("RLMiniMissilePistolClip", 6)
    TNT1 A 0 A_GiveInventory("RLPlasmaRifleMkIIClip", 100)
    TNT1 A 0 A_GiveInventory("RLPlasmaShotgunMkIIClip", 75)
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaRifleMkIIClip", 60)
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaShotgunClip", 18)
    TNT1 A 0 A_GiveInventory("RLLaserShotgunClip", 30)
    TNT1 A 0 A_GiveInventory("RLGrenadeLauncherClip", 1)
//	- STORM PISTOL ASSEMBLY CLIPS -
    TNT1 A 0 A_GiveInventory("RLStormPistolClip", 9)
    TNT1 A 0 A_GiveInventory("RLStormCombatPistolClip", 22)
    TNT1 A 0 A_GiveInventory("RLStormMarksmanPistolClip", 15)
    TNT1 A 0 A_GiveInventory("RLStormHandcannonClip", 11)
    TNT1 A 0 A_GiveInventory("RLStormUziClip", 32)
    TNT1 A 0 A_GiveInventory("RLStormUziClip2", 32)
    TNT1 A 0 A_GiveInventory("RLStormBlasterClip", 15)
    TNT1 A 0 A_GiveInventory("RLStormNuclearPlasmaPistolClip", 24)
//	- PLASMA PISTOL ASSEMBLY CLIPS -
    TNT1 A 0 A_GiveInventory("RLPlasmaPistolClip", 6)
    TNT1 A 0 A_GiveInventory("RLPlasmaCombatPistolClip", 15)
    TNT1 A 0 A_GiveInventory("RLPlasmaMarksmanPistolClip", 10)
    TNT1 A 0 A_GiveInventory("RLPlasmaHandcannonClip", 7)
    TNT1 A 0 A_GiveInventory("RLPlasmaUziClip", 32)
    TNT1 A 0 A_GiveInventory("RLSuperchargedNuclearPlasmaPistolClip", 8)
//	- ASSAULT RIFLE ASSEMBLY CLIPS -
    TNT1 A 0 A_GiveInventory("RLAssaultRifleChaingunClip", 40)
    TNT1 A 0 A_GiveInventory("RLAssaultRifleBattleRifleClip", 20)
    TNT1 A 0 A_GiveInventory("RLAssaultRiflePlasmaRifleClip", 40)
    TNT1 A 0 A_GiveInventory("RLAssaultRifleMinigunClip", 200)
    TNT1 A 0 A_GiveInventory("RLAssaultRifleLaserRifleClip", 40)
    TNT1 A 0 A_GiveInventory("RLAssaultRifleNuclearPlasmaRifleClip", 24)
    TNT1 A 0 A_GiveInventory("RLAssaultRifleUziClip", 32)
//	- BURST CANNON ASSEMBLY CLIPS -
    TNT1 A 0 A_GiveInventory("RLBurstCannonChaingunClip", 80)
    TNT1 A 0 A_GiveInventory("RLBurstCannonBattleRifleClip", 40)
    TNT1 A 0 A_GiveInventory("RLBurstCannonPlasmaRifleClip", 80)
    TNT1 A 0 A_GiveInventory("RLBurstCannonMinigunClip", 400)
    TNT1 A 0 A_GiveInventory("RLBurstCannonLaserRifleClip", 80)
    TNT1 A 0 A_GiveInventory("RLBurstCannonNuclearPlasmaRifleClip", 48)
    TNT1 A 0 A_GiveInventory("RLBurstCannonUziClip", 64)
//	- MASTER ASSEMBLY CLIPS -
    TNT1 A 0 A_GiveInventory("RLBiggestFuckingGunClip", 250)
    TNT1 A 0 A_GiveInventory("RLNuclearBiggestFuckingGunClip", 100)
    TNT1 A 0 A_GiveInventory("RLNuclearBiggestFuckingGunCharged", 1)
    TNT1 A 0 A_GiveInventory("RLAutocannonClip", 1)
    TNT1 A 0 A_GiveInventory("RLPlasmaRefractorClip", 50)
    TNT1 A 0 A_GiveInventory("RLClusterBombLauncherClip", 1)
    TNT1 A 0 A_GiveInventory("RLGaussRifleClip", 1)
    TNT1 A 0 A_GiveInventory("RLMegatonShotgunClip", 9)
    TNT1 A 0 A_GiveInventory("RLConquerorShotgunClip", 15)
    TNT1 A 0 A_GiveInventory("RLVoltgunClip", 75)
    TNT1 A 0 A_GiveInventory("RLSuperMachinegunClip", 120)
    TNT1 A 0 A_GiveInventory("RLZeusCannonClip", 100)
    TNT1 A 0 A_GiveInventory("RLAntiMaterielRifleClip", 1)
//	- PLASMA INFUSION ASSEMBLY CLIPS -
    TNT1 A 0 A_GiveInventory("RLInfusionLauncherClip", 1)
    TNT1 A 0 A_GiveInventory("RLHeavyPulseBlasterClip", 20)
    TNT1 A 0 A_GiveInventory("RLLaserMinigunClip", 500)
    TNT1 A 0 A_GiveInventory("RLLaserPulseLauncherClip", 1)
    TNT1 A 0 A_GiveInventory("RLIncinerationDeviceLauncherClip", 1)
//	- DEMOLITION AMMO ASSEMBLY CLIPS -
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoPistolClip", 6)
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoChaingunClip", 40)
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoBattleRifleClip", 20)
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoCombatPistolClip", 15)
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoMarksmanPistolClip", 10)
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoHandcannonClip", 7)
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoMinigunClip", 200)
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoUziClip", 32)
	Stop
  }
}

ACTOR RLHUDStyleRestorer : RLCustomFunction
{
  States
  {
  Pickup:
    TNT1 A 0 
  StatusBarHUDCheck:
//	- STATUSBAR HUD -
	TNT1 A 0 A_JumpIf(CallACS("DRLA_HUD_StatusBarStyle") == 1, "StatusBarShivers")
	Goto StatusBarYholl
  StatusBarYholl:
    TNT1 A 0 A_GiveInventory("RLStatusBarHUDType", 1)
	Goto FullscreenHUDCheck
  StatusBarShivers:
    TNT1 A 0 A_GiveInventory("RLStatusBarAltHUDType", 1)
	Goto FullscreenHUDCheck
	
  FullscreenHUDCheck:
//	- STATUSBAR HUD -
	TNT1 A 0 A_JumpIf(CallACS("DRLA_HUD_FullscreenStyle") == 1, "FullscreenShiny")
	TNT1 A 0 A_JumpIf(CallACS("DRLA_HUD_FullscreenStyle") == 2, "FullscreenDook")
	Goto FullscreenOriginal
  FullscreenOriginal:
    TNT1 A 0 A_GiveInventory("RLFullscreenOriginalHUDType", 1)
	Stop
  FullscreenShiny:
    TNT1 A 0 A_GiveInventory("RLFullscreenShinyHUDType", 1)
	Stop
  FullscreenDook:
    TNT1 A 0 A_GiveInventory("RLFullscreenDookHUDType", 1)
	Stop
  }
}
