/*
The beautiful graphics of this HUD were done by Zrrion the insect in 2013. Shame they sat around doing nothing for so long, heh.
Ryan_Cordell helped alter and touch up a few of them, and Jimmy helped me get the font working.
Many thanks go out to all three of them, now you have a super cool status bar hud!
And then Ryan was triggered and made it cleaner the end
Sgt. Shivers and Marty_Kirra helped to brainstorm and design the bottom left part of the HUD, which was a huge help.
                                                                            - Yholl
*/
//==============================================================================================================================================
//==============================================================================
//      Doom STATUSBAR
//==============================================================================
//==============================================================================================================================================
Height 0;
 
statusbar normal, forcescaled
{
    InInventory not RLSpecialHUD // Check for playing normally
    {
	
//==============================================================================

			InventoryBarNotVisible // swap out the middle hud section for an inventory bar of 5 slots temporarily
			{
				DrawImage "RLZHUD2", 160, 100, center; // The selected inventory
				DrawSelectedInventory centerbottom, drawshadow(4,4), DRLAINVFONT, 88, 196, 91, 190, PDAGreen;
				
				DrawImage "RLZHUD5", 155, 100, center; // The selected inventory
				// TABBING IS TEMPORARILY FORFEIT PLEASE WAIT WARMLY
				
	// STANDARD BOOTS HUD DISPLAY ==========================================================================
	InInventory RLGenericBootsToken
		DrawImage "BOOGICON", 227, 195, centerbottom;
	
	InInventory RLSteelBootsToken
		DrawImage "BOO1ICON", 227, 195, centerbottom;
	
	InInventory RLProtectiveBootsToken
		DrawImage "BOO2ICON", 227, 195, centerbottom;
	
	InInventory RLPlasteelBootsToken
		DrawImage "BOO3ICON", 227, 195, centerbottom;

	// ASSEMBLED BOOTS HUD DISPLAY ==========================================================================
	InInventory RLAntigravSteelBootsToken
		DrawImage "AGSBICON", 227, 195, centerbottom;
	
	InInventory RLAntigravProtectiveBootsToken
		DrawImage "AGGBICON", 227, 195, centerbottom;
	
	InInventory RLAntigravPlasteelBootsToken
		DrawImage "AGBBICON", 227, 195, centerbottom;

	InInventory RLEnviromentalSteelBootsToken
		DrawImage "ENV1ICON", 227, 195, centerbottom;
	
	InInventory RLEnviromentalProtectiveBootsToken
		DrawImage "ENV2ICON", 227, 195, centerbottom;
	
	InInventory RLEnviromentalPlasteelBootsToken
		DrawImage "ENV3ICON", 227, 195, centerbottom;

	InInventory RLFireproofSteelBootsToken
		DrawImage "FIR1ICON", 227, 195, centerbottom;
	
	InInventory RLFireproofProtectiveBootsToken
		DrawImage "FIR2ICON", 227, 195, centerbottom;
	
	InInventory RLFireproofPlasteelBootsToken
		DrawImage "FIR3ICON", 227, 195, centerbottom;

	InInventory RLGrapplingSteelBootsToken
		DrawImage "GRA1ICON", 227, 195, centerbottom;
	
	InInventory RLGrapplingProtectiveBootsToken
		DrawImage "GRA2ICON", 227, 195, centerbottom;
	
	InInventory RLGrapplingPlasteelBootsToken
		DrawImage "GRA3ICON", 227, 195, centerbottom;

	InInventory RLCerberusBootsToken
		DrawImage "CERBICON", 227, 195, centerbottom;
	
	InInventory RLTacticalBootsToken
		DrawImage "TACBICON", 227, 195, centerbottom;

	// EXOTIC BOOTS HUD DISPLAY ==========================================================================
	InInventory RLAcidProofBootsToken
		DrawImage "ACPBICON", 227, 195, centerbottom;
	
	InInventory RLGothicBootsToken
		DrawImage "GOTBICON", 227, 195, centerbottom;
	
	InInventory RLPhaseshiftBootsToken
		DrawImage "PSHBICON", 227, 195, centerbottom;
	
	InInventory RLShockwaveBootsToken
		DrawImage "SHKBICON", 227, 195, centerbottom;

	// SUPERIOR BOOTS HUD DISPLAY ==========================================================================

	// UNIQUE BOOTS HUD DISPLAY ==========================================================================
	InInventory RLEnviroBootsToken
		DrawImage "ENVBICON", 227, 195, centerbottom;
	
	InInventory RLFrontlineEngineerBootsToken
		DrawImage "BLUBICON", 227, 195, centerbottom;
	
	InInventory RLLavaBootsToken
		DrawImage "LAVBICON", 227, 195, centerbottom;
	
	InInventory RLLeonidasBootsToken
		DrawImage "SPARICON", 227, 195, centerbottom;
	
	InInventory RLNuclearPowerBootsToken
		DrawImage "ENUKICO3", 227, 195, centerbottom;
	
	InInventory RLNyarlaptotepsBootsToken
		DrawImage "NYABICON", 227, 195, centerbottom;
	
	InInventory RLRoystensCombatBootsToken
		DrawImage "ROYBICON", 227, 195, centerbottom;
	
	InInventory RLSoloOperativeBootsToken
		DrawImage "SSOBICON", 227, 195, centerbottom;
	
	InInventory RLTorgueBlastBootsToken
		DrawImage "TORBICON", 227, 195, centerbottom;
	
	InInventory RLTacticalAssemblerBootsToken
		DrawImage "REDBICON", 227, 195, centerbottom;

	// DEMONIC BOOTS HUD DISPLAY ==========================================================================
	InInventory RLDemonicBootsToken
		DrawImage "DEMBICON", 227, 195, centerbottom;

	// LEGENDARY BOOTS HUD DISPLAY ==========================================================================
	InInventory RLAngelicBootsToken
		DrawImage "ANGBICON", 227, 195, centerbottom;
		
		
	// STANDARD ARMOR HUD DISPLAY ==========================================================================
	InInventory RLGenericArmorToken
		DrawImage "ARM0HUD", 227, 185, centerbottom;
	
	InInventory RLGreenArmorToken
		DrawImage "ARM1HUD", 227, 185, centerbottom;
	
	InInventory RLBlueArmorToken
		DrawImage "ARM2HUD", 227, 185, centerbottom;
	
	InInventory RLRedArmorToken
		DrawImage "HEVAHUD", 227, 185, centerbottom;
	
	// ASSEMBLED ARMOR HUD DISPLAY ==========================================================================
	InInventory RLCerberusArmorToken
		DrawImage "CERAHUD", 227, 185, centerbottom;

	InInventory RLFireshieldArmorToken
		DrawImage "FSHDHUD1", 227, 185, centerbottom;

	InInventory RLTacticalArmorToken
		DrawImage "TACAHUD", 227, 185, centerbottom;

	InInventory RLTowerShieldArmorToken
		DrawImage "TSHDHUD", 227, 185, centerbottom;

	// ASSEMBLED COLOR ARMOR HUD DISPLAY ==========================================================================
	InInventory RLAblativeGreenArmorToken
		DrawImage "ABL1HUD", 227, 185, centerbottom;
	
	InInventory RLAblativeBlueArmorToken
		DrawImage "ABL2HUD", 227, 185, centerbottom;
	
	InInventory RLAblativeRedArmorToken
		DrawImage "ABL3HUD", 227, 185, centerbottom;

	InInventory RLBallisticGreenArmorToken
		DrawImage "BLA1HUD", 227, 185, centerbottom;
	
	InInventory RLBallisticBlueArmorToken
		DrawImage "BLA2HUD", 227, 185, centerbottom;
	
	InInventory RLBallisticRedArmorToken
		DrawImage "BLA3HUD", 227, 185, centerbottom;

	InInventory RLCybernanoGreenArmorToken
		DrawImage "CYN1HUD1", 227, 185, centerbottom;
	
	InInventory RLCybernanoBlueArmorToken
		DrawImage "CYN2HUD1", 227, 185, centerbottom;
	
	InInventory RLCybernanoRedArmorToken
		DrawImage "CYN3HUD1", 227, 185, centerbottom;

	InInventory RLFireproofGreenArmorToken
		DrawImage "FPA1HUD", 227, 185, centerbottom;
	
	InInventory RLFireproofBlueArmorToken
		DrawImage "FPA2HUD", 227, 185, centerbottom;
	
	InInventory RLFireproofRedArmorToken
		DrawImage "FPA3HUD", 227, 185, centerbottom;

	InInventory RLNanofiberGreenArmorToken
		DrawImage "NFA1HUD", 227, 185, centerbottom;
	
	InInventory RLNanofiberBlueArmorToken
		DrawImage "NFA2HUD", 227, 185, centerbottom;
	
	InInventory RLNanofiberRedArmorToken
		DrawImage "NFA3HUD", 227, 185, centerbottom;

	InInventory RLNanofiberSkinGreenArmorToken
		DrawImage "NFS1HUD", 227, 185, centerbottom;
	
	InInventory RLNanofiberSkinBlueArmorToken
		DrawImage "NFS2HUD", 227, 185, centerbottom;
	
	InInventory RLNanofiberSkinRedArmorToken
		DrawImage "NFS3HUD", 227, 185, centerbottom;

	InInventory RLPowerGreenArmorToken
		DrawImage "PWR1HUD", 227, 185, centerbottom;
	
	InInventory RLPowerBlueArmorToken
		DrawImage "PWR2HUD", 227, 185, centerbottom;
	
	InInventory RLPowerRedArmorToken
		DrawImage "PWR3HUD", 227, 185, centerbottom;

	// EXOTIC ARMOR HUD DISPLAY ==========================================================================
	InInventory RLBallisticShieldArmorToken
		DrawImage "BSHDHUD1", 227, 185, centerbottom;

	InInventory RLBallisticVestArmorToken
		DrawImage "BALVHUD", 227, 185, centerbottom;
	
	InInventory RLBulletProofVestArmorToken
		DrawImage "BPFVHUD", 227, 185, centerbottom;

	InInventory RLCyberwarriorArmorToken
		DrawImage "CYWAHUD", 227, 185, centerbottom;
	
	InInventory RLDuelistArmorToken
		DrawImage "DUEAHUD", 227, 185, centerbottom;
	
	InInventory RLEnergyShieldedVestArmorToken
		DrawImage "ESVAHUD1", 227, 185, centerbottom;

	InInventory RLEnergyShieldArmorToken
		DrawImage "ESHDHUD1", 227, 185, centerbottom;

	InInventory RLGothicArmorToken
		DrawImage "GOTAHUD", 227, 185, centerbottom;

	InInventory RLMedicalArmorToken
		DrawImage "MED1HUD", 227, 185, centerbottom;
	
	InInventory RLOnyxArmorToken
		DrawImage "ONXAHUD", 227, 185, centerbottom;

	InInventory RLOverchargeSystemArmorToken
	{
		InInventory PowerRL180Cooldown
		{
			InInventory PowerRLOverchargeSystemDamage
			{
				DrawImage "OVESHUD2", 227, 185;
				DrawBar "OVESHUD3", "OVESHUD4", PowerupTime("RLOverchargeSystemDamageGiver"), horizontal, interpolate(1), 227, 185;
			}
			
			InInventory not PowerRLOverchargeSystemDamage
			{
				DrawImage "OVESHUD2", 227, 185;
				DrawBar "OVESHUD4", "OVESHUD3", PowerupTime("RL180CooldownGiver"), horizontal, reverse | interpolate(1), 227, 185;
			}
		}
		
		InInventory not PowerRL180Cooldown
			DrawImage "OVESHUD", 227, 185;
	}
	
	InInventory RLPhaseshiftArmorToken
		DrawImage "PSHAHUD", 227, 185, centerbottom;

	InInventory RLPlasmaShieldArmorToken
		DrawImage "PSHDHUD1", 227, 185, centerbottom;

	InInventory RLRepulsionWaveSuitArmorToken
		DrawImage "REPWHUD", 227, 185, centerbottom;
	
	InInventory RLSurvivalMediArmorToken
		DrawImage "SURVHUD", 227, 185, centerbottom;
	
	// ONYX-MODDED ARMOR HUD DISPLAY ==========================================================================
	InInventory RLOModGreenArmorToken
		DrawImage "ONYAAHUD", 227, 185, centerbottom;
	
	InInventory RLOModBlueArmorToken
		DrawImage "ONYABHUD", 227, 185, centerbottom;
	
	InInventory RLOModRedArmorToken
		DrawImage "ONYACHUD", 227, 185, centerbottom;
	
	InInventory RLOModBallisticVestArmorToken
		DrawImage "ONYADHUD", 227, 185, centerbottom;
	
	InInventory RLOModBulletProofVestArmorToken
		DrawImage "ONYAEHUD", 227, 185, centerbottom;
	
	InInventory RLOModCyberwarriorArmorToken
		DrawImage "ONYAFHUD", 227, 185, centerbottom;
	
	InInventory RLOModDuelistArmorToken
		DrawImage "ONYAGHUD", 227, 185, centerbottom;
	
	InInventory RLOModEnergyShieldedVestArmorToken
		DrawImage "ONYAHHUD", 227, 185, centerbottom;
	
	InInventory RLOModGothicArmorToken
		DrawImage "ONYAJHUD", 227, 185, centerbottom;
	
	InInventory RLOModMedicalArmorToken
		DrawImage "ONYAKHUD", 227, 185, centerbottom;
	
	InInventory RLOModPhaseshiftArmorToken
		DrawImage "ONYALHUD", 227, 185, centerbottom;
	
	InInventory RLOModRepulsionWaveSuitArmorToken
		DrawImage "ONYAMHUD", 227, 185, centerbottom;
	
	InInventory RLOModSurvivalMediArmorToken
		DrawImage "ONYANHU1", 227, 185, centerbottom;

	// SUPERIOR ARMOR HUD DISPLAY ==========================================================================
	InInventory RLNuclearArmorToken
		DrawImage "NUKAHUD", 227, 185, centerbottom;
	
	InInventory RLRechargeableEnergyShieldArmorToken
		DrawImage "RESHHUD", 227, 185, centerbottom;
	
	// UNIQUE ARMOR HUD DISPLAY ==========================================================================
	InInventory RLBerserkerArmorToken
		DrawImage "GOTAHUD", 227, 185, centerbottom;

	InInventory RLBerserkPowersuitArmorToken
	{
		InInventory PowerStrength
			DrawImage "BEPSHUD5", 227, 185, centerbottom;
		
		InInventory not PowerStrength
		{
			InInventory not RLBerserkPowersuitBerserkCounter, 1
				DrawImage "BEPSHUD", 227, 185, centerbottom;
			
			InInventory RLBerserkPowersuitBerserkCounter, 1
			{
				InInventory not RLBerserkPowersuitBerserkCounter, 2
					DrawImage "BEPSHUD2", 227, 185, centerbottom;
				
				InInventory RLBerserkPowersuitBerserkCounter, 2
				{
					InInventory not RLBerserkPowersuitBerserkCounter, 3
						DrawImage "BEPSHUD3", 227, 185, centerbottom;
					
					InInventory RLBerserkPowersuitBerserkCounter, 3
						DrawImage "BEPSHUD4", 227, 185, centerbottom;
				}
			}
		}
	}
	
	InInventory RLBlazingPhoenixDeviceSuitArmorToken
	{
		InInventory not RLBlazingPhoenixDeviceSuitAnimation, 1
			DrawImage "BPHDHUD", 227, 185;
		
		InInventory RLBlazingPhoenixDeviceSuitAnimation, 1
		{
			InInventory not RLBlazingPhoenixDeviceSuitAnimation, 2
				DrawImage "BPHDHUD2", 227, 185;
			
			InInventory RLBlazingPhoenixDeviceSuitAnimation, 2
			{
				InInventory not RLBlazingPhoenixDeviceSuitAnimation, 3
					DrawImage "BPHDHUD3", 227, 185;
				
				InInventory RLBlazingPhoenixDeviceSuitAnimation, 3
				{
					InInventory not RLBlazingPhoenixDeviceSuitAnimation, 4
						DrawImage "BPHDHUD4", 227, 185;
					
					InInventory RLBlazingPhoenixDeviceSuitAnimation, 4
					{
						InInventory not RLBlazingPhoenixDeviceSuitAnimation, 5
							DrawImage "BPHDHUD5", 227, 185;
						
						InInventory RLBlazingPhoenixDeviceSuitAnimation, 5
						{
							InInventory not RLBlazingPhoenixDeviceSuitAnimation, 6
								DrawImage "BPHDHUD6", 227, 185;
							InInventory RLBlazingPhoenixDeviceSuitAnimation, 6
								DrawImage "BPHDHUD7", 227, 185;
						}
					}
				}
			}
		}
	}
	
	InInventory RLCyberneticArmorToken
	{
		InInventory RLCyberneticArmorModdedToken
		{
			InInventory RLCyberneticArmorBulkToken
				DrawImage "CYNAHUD2", 227, 185, centerbottom;
			
			InInventory RLCyberneticArmorPowerToken
				DrawImage "CYNAHUD3", 227, 185, centerbottom;
			
			InInventory RLCyberneticArmorAgilityToken
				DrawImage "CYNAHUD4", 227, 185, centerbottom;
			
			InInventory RLCyberneticArmorTechnicalToken
				DrawImage "CYNAHUD5", 227, 185, centerbottom;
			
			InInventory RLCyberneticArmorSniperToken
				DrawImage "CYNAHUD6", 227, 185, centerbottom;
			
			InInventory RLCyberneticArmorFirestormToken
				DrawImage "CYNAHUD7", 227, 185, centerbottom;
			
			InInventory RLCyberneticArmorNanoToken
				DrawImage "CYNAHUD8", 227, 185, centerbottom;
			
			InInventory RLCyberneticArmorOnyxToken
			DrawImage "CYNAHUD9", 227, 185, centerbottom;
			
		}
		
		InInventory not RLCyberneticArmorModdedToken
			DrawImage "CYNAHUD", 227, 185, centerbottom;
	}

	InInventory RLEnergyDischargeHarnessArmorToken
	{
		InInventory not RLEnergyDischargeHarnessCounter, 1
			DrawImage "EDHXHUD", 227, 185, centerbottom;
		
		InInventory RLEnergyDischargeHarnessCounter, 1
		{
			InInventory not RLEnergyDischargeHarnessCounter, 2
				DrawImage "EDHXHUD2", 227, 185, centerbottom;
			
			InInventory RLEnergyDischargeHarnessCounter, 2
			{
				InInventory not RLEnergyDischargeHarnessCounter, 3
					DrawImage "EDHXHUD3", 227, 185, centerbottom;
				
				InInventory RLEnergyDischargeHarnessCounter, 3
				{
					InInventory not RLEnergyDischargeHarnessCounter, 4
						DrawImage "EDHXHUD4", 227, 185, centerbottom;
					
					InInventory RLEnergyDischargeHarnessCounter, 4
					{
						InInventory not RLEnergyDischargeHarnessCounter, 5
							DrawImage "EDHXHUD5", 227, 185, centerbottom;
						
						InInventory RLEnergyDischargeHarnessCounter, 5
							DrawImage "EDHXHUD6", 227, 185, centerbottom;
					}
				}
			}
		}
	}
	
	InInventory RLFrontlineEngineerSuitArmorToken
		DrawImage "BLUAHUD", 227, 185, centerbottom;
	
	InInventory RLGeosGoldenGauntletArmorToken
		DrawImage "GGGXHUD", 227, 185, centerbottom;
	
	InInventory RLJetpackArmorToken
	{
		InInventory PowerRLJetpackFlight
			DrawImage "JETPHUD4", 227, 185, centerbottom;
		
		InInventory PowerRLJetpackFlightPermanent
			DrawImage "JETPHUD4", 227, 185, centerbottom;
		
		InInventory not PowerRLJetpackFlight, 1 || PowerRLJetpackFlightPermanent, 1
			DrawImage "JETPHUD", 227, 185, centerbottom;
		
	}
	
	InInventory RLKateMatterstormHarnessArmorToken
		DrawImage "K8MHHUD", 227, 185, centerbottom;
	
	InInventory RLKyleTeslaboltArmorToken
	{
		InInventory RLKyleTeslaboltArmorCounter, 1
			DrawImage "KTESHUD3", 227, 185, centerbottom;
		
		InInventory not RLKyleTeslaboltArmorCounter, 1
			DrawImage "KTESHUD", 227, 185, centerbottom;
	}
	
	InInventory RLLavaArmorToken
		DrawImage "LAVUHUD1", 227, 185, centerbottom;

	InInventory RLMaleksArmorToken
	{
		InInventory RLInquisitorsSetBonusActive
			DrawImage "MALKHUD2", 227, 185, centerbottom;
		
		InInventory not RLInquisitorsSetBonusActive
			DrawImage "MALKHUD1", 227, 185, centerbottom;
	}

	InInventory RLMedicalPowerArmorToken
		DrawImage "MED2HUD", 227, 185, centerbottom;
	
	InInventory RLNanoAblativeArmorToken
		DrawImage "NABLHUD", 227, 185, centerbottom;
	
	InInventory RLNuclearPowerArmorToken
	{
		InInventory RLEnclaveSetBonusActive, 1
			DrawImage "ENUKHUD2", 227, 185, centerbottom;
		
		InInventory not RLEnclaveSetBonusActive, 1
			DrawImage "ENUKHUD", 227, 185, centerbottom;
	}
	
	InInventory RLPrototypeAssaultShieldArmorToken
	{
		InInventory PowerRLPrototypeAssaultShieldProtection
		{
			DrawImage "PASSHUD", 227, 185, centerbottom;
			DrawBar "PASSHUD2", "PASSHUD3", PowerupTime("RLPrototypeAssaultShieldProtectionGiver"), horizontal, interpolate(1), 228, 186; // x+1, y-1
		}
		
		InInventory not PowerRLPrototypeAssaultShieldProtection
		{
			InInventory not PowerRLPrototypeAssaultShieldNoCells
				DrawImage "PASSHUD", 227, 185, centerbottom;
			
			InInventory PowerRLPrototypeAssaultShieldNoCells
				DrawImage "PASSHUD4", 227, 185, centerbottom;
		}
	}
	
	InInventory RLRoystensCommandArmorToken
		DrawImage "ROYAHUD", 227, 185, centerbottom;
	
	InInventory RLRyanCordellPsychicAmplifierSuitArmorToken
		DrawImage "RCPAHUD", 227, 185, centerbottom;
	
	InInventory RLSoloOperativeSuitArmorToken
		DrawImage "SSOSHUD", 227, 185, centerbottom;
	
	InInventory RLShieldedArmorToken
		DrawImage "SSHDHUD1", 227, 185, centerbottom;
	
	InInventory RLTacticalAssemblerSuitArmorToken
		DrawImage "REDAHUD", 227, 185, centerbottom;
	
	InInventory RLTerminusEst13BattlesuitArmorToken
	{
		InInventory PowerRLTerminusAttack, 1
			DrawImage "TEBSHUD3", 227, 185, centerbottom;
		
		InInventory not PowerRLTerminusAttack, 1
			DrawImage "TEBSHUD", 227, 185, centerbottom;
	}
	
	InInventory RLTorgueBlastplateArmorToken
		DrawImage "TORAHUD", 227, 185, centerbottom;
	
	InInventory RLWildWeaselPeacekeeperArmorToken
		DrawImage "WWPKHUD", 227, 185, centerbottom;
	
	InInventory RLXaserPowerArmorToken
		DrawImage "XASPHUD", 227, 185, centerbottom;
	
	InInventory RLZeroDiamondAssaultforceArmorToken
	{
		InInventory RLZeroDiamondAssaultforceArmorCounter, 1
			DrawImage "0DAFHUD2", 227, 185, centerbottom;
		
		InInventory not RLZeroDiamondAssaultforceArmorCounter, 1
			DrawImage "0DAFHUD", 227, 185, centerbottom;
	}
	
	// DEMONIC ARMOR HUD DISPLAY ==========================================================================
	InInventory RLDemonicCarapaceArmorToken
	{
		InInventory PowerRLDemonicCarapaceAttack, 1
			DrawImage "DEMAHUD2", 227, 185, centerbottom;
		
		InInventory not PowerRLDemonicCarapaceAttack, 1
			DrawImage "DEMAHUD", 227, 185, centerbottom;
	}
	
	InInventory RLNecroArmorToken
		DrawImage "NECRHUD", 227, 185, centerbottom;
	
	InInventory RLSoulshatterArmorToken
	{
		InInventory not RLSoulshatterArmorAnimation, 1
			DrawImage "SOLSHUD", 227, 185;
		
		InInventory RLSoulshatterArmorAnimation, 1
		{
			InInventory not RLSoulshatterArmorAnimation, 2
				DrawImage "SOLSHUD2", 227, 185;
			
			InInventory RLSoulshatterArmorAnimation, 2
			{
				InInventory not RLSoulshatterArmorAnimation, 3
					DrawImage "SOLSHUD3", 227, 185;
				
				InInventory RLSoulshatterArmorAnimation, 3
				{
					InInventory not RLSoulshatterArmorAnimation, 4
						DrawImage "SOLSHUD4", 227, 185;
					
					InInventory RLSoulshatterArmorAnimation, 4
						DrawImage "SOLSHUD5", 227, 185;
				}
			}
		}
	}

	// LEGENDARY ARMOR HUD DISPLAY ==========================================================================
	InInventory RLAngelicArmorToken
		DrawImage "ANGAHUD", 227, 185, centerbottom;
	
	InInventory RLChronotrooperArmorToken
		DrawImage "CHROHUD", 227, 185, centerbottom;

	InInventory RLReactiveShieldSystemArmorToken
	{
		InInventory not PowerRLReactiveShieldSystemActiveToken
			DrawImage "RSSDHUD", 227, 185, centerbottom;
		
		InInventory PowerRLReactiveShieldSystemActiveToken
		{
			InInventory PowerRLReactiveShieldSystemMelee
				DrawImage "RSSDHUD2", 227, 185, centerbottom;
			
			InInventory PowerRLReactiveShieldSystemBullet
				DrawImage "RSSDHUD3", 227, 185, centerbottom;
			
			InInventory PowerRLReactiveShieldSystemFire
				DrawImage "RSSDHUD4", 227, 185, centerbottom;
			
			InInventory PowerRLReactiveShieldSystemPlasma
				DrawImage "RSSDHUD5", 227, 185, centerbottom;
		}
	}
	
	InInventory RLTheBeeArmorToken
		DrawImage "BEESHUD", 227, 185, centerbottom;
	
				// THANK YOU FOR FLYING COPYPASTE AIRLINES, ENJOY YOUR STAY IN SatanBARINFO
			}
		
//==============================================================================
	
//		InInventory RLStatusBarHUDType // My status bar HUD type
//		{
		
			DrawImage "RLZHUDY", 160, 100, center;  // Left section of the HUD, containing health/armor and stamina
			DrawMugShot 5, animatedgodmode, 13, 167; // IT IS A MYSTERY
		
			// Draw the health and health bars
			DrawBar "RLZHPBAR", "RLZHPBAX", health, vertical, interpolate(4096), 6, 164;
			DrawImage "RLZPLUS", 10, 196, center;  // likkle helf cros
			DrawNumber 3, RLZFONT, untranslated, health, alignment (center), fillzeros, Interpolate(4096), 15, 152, orange, 25; // Health value
   
			// Draw the armor and armor bars
			DrawImage "RLZARMR", 52, 196, center;  // tinee smol amror
			// Non-indestructible armor durability is displayed
			InInventory not RLIndestructibleArmorWorn
			{
				InInventory BasicArmor, 1 // Below 1% it disappears, because of an annoying visual glitch
					InInventory RL100ArmorWorn // Maximum durability of 100
						DrawBar "RLZHPBAR", "RLZHPBAX", armor(100), vertical, interpolate(4096), 49, 164;
					InInventory RL100RegenArmorWorn // Maximum durability of 100, regenerates
						DrawBar "RLZHPBAR", "RLZHPBAX", armor(100), vertical, interpolate(4096), 49, 164;
					InInventory RL150ArmorWorn // Maximum durability of 150
						DrawBar "RLZHPBAR", "RLZHPBAX", armor(150), vertical, interpolate(4096), 49, 164;
					InInventory RL200ArmorWorn // Maximum durability of 200
						DrawBar "RLZHPBAR", "RLZHPBAX", armor(200), vertical, interpolate(4096), 49, 164;
				DrawNumber 3, RLZFONT, untranslated, armor, alignment (center), fillzeros, Interpolate(4096), 46, 152, orange, 25; // Armor value
			}
		
			// Indestructible armor durability is shown as an infinity symbol
			InInventory RLIndestructibleArmorWorn
			{
				DrawImage "RLZHPBAR", 53, 178, center;   // Dummy bar
				DrawImage "RLZHUDX2", 46, 155, center;   // Infinite armor value
			}
		
			// Stamina bar is normally green
			InInventory RLStamina, 25
				DrawBar "RLZSTAMG", "RLZSTAMX", Ammo("RLStamina"), vertical, interpolate(4096), 63, 165;
 
			InInventory not RLStamina, 25 // Below 25% is turns red
				DrawBar "RLZSTAMR", "RLZSTAMX", Ammo("RLStamina"), vertical, interpolate(4096), 63, 165;
//		}
//------------------------------------------------------------------------------	
/*		InInventory RLStatusBarAltHUDType // Sgt. Shivers' status bar HUD type
		{
			DrawImage "RLZHUDS", 160, 100, center;  // Left section of the HUD, containing health/armor and stamina
			DrawMugShot 5, 17, 158;
		
			// Draw the health and health bars
			DrawBar "RLZHPBAR", "RLZHPBAX", health, vertical, interpolate(4096), 9, 157;
			DrawImage "RLZPLUS", 13, 189, center;  // likkle helf cros
			DrawNumber 3, RLZFONT, untranslated, health, alignment (center), fillzeros, Interpolate(4096), 18, 192, orange, 25; // Health value
   
			// Draw the armor and armor bars
			DrawImage "RLZARMR", 57, 189, center;  // tinee smol amror
			// Non-indestructible armor durability is displayed
			InInventory not RLIndestructibleArmorWorn
			{
				InInventory BasicArmor, 1 // Below 1% it disappears, because of an annoying visual glitch
					InInventory RL100ArmorWorn // Maximum durability of 100
						DrawBar "RLZHPBAR", "RLZHPBAX", armor(100), vertical, interpolate(4096), 54, 157;
					InInventory RL100RegenArmorWorn // Maximum durability of 100, regenerates
						DrawBar "RLZHPBAR", "RLZHPBAX", armor(100), vertical, interpolate(4096), 54, 157;
					InInventory RL150ArmorWorn // Maximum durability of 150
						DrawBar "RLZHPBAR", "RLZHPBAX", armor(150), vertical, interpolate(4096), 54, 157;
					InInventory RL200ArmorWorn // Maximum durability of 200
						DrawBar "RLZHPBAR", "RLZHPBAX", armor(200), vertical, interpolate(4096), 54, 157;
				DrawNumber 3, RLZFONT, untranslated, armor, alignment (center), fillzeros, Interpolate(4096), 50, 192, orange, 25; // Armor value
			}
		
			// Indestructible armor durability is shown as an infinity symbol
			InInventory RLIndestructibleArmorWorn
			{
				DrawImage "RLZHPBAR", 58, 171, center;   // Dummy bar
				DrawImage "RLZHUDX2", 50, 195, center;   // Infinite armor value
			}
   
		
			// Stamina bar is normally green
			InInventory RLStamina, 25
				DrawBar "RLZSTAMG", "RLZSTAMX", Ammo("RLStamina"), vertical, interpolate(4096), 75, 165;
 
			InInventory not RLStamina, 25 // Below 25% is turns red
				DrawBar "RLZSTAMR", "RLZSTAMX", Ammo("RLStamina"), vertical, interpolate(4096), 75, 165;
		}*/

//==============================================================================

		DrawImage "RLZHUD4", 160, 19, center;  // Left and right top sections of the HUD, containing weapon info and powerup timers
		
		DrawImage weaponicon, 29, 25, center, 40, 16, forcescale; // Icons! AT LONG LAST!

		InInventory RLRenegadeExtraShot
		{ 
			Drawimage "RLZREXS", 29, 68, centerbottom;
		}
		InInventory RLWeaponDrop || RLScavengerDrop
		{ 
			Drawimage "RLZDROP", 29, 68, centerbottom;
		}
		// [RC] This'll prevent them flickering out of existance when switching weapons. Whoops.
		DrawImage "RLMLITOF", 75, 24;
		DrawImage "RLMLITOF", 85, 24;
		DrawImage "RLMLITOF", 95, 24;
		DrawImage "RLMLITOF", 105, 24;
		InInventory RLStandardWeaponToken || RLExoticWeaponToken
		{
			DrawSwitchableImage "RLTrackModLimit" >= 1, "RLMLITOF", "RLMLITON", 75, 24;
			DrawSwitchableImage "RLTrackModLimit" >= 2, "RLMLITOF", "RLMLITON", 85, 24;
			DrawSwitchableImage "RLTrackModLimit" >= 3, "RLMLITOF", "RLMLITON", 95, 24;
			DrawSwitchableImage "RLTrackModLimit" >= 4, "RLMLITOF", "RLMLITON", 105, 24;
		}
		InInventory RLSuperiorWeaponToken || RLBasicAssemblyTypeWeapon
		{
			DrawImage "RLMLITON", 75, 24;
			DrawImage "RLMLITON", 85, 24;
			DrawSwitchableImage "RLTrackModLimit" >= 1, "RLMLITOF", "RLMLITON", 95, 24;
			DrawSwitchableImage "RLTrackModLimit" >= 2, "RLMLITOF", "RLMLITON", 105, 24;
		}
		InInventory RLUniqueWeaponToken || RLDemonicWeaponToken
		{
			IsSelected NOT RLDuke2Rifle, RLChameleonRifle
			{
				IsSelected NOT RLWidowmakerSMG
				{
					DrawImage "RLMLITON", 75, 24;
					DrawImage "RLMLITON", 85, 24;
					DrawImage "RLMLITON", 95, 24;
					DrawSwitchableImage "RLTrackModLimit" >= 1, "RLMLITOF", "RLMLITON", 105, 24;
				}
			}
		}
		InInventory RLLegendaryWeaponToken || RLAdvancedAssemblyTypeWeapon
		{
			IsSelected NOT RLDuke2Rifle, RLChameleonRifle
			{
				IsSelected NOT RLWidowmakerSMG
				{
					DrawImage "RLMLITON", 75, 24;
					DrawImage "RLMLITON", 85, 24;
					DrawImage "RLMLITON", 95, 24;
					DrawSwitchableImage "RLTrackModLimit" >= 1, "RLMLITOF", "RLMLITON", 105, 24;
				}
			}
		}
		IsSelected RLDuke2Rifle, RLChameleonRifle
		{
			DrawImage "RLMLITON", 75, 24;
			DrawSwitchableImage "RLTrackModLimit" >= 1, "RLMLITOF", "RLMLITON", 85, 24;
			DrawSwitchableImage "RLTrackModLimit" >= 2, "RLMLITOF", "RLMLITON", 95, 24;
			DrawSwitchableImage "RLTrackModLimit" >= 3, "RLMLITOF", "RLMLITON", 105, 24;
		}
		IsSelected RLWidowmakerSMG
		{
			DrawImage "RLMLITON", 75, 24;
			DrawSwitchableImage "RLTrackModLimit" >= 1, "RLMLITOF", "RLMLITON", 85, 24;
			DrawSwitchableImage "RLTrackModLimit" >= 2, "RLMLITOF", "RLMLITON", 95, 24;
			DrawSwitchableImage "RLTrackModLimit" >= 3, "RLMLITOF", "RLMLITON", 105, 24;
		}
		InInventory RLMasterAssemblyTypeWeapon || RLSuperiorAssembledWeaponToken
		{
			DrawImage "RLMLITON", 75, 24;
			DrawImage "RLMLITON", 85, 24;
			DrawImage "RLMLITON", 95, 24;
			DrawImage "RLMLITON", 105, 24;
		}

		DrawNumber 1, STAT_MNO, Blue, "RLTrackBulkMod", 		75, 16;
		DrawNumber 1, STAT_MNO, Red, "RLTrackPowerMod", 		82, 16;
		DrawNumber 1, STAT_MNO, Green, "RLTrackAgilityMod", 	89, 16;
		DrawNumber 1, STAT_MNO, Yellow, "RLTrackTechnicalMod", 96, 16;
		DrawNumber 1, STAT_MNO, Purple, "RLTrackSniperMod", 	103, 16;
		DrawNumber 1, STAT_MNO, Orange, "RLTrackFirestormMod", 110, 16;
		DrawNumber 1, STAT_MNO, White, "RLTrackNanoMod", 		117, 16;
		DrawNumber 1, STAT_MNO, DarkRed, "RLTrackDemonArtifacts", 124, 16;

		InInventory RLAmmochainPerk // Marine powerups
		{
			DrawBar "RLZPBAR", "RLZPBAX", PowerupTime RLBerserkPickupMarineGiver, horizontal, interpolate(4096), 209, 1;
			DrawBar "RLZPBAR", "RLZPBAX", PowerupTime RLInfraredPickupMarineGiver, horizontal, interpolate(4096), 209, 1;
			DrawBar "RLZPBAR", "RLZPBAX", PowerupTime RLBlurSpherePickupMarineGiver, horizontal, interpolate(4096), 209, 1;
			DrawBar "RLZPBAR", "RLZPBAX", PowerupTime RLRadSuitIronPickupMarineGiver, horizontal, interpolate(4096), 209, 1;
			DrawBar "RLZPBAR", "RLZPBAX", PowerupTime RLFIREBLUSphereFiringSpeedPickupMarineGiver, horizontal, interpolate(4096), 209, 1;
		
			DrawBar "RLZPBAR", "RLZPBAX", PowerupTime RLInvulnerabilitySpherePickupMarineGiver, horizontal, interpolate(4096), 209, 1;
		}
	
		InInventory not RLAmmochainPerk // Normal powerups
		{
			DrawBar "RLZPBAR", "RLZPBAX", PowerupTime RLBerserkPickupGiver, horizontal, interpolate(4096), 209, 1;
			DrawBar "RLZPBAR", "RLZPBAX", PowerupTime RLInfraredPickupGiver, horizontal, interpolate(4096), 209, 1;
			DrawBar "RLZPBAR", "RLZPBAX", PowerupTime RLBlurSpherePickupGiver, horizontal, interpolate(4096), 209, 1;
			DrawBar "RLZPBAR", "RLZPBAX", PowerupTime RLRadSuitIronPickupGiver, horizontal, interpolate(4096), 209, 1;
			DrawBar "RLZPBAR", "RLZPBAX", PowerupTime RLFIREBLUSphereFiringSpeedPickupGiver, horizontal, interpolate(4096), 209, 1;
		
			DrawBar "RLZPBAR", "RLZPBAX", PowerupTime RLInvulnerabilitySpherePickupGiver, horizontal, interpolate(4096), 209, 1;
		}
   
		DrawImage "RLZHUD1", 160, 100, center;  // Right section of the HUD, containing ammo, inventory amounts and armor special bar
		InInventory not RLMultiAmmoWeapon // One or two ammo types?
		{
			InInventory RLInfiniteAmmoWeapon
				DrawImage "RLZHUDX", 285, 184, center;  // Infinity display icon
 
			InInventory not RLInfiniteAmmoWeapon
			{
				UsesSecondaryAmmo not       // Only one ammo type
					DrawNumber 4, RLZFONT, untranslated, ammo1, alignment (center), fillzeros, 285, 181;    // Primary ammo
 
				UsesSecondaryAmmo           // Two ammo types
				{
					DrawNumber 4, RLZFONT, untranslated, ammo1, alignment (center), fillzeros, 285, 175;    // Primary ammo
					DrawNumber 4, RLZFONT, untranslated, ammo2, alignment (center), fillzeros, 285, 187;    // Secondary ammo
				}
			}
		}
       
        // Any weapon that uses more than two ammo types uses this identifier token, so the HUD can display the extra types.
		InInventory RLMultiAmmoWeapon       // Three or more ammo types
		{
			InInventory RLAntiFreakJackalSelected
			{
				InInventory RLAntiFreakJackalDemonArtifacts
				{
					DrawNumber 4, RLZFONT, untranslated, "RLAntiFreakJackalClip", alignment (center), fillzeros, 285, 172;
					DrawNumber 4, RLZFONT, untranslated, "RLHellsingARMSCasullClip", alignment (center), fillzeros, 285, 181;
					DrawNumber 4, RLZFONT, untranslated, "Clip", alignment (center), fillzeros, 285, 190;
				}
				InInventory not RLAntiFreakJackalDemonArtifacts
				{
					DrawNumber 4, RLZFONT, untranslated, "RLAntiFreakJackalClip", alignment (center), fillzeros, 285, 175;
					DrawNumber 4, RLZFONT, untranslated, "Clip", alignment (center), fillzeros, 285, 187;
				}
			}
			InInventory RLMarathonShotgunsSelected
			{
				InInventory RLMarathonShotgunsDemonArtifacts
				{
					DrawNumber 4, RLZFONT, untranslated, "RLMarathonShotgunsClip2", alignment (center), fillzeros, 285, 172;
					DrawNumber 4, RLZFONT, untranslated, "RLMarathonShotgunsClip1", alignment (center), fillzeros, 285, 181;
					DrawNumber 4, RLZFONT, untranslated, "Shell", alignment (center), fillzeros, 285, 190;
				}
				InInventory not RLMarathonShotgunsDemonArtifacts
				{
					DrawNumber 4, RLZFONT, untranslated, "RLMarathonShotgunsClip1", alignment (center), fillzeros, 285, 175;
					DrawNumber 4, RLZFONT, untranslated, "Shell", alignment (center), fillzeros, 285, 187;
				}
			}
			InInventory RLStormUziSelected
			{
				DrawNumber 4, RLZFONT, untranslated, "RLStormUziClip2", alignment (center), fillzeros, 285, 172;
				DrawNumber 4, RLZFONT, untranslated, "RLStormUziClip", alignment (center), fillzeros, 285, 181;
				DrawNumber 4, RLZFONT, untranslated, "Clip", alignment (center), fillzeros, 285, 190;
			}
			InInventory RLMarathonAssaultRifleSelected
			{
				DrawNumber 4, RLZFONT, untranslated, "RLMarathonAssaultRifleClip", alignment (center), fillzeros, 285, 172;
				DrawNumber 4, RLZFONT, untranslated, "RLMarathonAssaultRifleGrenades", alignment (center), fillzeros, 285, 181;
				DrawNumber 4, RLZFONT, untranslated, "Clip", alignment (center), fillzeros, 285, 190;
			}
			InInventory RLWidowmakerSMGSelected
			{
				DrawNumber 4, RLZFONT, untranslated, "RLWidowmakerSMGClip", alignment (center), fillzeros, 285, 172;
				DrawNumber 4, RLZFONT, untranslated, "Clip", alignment (center), fillzeros, 285, 181;
           
				InInventory RLWidowmakerSMGFirestormAltActive
					DrawNumber 4, RLZFONT, untranslated, "RocketAmmo", alignment (center), fillzeros, 285, 190;
 
				InInventory RLWidowmakerSMGNanoAltActive
					DrawNumber 4, RLZFONT, untranslated, "Cell", alignment (center), fillzeros, 285, 190;
			}
			InInventory RLGaussRifleSelected
			{
				DrawNumber 4, RLZFONT, untranslated, "RLGaussRifleClip", alignment (center), fillzeros, 285, 172;
				DrawNumber 4, RLZFONT, untranslated, "RLGaussRifleCharge", alignment (center), fillzeros, 285, 181;
				DrawNumber 4, RLZFONT, untranslated, "Clip", alignment (center), fillzeros, 285, 190;
			}
			InInventory RLLonghornSelected
			{
				InInventory RLLonghornNanoMod
				{
					DrawNumber 4, RLZFONT, untranslated, "RLLonghornClip", alignment (center), fillzeros, 285, 172;
					DrawNumber 4, RLZFONT, untranslated, "RLLonghornClip2", alignment (center), fillzeros, 285, 181;
					DrawNumber 4, RLZFONT, untranslated, "Clip", alignment (center), fillzeros, 285, 190;
				}
				InInventory not RLLonghornNanoMod
				{
					DrawNumber 4, RLZFONT, untranslated, "RLLonghornClip", alignment (center), fillzeros, 285, 175;
					DrawNumber 4, RLZFONT, untranslated, "Clip", alignment (center), fillzeros, 285, 187;
				}
			}
		}
       
		// The four ammo types are displayed as vertical bars on the right side of the ammo display
		DrawBar "RLZAMMOB", "RLZAMMOX", Ammo("Clip"), vertical, interpolate(4096), 305, 170;
		DrawBar "RLZAMMOS", "RLZAMMOX", Ammo("Shell"), vertical, interpolate(4096), 309, 170;
		DrawBar "RLZAMMOR", "RLZAMMOX", Ammo("RocketAmmo"), vertical, reverse, interpolate(4096), 305, 184;
		DrawBar "RLZAMMOC", "RLZAMMOX", Ammo("Cell"), vertical, reverse, interpolate(4096), 309, 184;
 
		// Draws the keys in the bottom middle of the HUD
		DrawSwitchableImage keyslot 2 && 5, "nullimage", "STKEYS0", "STKEYS3", "STKEYS6", 268, 144;
		DrawSwitchableImage keyslot 3 && 6, "nullimage", "STKEYS1", "STKEYS4", "STKEYS7", 280, 144;
		DrawSwitchableImage keyslot 1 && 4, "nullimage", "STKEYS2", "STKEYS5", "STKEYS8", 292, 144;
		
						//============= Draw Cooldown Bars =============
		DrawImage "RLZSLIT1", 247, 160, center; // Flashing recharge light
		InInventory PowerRL5Cooldown
		{ 
			DrawBar "RLZSBAR1", "RLZSBAR2", PowerupTime("RL5CooldownGiver"), vertical, reverse, interpolate(1), 246, 165;
		}
		InInventory PowerRL10Cooldown
		{ 
			DrawBar "RLZSBAR1", "RLZSBAR2", PowerupTime("RL10CooldownGiver"), vertical, reverse, interpolate(1), 246, 165;
		}
		InInventory PowerRL15Cooldown
		{ 
			DrawBar "RLZSBAR1", "RLZSBAR2", PowerupTime("RL15CooldownGiver"), vertical, reverse, interpolate(1), 246, 165;
		}
		InInventory PowerRL20Cooldown
		{ 
			DrawBar "RLZSBAR1", "RLZSBAR2", PowerupTime("RL20CooldownGiver"), vertical, reverse, interpolate(1), 246, 165;
		}
		InInventory PowerRL30Cooldown
		{ 
			DrawBar "RLZSBAR1", "RLZSBAR2", PowerupTime("RL30CooldownGiver"), vertical, reverse, interpolate(1), 246, 165;
		}
		InInventory PowerRL45Cooldown
		{ 
			DrawBar "RLZSBAR1", "RLZSBAR2", PowerupTime("RL45CooldownGiver"), vertical, reverse, interpolate(1), 246, 165;
		}
		InInventory PowerRL60Cooldown
		{ 
			DrawBar "RLZSBAR1", "RLZSBAR2", PowerupTime("RL60CooldownGiver"), vertical, reverse, interpolate(1), 246, 165;
		}
		InInventory PowerRL90Cooldown
		{ 
			DrawBar "RLZSBAR1", "RLZSBAR2", PowerupTime("RL90CooldownGiver"), vertical, reverse, interpolate(1), 246, 165;
		}
		InInventory PowerRL120Cooldown
		{ 
			DrawBar "RLZSBAR1", "RLZSBAR2", PowerupTime("RL120CooldownGiver"), vertical, reverse, interpolate(1), 246, 165;
		}
		InInventory PowerRL120KateCooldown
		{ 
			DrawBar "RLZSBAR1", "RLZSBAR2", PowerupTime("RL120KateCooldownGiver"), vertical, reverse, interpolate(1), 246, 165;
		}
		InInventory PowerRL180Cooldown
		{ 
			DrawBar "RLZSBAR1", "RLZSBAR2", PowerupTime("RL180CooldownGiver"), vertical, reverse, interpolate(1), 246, 165;
		}
		InInventory PowerRL300Cooldown
		{ 
			DrawBar "RLZSBAR1", "RLZSBAR2", PowerupTime("RL300CooldownGiver"), vertical, reverse, interpolate(1), 246, 165;
		}
		InInventory PowerRL600Cooldown
		{ 
			DrawBar "RLZSBAR1", "RLZSBAR2", PowerupTime("RL600CooldownGiver"), vertical, reverse, interpolate(1), 246, 165;
		}
		InInventory PowerRL1800Cooldown
		{ 
			DrawBar "RLZSBAR1", "RLZSBAR2", PowerupTime("RL1800CooldownGiver"), vertical, reverse, interpolate(1), 246, 165;
		}
		InInventory PowerRLSentryCooldown
		{ 
			DrawBar "RLZSBAR1", "RLZSBAR2", PowerupTime("RLSentryCooldownGiver"), vertical, reverse, interpolate(1), 246, 165;
		}
		
		// ALL ABOARD THE CRIMETRAIN TO THE COURT OF HIS ROYAL MAJESTY
		InInventory PowerRL5Cooldown || PowerRL10Cooldown {}
		Else InInventory PowerRL15Cooldown || PowerRL20Cooldown {}
		Else InInventory PowerRL30Cooldown || PowerRL45Cooldown {}
		Else InInventory PowerRL60Cooldown || PowerRL90Cooldown {}
		Else InInventory PowerRL120Cooldown || PowerRL120KateCooldown {}
		Else InInventory PowerRL180Cooldown || PowerRL300Cooldown {}
		Else InInventory PowerRL600Cooldown || PowerRL1800Cooldown {}
		Else InInventory PowerRLSentryCooldown {}
		Else
		{
			// KING CRIMERA HAXFUCKER IS PLEASED
			DrawImage "RLZSBARF", 247, 177, center; // Armor Special is lit up and ready
		}
		
	}

//------------------------------------------------------------------------------
 
    InInventory RLSpecialHUD // Check for special gameplay modes
    {
		InInventory RLImBackMode // Duke Nukem II Mode
		{
			DrawImage "D2HUD", 160, 100, center;
			// Draw the health and armor bars
			DrawBar "D2HPBAR", "D2BARX", health, horizontal, interpolate(4096), 208, 176;
			InInventory not RLIndestructibleArmorWorn
			{
				InInventory BasicArmor, 1 // Below 1% it disappears, because of an annoying visual glitch
					InInventory RL100ArmorWorn // Maximum durability of 100
						DrawBar "D2APBAR", "D2BARX", armor(100), horizontal, interpolate(4096), 208, 185;
					InInventory RL100RegenArmorWorn // Maximum durability of 100, regenerates
						DrawBar "D2APBAR", "D2BARX", armor(100), horizontal, interpolate(4096), 208, 185;
					InInventory RL150ArmorWorn // Maximum durability of 150
						DrawBar "D2APBAR", "D2BARX", armor(150), horizontal, interpolate(4096), 208, 185;
					InInventory RL200ArmorWorn // Maximum durability of 200
						DrawBar "D2APBAR", "D2BARX", armor(200), horizontal, interpolate(4096), 208, 185;
			}
		
			// Indestructible armor durability is shown as an infinity symbol
			InInventory RLIndestructibleArmorWorn
			{
				DrawImage "D2APBAR", 208, 185;   // Dummy bar
			}
			DrawNumber 7, DUKE2FONT, untranslated, "RLDuke2Score", alignment (right), 144, 176; // Score
			
			InInventory not RLDuke2RifleLaserAmmo
			{
				InInventory not RLDuke2RifleRocketAmmo
				{
					InInventory not RLDuke2RifleFlamethrowerAmmo
					{
						DrawImage "D2SHOT1", 152, 176;   // Basic
						DrawBar "D2AMMO", "D2AMMOX", RLDuke2Rifle, vertical, interpolate(4096), 194, 176;
					}
				}
			}
			InInventory RLDuke2RifleLaserAmmo
			{
				DrawImage "D2SHOT2", 152, 176;   // Laser
				DrawBar "D2AMMO", "D2AMMOX", RLDuke2RifleLaserAmmo, vertical, interpolate(4096), 194, 176;
			}
			InInventory RLDuke2RifleRocketAmmo
			{
				DrawImage "D2SHOT3", 152, 176;   // Rocket
				DrawBar "D2AMMO", "D2AMMOX", RLDuke2RifleRocketAmmo, vertical, interpolate(4096), 194, 176;
			}
			InInventory RLDuke2RifleFlamethrowerAmmo
			{
				DrawImage "D2SHOT4", 152, 176;   // Flamethrower
				DrawBar "D2AMMO", "D2AMMOX", RLDuke2RifleFlamethrowerAmmo, vertical, interpolate(4096), 194, 176;
			}
			
			InInventory RedCard
				DrawImage "D2KCA0", 16, 31;   // Red Card
			InInventory BlueCard
				DrawImage "D2KCB0", 32, 31;   // Blue Card
			InInventory YellowCard
				DrawImage "D2KCC0", 16, 47;   // Yellow Card
			InInventory RedSkull
				DrawImage "D2KCD0", 32, 47;   // Red Key
			InInventory BlueSkull
				DrawImage "D2KCE0", 16, 63;   // Blue Key
			InInventory YellowSkull
				DrawImage "D2KCF0", 32, 63;   // Yellow Key
				
			InInventory PowerRLDuke2RifleRapidFire
				DrawImage "DN2PH0", 287, 32;   // Rapid Fire
			InInventory PowerRLDuke2CloakingDevice
				DrawImage "D2CLE0", 297, 31;   // Cloaking Device
		}
	}
}
//==============================================================================
//                      INVENTORY BAR ACTIVE
//==============================================================================
 
statusbar inventory // The swapped in inventory bar section
{
//    DrawImage "RLZHUD6", 156, 184, center;
    DrawInventoryBar Doom, 5, DRLAINVFONT, 79, 170, 97, 190, PDAGreen;
/*    DrawImage "RLZHUD3", 160, 100, center; // Blank the ammo display
 
//============= Draw Weapon Counter =============
    InInventory RLWeaponLimit, 1
    {
        Drawimage "GIDEICO1", 267, 177, center;
        DrawNumber 1, CONFONT, Gray, RLWeaponLimit, alignment (center), 267, 174, 0, Gray, 0, White, 6;
    }
   
//============= Draw Modpack Counter =============
    InInventory RLScavengerPerk
    {
        InInventory RLScavengerModLimit, 1
        {
            Drawimage "GIDEICO2", 267, 192, center;
            DrawNumber 1, CONFONT, Gray, RLScavengerModLimit, alignment (center), 267, 189, 0, Gray, 0, White, 8;
        }
    }
    InInventory not RLScavengerPerk
    {
        InInventory RLModLimit, 1
        {
            Drawimage "GIDEICO2", 267, 192, center;
            DrawNumber 1, CONFONT, Gray, RLModLimit, alignment (center), 267, 189, 0, Gray, 0, White, 4;   
        }
    }
       
//============= Draw Armor Counter =============
    InInventory RLArmorInInventory, 1
    {
        Drawimage "GIDEICO3", 286, 177, center;
        InInventory RLBackpack
            DrawNumber 1, CONFONT, Gray, RLArmorInInventory, alignment (center), 285, 174, 0, Gray, 0, White, 4;   
 
        InInventory not RLBackpack
            DrawNumber 1, CONFONT, Gray, RLArmorInInventory, alignment (center), 285, 174, 0, Gray, 0, White, 2;
 
    }
   
//============= Draw Skull Counter =============
    InInventory RLSkullLimit, 1
    {
        Drawimage "GIDEICO4", 285, 192, center;
        InInventory RLBackpack
        {
            InInventory RLSkullLimit, 10
            {  
                DrawNumber 2, CONFONT, Gray, RLSkullLimit, alignment (center), 285, 189, 0, Gray, 0, White, 12;
            }
            InInventory not RLSkullLimit, 10
            {  
                DrawNumber 1, CONFONT, Gray, RLSkullLimit, alignment (center), 285, 189, 0, Gray, 0, White, 12;    
            }
        }
        InInventory not RLBackpack
        {
            DrawNumber 1, CONFONT, Gray, RLSkullLimit, alignment (center), 285, 189, 0, Gray, 0, White, 6; 
        }
    }
   
//============= Draw Phase Device Counter =============
    InInventory RLPhaseDeviceLimit, 1
    {
        Drawimage "GIDEICO5", 303, 177, center;
        InInventory RLBackpack
            DrawNumber 1, CONFONT, Gray, RLPhaseDeviceLimit, alignment (center), 303, 174, 0, Gray, 0, White, 8;
 
        InInventory not RLBackpack
            DrawNumber 1, CONFONT, Gray, RLPhaseDeviceLimit, alignment (center), 303, 174, 0, Gray, 0, White, 4;
 
    }
   
//============= Draw Backpack Type =============
    InInventory RLBackpack, 1
    {
        InInventory not RLCombatBackpackToken, 1
        {
            InInventory not RLSpecialistBackpackToken, 1
            {
                InInventory not RLScroungerBackpackToken, 1
                {
                    InInventory not RLDedicatedBackpackToken, 1
                    {
                        InInventory not RLNuclearBackpackToken, 1
                        {
                            Drawimage "GPK0ICO2", 303, 192, center; // ahahahahaha fuck everything why can it not compare more than two things
                        }
                    }
                }
            }
        }
    }
    InInventory RLCombatBackpackToken, 1
        Drawimage "GPK1ICO2", 303, 192, center;
 
    InInventory RLSpecialistBackpackToken, 1
        Drawimage "GPK2ICO2", 303, 192, center;
 
    InInventory RLScroungerBackpackToken, 1
        Drawimage "GPK3ICO2", 303, 192, center;
 
    InInventory RLDedicatedBackpackToken, 1
        Drawimage "GPK4ICO2", 303, 192, center;
 
    InInventory RLNuclearBackpackToken, 1
        Drawimage "GPK5ICO2", 303, 192, center;
 */
}