
class HDSkinsProject extends Mutator config(HDSkinsProject);

var bool Initialized;
var bool RunOnceDone;

var config bool ReplaceMonsters, ReplaceFlockPawns, ReplaceDecorations, ReplaceWeapons, ReplaceAmmo, ReplacePickups, 
						ReplaceProjectile, ReplaceFemaleCarcass, ReplaceFragments, ReplaceRTNP, ReplaceGibs, ForceRelevance;

var config int CheckSpeed;


function PreBeginPlay()
{
	//Prevents multiple instances of the mod
   if (Initialized)
      return;

	Initialized = True;
	log("HD Skins Mutator active");

	Super.PreBeginPlay();
}

function PostBeginPlay ()
{
	//This forces the models that are naturally bStatic to replicate their textural changes
	if (ForceRelevance)
		SetUpRelevance();

	//Splits checks into two classes- RunOnce checks only at map startup then
	//never looks again. Checks in timer go on the entire game.
	//RunOnce() was added to timer to allow the level to load correctly, some
	//meshes were being skipped when the level rendered too quickly. A second pass
	//when timer starts makes sure nothing was missed.
  	RunOnce();

  	SetTimer(CheckSpeed,True);

  	//Stops RunOnce from activating after a first time
  	RunOnceDone = False;
}

//Need to force some relevance so textures are seen properly on bStatic=True actors
function SetUpRelevance()
{
	local Decoration DC;
	
	foreach AllActors(Class'Decoration',DC)
  	{
  		if ((DC.IsA('Tree')) 	|| (DC.IsA('Knife')) 	|| (DC.IsA('Plant1')) 	|| (DC.IsA('Plant2')) 	||
		 	(DC.IsA('Plant3')) 	|| (DC.IsA('Plant4')) 	|| (DC.IsA('Plant5')) 	|| (DC.IsA('Plant6')) 	||
		 	(DC.IsA('Plant7')) 	|| (DC.IsA('Boulder')) 	|| (DC.IsA('Sign1')) 	|| (DC.IsA('Flag2')) 	||
		 	(DC.IsA('Flag3')) 	|| (DC.IsA('Lantern')) 	|| (DC.IsA('Lantern2')) || (DC.IsA('Lamp1')) 	||
		 	(DC.IsA('Sconce')) 	|| (DC.IsA('Candle')) 	|| (DC.IsA('Candle2')) 	|| (DC.IsA('Robot')))
  				DC.bAlwaysRelevant = True;
  	}
}

function RunOnce()
{
	local Decoration DE;
	local FemaleBody FE;
	local BloodPool BP;

	//Do a single pass check for gib meshes used as decorations regardless of whether
	//gib checking is enabled
	CheckGibMeshes();
	//Do the same thing for any stray fragment classes used as decoration
	CheckFragmentMeshes();

//Blood Spot
	foreach AllActors(Class'BloodPool',BP)
  	{
  		if (BP.bCorona == True)
  			return;

      if(BP.Mesh != None)
     	{
   		if( BP.Mesh == LodMesh'UnrealShare.Bspot' )
   		{
         	if( BP.MultiSkins[1] == None )
            	BP.MultiSkins[1] = Texture'HDSkins2Online.HDT_BPool';
   		}
   	}
   }

// Female carcass fixes
	if (ReplaceFemaleCarcass)
	{
		foreach AllActors(Class'FemaleBody',FE)
  		{
  			if (FE.bCorona == True)
  				return;

      	if(FE.Mesh != None)
     		{
				//Female One Body
      		if( FE.Mesh == LodMesh'UnrealShare.Fem1body' )
      		{
					//This fixes the longstanding incorrect skin bug in Unreal
         		if( FE.Skin == None )
            		FE.Skin = Texture'HDSkins2Online.HDgina';
					//Just in case someone set the correct Gina skin in a map
         		else if( FE.Skin == Texture'Gina' )
            		FE.Skin = Texture'HDSkins2Online.HDgina';
            	FE.bCorona = True;
   			}

				//Female Two Body (No high-res skin yet; merely fixes bug)
      		if( FE.Mesh == LodMesh'UnrealShare.Fem2Body' )
      		{
					//This fixes the longstanding incorrect skin bug in Unreal
         		if( FE.Skin == None )
            		FE.Skin = Texture'UnrealShare.Skins.Sonya';
            	FE.bCorona = True;
   			}
   		}
   	}
   }

// Decorations
	if (ReplaceDecorations)
	{
		foreach AllActors(Class'Decoration',DE)
  		{
  			if (DE.bCorona == True)
  				return;

      	if(DE.Mesh != None)
     		{
     			//Crucified Nali
      		if( DE.Mesh == LodMesh'UnrealShare.CrossNali' )
      		{
         		if( DE.Skin == None )
            		DE.Skin = Texture'HDSkins2Online.HDJNali1';
         		else if( DE.Skin == Texture'JNali2' )
            		DE.Skin = Texture'HDSkins2Online.HDJNali2';
             	DE.bCorona = True;
   			}

				//Tree1
      		if( DE.Mesh == LodMesh'UnrealShare.Tree1M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJTree11';
            	DE.bCorona = True;
   			}

				//Tree2
      		if( DE.Mesh == LodMesh'UnrealShare.Tree2M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJTree21';
            	DE.bCorona = True;
   			}

				//Tree3
      		if( DE.Mesh == LodMesh'UnrealShare.Tree3M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJTree31';
            	DE.bCorona = True;
   			}

				//Tree4
      		if( DE.Mesh == LodMesh'UnrealShare.Tree4M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJTree41';
            	DE.bCorona = True;
   			}

				//Tree5
      		if( DE.Mesh == LodMesh'UnrealShare.Tree5M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJTree51';
            	DE.bCorona = True;
   			}

				//Tree6
      		if( DE.Mesh == LodMesh'UnrealShare.Tree6M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJTree61';
            	DE.bCorona = True;
   			}

				//Tree7
      		if( DE.Mesh == LodMesh'UnrealShare.Tree7M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJTree71';
            	DE.bCorona = True;
   			}

				//Tree8
      		if( DE.Mesh == LodMesh'UnrealShare.Tree8M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJTree81';
            	DE.bCorona = True;
   			}

				//Tree9
      		if( DE.Mesh == LodMesh'UnrealShare.Tree9M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJTree91';
            	DE.bCorona = True;
   			}

				//Tree10
      		if( DE.Mesh == LodMesh'UnrealShare.Tree10M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJTree101';
            	DE.bCorona = True;
   			}

				//Tree11
      		if( DE.Mesh == LodMesh'UnrealShare.Tree11M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJTree111';
            	DE.bCorona = True;
   			}

				//Tree12
      		if( DE.Mesh == LodMesh'UnrealShare.Tree12M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJTree121';
            	DE.bCorona = True;
   			}

				//Plant1
      		if( DE.Mesh == LodMesh'UnrealShare.Plant1M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJPlant11';
            	DE.bCorona = True;
   			}

				//Plant2
      		if( DE.Mesh == LodMesh'UnrealShare.Plant2M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJPlant21';
            	DE.bCorona = True;
   			}

				//Plant3
      		if( DE.Mesh == LodMesh'UnrealShare.Plant3M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJPlant31';
            	DE.bCorona = True;
   			}

				//Plant4
      		if( DE.Mesh == LodMesh'UnrealShare.Plant4M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJPlant41';
            	DE.bCorona = True;
   			}

				//Plant5
      		if( DE.Mesh == LodMesh'UnrealShare.Plant5M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJPlant41';
            	DE.bCorona = True;
   			}

				//Plant6
      		if( DE.Mesh == LodMesh'UnrealShare.Plant6M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJPlant61';
            	DE.bCorona = True;
   			}

				//Plant7
      		if( DE.Mesh == LodMesh'UnrealShare.Plant7M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJPlant61';
            	DE.bCorona = True;
   			}

				//SeaWeed
      		if( DE.Mesh == Mesh'UnrealShare.SeaWeedM' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJSeaWeed1';
            	DE.bCorona = True;
   			}

				//Wooden Box
      		if( DE.Mesh == LodMesh'UnrealShare.WoodenBoxM' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJWoodenBox1';
            	DE.bCorona = True;
   			}

				//Steel Box
      		if( DE.Mesh == LodMesh'UnrealShare.SteelBoxM' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJSteelBox1';
            	DE.bCorona = True;
  	 			}

				//Barrel
      		if( DE.Mesh == LodMesh'UnrealShare.BarrelM' )
         	{
         		if( DE.Skin == None )
            		DE.Skin = Texture'HDSkins2Online.HDJBarrel1';
         		if( DE.Skin == Texture'JBarrel1' )
            		DE.Skin = Texture'HDSkins2Online.HDJBarrel1';
            	DE.bCorona = True;
   			}

				//Steel Barrel
      		if( DE.Mesh == LodMesh'UnrealShare.steelbarrelM' )
         	{
         		if( DE.Skin == None )
            		DE.Skin = Texture'HDSkins2Online.HDJSteelBarrel1';
         		else if( DE.Skin == Texture'Jsteelbarrel2' )
            		DE.Skin = Texture'HDSkins2Online.HDJSteelBarrel2';
            	DE.bCorona = True;
   			}

				//Sludge Barrel
      		if( DE.Mesh == LodMesh'UnrealI.sbarrel' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJsbarrel1';
            	DE.bCorona = True;
   			}

				//Book
      		if( DE.Mesh == LodMesh'UnrealShare.BookM' )
         	{
         		if( DE.Skin == None )
            		DE.Skin = Texture'HDSkins2Online.HDJBook1';
         		else if( DE.Skin == Texture'JBook2' )
            		DE.Skin = Texture'HDSkins2Online.HDJBook2';
         		else if( DE.Skin == Texture'JBook3' )
            		DE.Skin = Texture'HDSkins2Online.HDJBook3';
         		else if( DE.Skin == Texture'JBook4' )
            		DE.Skin = Texture'HDSkins2Online.HDJBook4';
            	DE.bCorona = True;
   			}

				//Boulder
      		if( DE.Mesh == LodMesh'UnrealShare.BoulderM' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJBoulder1';
            	DE.bCorona = True;
   			}
 
   			//Chest
      		if( DE.Mesh == LodMesh'UnrealShare.ChestM' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJChest1';
            	DE.bCorona = True;
   			}

				//Sign
      		if( DE.Mesh == LodMesh'UnrealShare.Sign1M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJSign11';
            	DE.bCorona = True;
   			}

				//Flag 1
      		if( DE.Mesh == LodMesh'UnrealI.Flag1M' )
         	{
         		if( DE.Skin == None )
            		DE.Skin = Texture'HDSkins2Online.HDJFlag11';
         		else if( DE.Skin == Texture'JFlag12' )
            		DE.Skin = Texture'HDSkins2Online.HDJFlag12';
            	DE.bCorona = True;
   			}

				//Flag 2
      		if( DE.Mesh == LodMesh'UnrealI.Flag2M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJFlag21';
            	DE.bCorona = True;
   			}

				//Flag 3
      		if( DE.Mesh == LodMesh'UnrealI.Flag3M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJFlag31';
            	DE.bCorona = True;
   			}

				//Tapestry1
      		if( DE.Mesh == LodMesh'UnrealI.Tap' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJTap1';
            	DE.bCorona = True;
   			}

				//Moon One
      		if( DE.Mesh == Mesh'UnrealI.Moon1' )
         	{
         		if( DE.Skin == None )
            		DE.Skin = Texture'HDSkins2Online.HDJMoon1';
         		if( DE.Skin == Texture'JMoon1' )
            		DE.Skin = Texture'HDSkins2Online.HDJMoon1';
    				//Moon Two
         		else if( DE.Skin == Texture'MoonTwo' )
            		DE.Skin = Texture'HDSkins2Online.HDMoonTwo';
            	DE.bCorona = True;
   			}

				//Moon Three
      		if( DE.Mesh == Mesh'UnrealI.Moon3M' )
         	{
         		if( DE.Skin == None )
            		DE.Skin = Texture'HDSkins2Online.HDJMoon3';
            	DE.bCorona = True;
   			}

				//Monk Statue
      		if( DE.Mesh == LodMesh'UnrealShare.MonkStatueM' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJMonkStatue1';
            	DE.bCorona = True;
   			}

				//Monk Statue
      		if( DE.Mesh == LodMesh'UnrealShare.NaliStatueM' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJNaliStatue1';
            	DE.bCorona = True;
   			}

				//Lantern
      		if( DE.Mesh == LodMesh'UnrealShare.LanternM' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJLantern1';
             	DE.bCorona = True;
   			}

				//Knife (Uses same skin as Lantern for some reason)
      		if( DE.Mesh == Mesh'UnrealShare.KnifeM' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJLantern1';
            	DE.bCorona = True;
   			}

				//Lantern2
      		if( DE.Mesh == LodMesh'UnrealShare.Lantern2M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJLantern1';
             	DE.bCorona = True;
   			}

				//Lamp1
      		if( DE.Mesh == LodMesh'UnrealI.Lamp1M' )
         	{
         		DE.Mesh = LodMesh'HDSkins2Online.Lamp1MHD';
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJLamp11';
            	DE.bCorona = True;
   			}

				//Lamp4
      		if( DE.Mesh == LodMesh'UnrealI.Lamp4M' )
         	{
         		if( DE.MultiSkins[0] == None )
            		DE.MultiSkins[0] = Texture'HDSkins2Online.HDJLamp41';
            	DE.bCorona = True;
   			}

				//Sconce
      		if( DE.Mesh == Mesh'UnrealShare.sconceM' )
         	{
         		if( DE.Skin == None )
            		DE.Skin = Texture'HDSkins2Online.HDJsconce1';
            	DE.bCorona = True;
   			}

				//Table1
      		if( DE.Mesh == LodMesh'UnrealI.Table1' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJTable11';
            	DE.bCorona = True;
   			}

				//Chair
      		if( DE.Mesh == LodMesh'UnrealI.Chair1' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJChair11';
              	DE.bCorona = True;
   			}

				//Pottery0
      		if( DE.Mesh == LodMesh'UnrealShare.Pottery0M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJPottery01';
            	DE.bCorona = True;
   			}

				//Pottery1
      		if( DE.Mesh == LodMesh'UnrealShare.Pottery1M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJPottery11';
            	DE.bCorona = True;
   			}

				//Pottery2
      		if( DE.Mesh == LodMesh'UnrealShare.Pottery2M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJPottery21';
            	DE.bCorona = True;
   			}

				//Vase1
      		if( DE.Mesh == LodMesh'UnrealShare.vaseM' )
         	{
         		DE.Mesh = LodMesh'HDSkins2Online.vaseMHD';
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJVase1';
            	DE.bCorona = True;
   			}

				//Urn
      		if( DE.Mesh == LodMesh'UnrealShare.UrnM' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJUrn1';
            	DE.bCorona = True;
   			}

				//Escape Pod
      		if( DE.Mesh == LodMesh'UnrealI.Escapep' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJEscapep1';
             	DE.bCorona = True;
   			}
	
				//Cryopod
      		if( DE.Mesh == LodMesh'UnrealI.CryopodM' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJCryopod1';
            	DE.bCorona = True;
   			}

				//Fan
      		if( DE.Mesh == LodMesh'UnrealShare.Fan2M' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJFan21';
            	DE.bCorona = True;
   			}
	
				//Dice
      		if( DE.Mesh == Mesh'UnrealI.DiceM' )
         	{
         		if( DE.Skin == None )
            		DE.Skin = Texture'HDSkins2Online.HDJDice1';
            	DE.bCorona = True;
   			}
	
				//Wire
      		if( DE.Mesh == LodMesh'UnrealShare.WireM' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJWire1';
             	DE.bCorona = True;
   			}
	
				//Candle
      		if( DE.Mesh == LodMesh'UnrealShare.CandleM' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJCandle1';
            	DE.bCorona = True;
   			}
	
				//Candle2
      		if( DE.Mesh == LodMesh'UnrealShare.Candl2' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJCandl21';
             	DE.bCorona = True;
   			}
	
				//Robot (This skin is not complete, and is merely a placeholder with a detail texture)
      		if( DE.Mesh == LodMesh'UnrealI.RobotM' )
         	{
         		if( DE.MultiSkins[1] == None )
            		DE.MultiSkins[1] = Texture'HDSkins2Online.HDJRobot1';
             	DE.bCorona = True;
   			}
   			
   			if (ReplaceRTNP)
   			{
   			 	//UMS Dropbox
      			if(DE.Mesh.Name == 'Dropbox')
         		{
         			if( DE.MultiSkins[1] == None )
            			DE.MultiSkins[1] = Texture'HDSkins2Online.HDJdropbox1';
            		DE.bCorona = True;
   				}
   			}
			}
		}
	}
}

function Timer ()
{
	local ScriptedPawn SP;
	local Weapon WE;
	local Ammo AM;
	local Pickup PU;
	local Projectile PR;
	local PlayerPawn P;
	local inventory inv;
	local FlockPawn FP;

	if (!RunOnceDone)
	  	RunOnce();

	if (ReplaceGibs)
		CheckGibMeshes();
		
	if (ReplaceFragments)
		CheckFragmentMeshes();
		
	// Flock Pawns
	if (ReplaceFlockPawns)
	{
		foreach AllActors(Class'FlockPawn',FP)
  		{
  			if (FP.bCorona == True)
  				return;

      	if(FP.Mesh != None)
     		{
				//Nali Rabbit
      		if( FP.Mesh == LodMesh'UnrealShare.Rabbit' )
         	{
         		if( FP.MultiSkins[1] == None )
            		FP.MultiSkins[1] = Texture'HDSkins2Online.HDJRabbit1';
					FP.bCorona = True;
   			}

				//Bird
      		if( FP.Mesh == LodMesh'UnrealShare.Bird' )
         	{
         		if( FP.MultiSkins[1] == None )
            		FP.MultiSkins[1] = Texture'HDSkins2Online.HDJBird11';
					FP.bCorona = True;
   			}
			}
		}
	}
	
	foreach AllActors(class'PlayerPawn', P)
	{
		for ( Inv=P.Inventory; Inv!=None; Inv=Inv.Inventory )
		{
			if(Inv.PlayerViewMesh == mesh'UnrealShare.DPistol')
			{
				Inv.PlayerViewMesh = mesh'DPistolFix';
				Inv.MultiSkins[1] = Texture'HDSkins2Online.HDDPistol1';
			}

			if( Inv.PlayerViewMesh == mesh'UnrealShare.AutoMagL')
         {
         	if( Inv.MultiSkins[1] == None )
            	Inv.MultiSkins[1] = Texture'HDSkins2Online.HDAutoma1';
         }

         if( Inv.PlayerViewMesh == mesh'UnrealShare.ASMDM')
         {
         	if( Inv.MultiSkins[1] == None )
            	Inv.MultiSkins[1] = Texture'HDSkins2Online.HDASMD1';
         }

         //Car is handled in checkreplacement at end of this class, this
         //is just a backup check
			if( Inv.PlayerViewMesh == mesh'CAR1st')
         	Inv.PlayerViewMesh  = mesh'CAR1stHD';

			if( Inv.ThirdPersonMesh == mesh'CAR3rd')
         	Inv.ThirdPersonMesh  = mesh'CAR3rdHD';

			if( Inv.PlayerViewMesh == mesh'UnrealShare.EightB')
         {
         	if( Inv.MultiSkins[1] == None )
            	Inv.MultiSkins[1] = Texture'HDJeightB1';
         }

			if( Inv.PlayerViewMesh == mesh'UnrealI.Flak')
         {
         	if( Inv.MultiSkins[1] == None )
            	Inv.MultiSkins[1] = Texture'HDJFlak1';
         }
			
			if( Inv.PlayerViewMesh == mesh'UnrealI.BRifle')
         {
         	Inv.PlayerViewMesh = mesh'BRifleFix';
         	if( Inv.MultiSkins[1] == None )
            	Inv.MultiSkins[1] = Texture'HDJBRifle1';
         }

			if(Inv.PlayerViewMesh == mesh'UPak.GL1st')
			{
				Inv.PlayerViewMesh = mesh'GLpickupHD';
				if( Inv.MultiSkins[1] == None )
         	{
            	Inv.MultiSkins[1] = texture'HDSkins2Online.HDJGL1st1';
        			Inv.MultiSkins[2] = texture'HDSkins2Online.JGL1st2';
        			Inv.MultiSkins[4] = texture'HDSkins2Online.HDJGL1st4';
        			Inv.MultiSkins[5] = texture'HDSkins2Online.HDJGL3rd1';
        		}
			}

			if( Inv.ThirdPersonMesh == mesh'GL3rd')
         {
         	Inv.ThirdPersonMesh  = mesh'GL3rdHD';
         	if( Inv.MultiSkins[1] == None )
         	{
            	Inv.MultiSkins[1] = texture'HDSkins2Online.HDJGL1st1';
        			Inv.MultiSkins[2] = texture'HDSkins2Online.JGL1st2';
        			Inv.MultiSkins[4] = texture'HDSkins2Online.HDJGL1st4';
        			Inv.MultiSkins[5] = texture'HDSkins2Online.HDJGL3rd1';
        		}
         }

			if( Inv.PlayerViewMesh == mesh'UnrealI.minigunM')
         {
         	if( Inv.MultiSkins[1] == None )
            	Inv.MultiSkins[1] = Texture'HDSkins2Online.HDminigun1';
         }
         
         if( Inv.PlayerViewMesh == mesh'UnrealI.Razor')
         {
         	if( Inv.MultiSkins[1] == None )
            	Inv.MultiSkins[1] = Texture'HDSkins2Online.HDJRazor1';
         }

         if( Inv.PlayerViewMesh == mesh'UnrealI.RifleM')
         {
         	if( Inv.MultiSkins[1] == None )
            	Inv.MultiSkins[1] = Texture'HDSkins2Online.HDJRifle1';
         }

 			if( Inv.PlayerViewMesh == mesh'UPak.RL1st')
         {
				Inv.PlayerViewMesh = mesh'RL1stHD';
				if( Inv.MultiSkins[1] == None )
				{
				   Inv.MultiSkins[1] = texture'HDSkins2Online.HDJRL1st1';
        			Inv.MultiSkins[2] = texture'HDSkins2Online.HDJRL1st2';
        			Inv.MultiSkins[3] = texture'HDSkins2Online.HDJRL1st3';
        			Inv.MultiSkins[4] = texture'HDSkins2Online.HDJRL1st1';
        			Inv.MultiSkins[5] = texture'HDSkins2Online.HDJRL1st2';
        			Inv.MultiSkins[6] = texture'HDSkins2Online.JRL1st4';
        		}
        	}

			if( Inv.ThirdPersonMesh == mesh'UPak.RL3rd')
         {
         	Inv.ThirdPersonMesh  = mesh'RL3rdHD';
				Inv.MultiSkins[1] = texture'HDSkins2Online.HDJRL1st1';
        		Inv.MultiSkins[2] = texture'HDSkins2Online.HDJRL1st2';
        		Inv.MultiSkins[3] = texture'HDSkins2Online.HDJRL1st3';
        		Inv.MultiSkins[4] = texture'HDSkins2Online.HDJRL1st1';
        		Inv.MultiSkins[5] = texture'HDSkins2Online.HDJRL1st2';
        		Inv.MultiSkins[6] = texture'HDSkins2Online.JRL1st4';

         }

 			if( Inv.PlayerViewMesh == mesh'UnrealShare.StingerM')
         {
				if( Inv.MultiSkins[1] == None )
				{
        			Inv.MultiSkins[0] = texture'UnrealShare.Effect18.FireEffect18';
        			Inv.MultiSkins[1] = texture'HDSkins2Online.HDSting1';
        			Inv.MultiSkins[2] = texture'HDSkins2Online.HDJSting2';
        		}
        	}

			if( Inv.ThirdPersonMesh == mesh'UnrealShare.Stinger3rd')
         {
         	Inv.ThirdPersonMesh  = mesh'Stinger3rdFix';
        		Inv.MultiSkins[2] = texture'HDSkins2Online.HDJSting2';
         }
		}
	}

//Projectile, Skips the corona setting since lifetime is short by nature
	if (ReplaceProjectile)
	{
		foreach AllActors(Class'Projectile',PR)
		{
			if(PR.Mesh != None)
			{
				//Flak Shell Projectile
      		if( PR.Mesh == LodMesh'UnrealI.FlakSh' )
         	{
         		if( PR.MultiSkins[1] == None )
            		PR.MultiSkins[1] = Texture'HDSkins2Online.HDJFlakShel1';
   			}

				//Rocket Projectile
      		if( PR.Mesh == LodMesh'UnrealShare.RocketM' )
         	{
         		if( PR.MultiSkins[1] == None )
            		PR.MultiSkins[1] = Texture'HDSkins2Online.HDJRocket1';
   			}

				//Grenade Projectile
      		if( PR.Mesh == LodMesh'UnrealShare.GrenadeM' )
         	{
         		if( PR.MultiSkins[1] == None )
            		PR.MultiSkins[1] = Texture'HDSkins2Online.HDJRocket1';
   			}

				//Razor Jack Projectile
      		if( PR.Mesh == LodMesh'UnrealI.RazorB' )
         	{
         		if( PR.MultiSkins[1] == None )
            		PR.MultiSkins[1] = Texture'HDSkins2Online.HDJRazor1';
   			}

				//Stinger Tarydium Projectile
      		if( PR.Mesh == LodMesh'UnrealShare.TarydiumProjectile' )
         	{
         		if( PR.MultiSkins[4] == None )
            		PR.MultiSkins[4] = Texture'HDSkins2Online.HDJShells1';
   			}

				//Bio Gel
      		if( PR.Mesh == LodMesh'UnrealShare.BioRGel' )
         	{
         		if( PR.MultiSkins[1] == None )
            		PR.MultiSkins[1] = Texture'HDSkins2Online.HDJFlare';
   			}

				//Arrow
      		if( PR.Mesh == LodMesh'UnrealShare.ArrowM' )
         	{
         		if( PR.MultiSkins[1] == None )
            		PR.MultiSkins[1] = Texture'HDSkins2Online.HDJArrow1';
   			}

				//Brute & Merc Rockets
      		if( PR.Mesh == LodMesh'UnrealShare.srocket' )
         	{
         		if( PR.MultiSkins[1] == None )
            		PR.MultiSkins[1] = Texture'HDSkins2Online.HDJTeace1';
   			}

				//Warlord Rocket
      		if( PR.Mesh == LodMesh'UnrealI.perock' )
         	{
         		if( PR.MultiSkins[1] == None )
            		PR.MultiSkins[1] = Texture'HDSkins2Online.HDJPeace1';
   			}

				//Ejecting Shell
      		if( PR.Mesh == LodMesh'UnrealShare.Shell' )
         	{
         		if( PR.MultiSkins[1] == None )
            		PR.MultiSkins[1] = Texture'HDSkins2Online.HDAutom1';
   			}

				//RTNP Grenade
      		if(PR.Mesh.Name == 'Grenade')
         	{
         		if( PR.MultiSkins[1] == None )
            		PR.MultiSkins[1] = Texture'HDSkins2Online.HDJgrenade1';
 	 				else if( PR.MultiSkins[1] == Texture(DynamicLoadObject("UPak.JGrenade2",Class'Texture')))
            		PR.MultiSkins[1] = Texture'HDSkins2Online.HDJgrenade2';
   			}

				//RTNP Seeking Rocket
      		if(PR.Mesh.Name == 'RocketL')
         	{
         		if( PR.MultiSkins[1] == None )
            		PR.MultiSkins[1] = Texture'HDSkins2Online.HDJRocketL1';
   			}

   			//TBoulder (thrown by Titans)
   			if( PR.Mesh == LodMesh'UnrealI.TBoulder' )
         	{
         		if( PR.MultiSkins[1] == None )
            		PR.MultiSkins[1] = Texture'HDSkins2Online.HDJBoulder1';
   			}
   			
   			if (ReplaceFragments)
   			{
					//Wooden Fragments
      			if( PR.Mesh == LodMesh'UnrealShare.Wfrag1' )
         		{
         			if( PR.MultiSkins[0] == None )
            			PR.MultiSkins[0] = Texture'HDSkins2Online.HDJWoodenBox1';
   				}
      			if( PR.Mesh == LodMesh'UnrealShare.Wfrag2' )
         		{
         			if( PR.MultiSkins[0] == None )
            			PR.MultiSkins[0] = Texture'HDSkins2Online.HDJWoodenBox1';
   				}
      			if( PR.Mesh == LodMesh'UnrealShare.Wfrag3' )
         		{
         			if( PR.MultiSkins[0] == None )
            			PR.MultiSkins[0] = Texture'HDSkins2Online.HDJWoodenBox1';
   				}
      			if( PR.Mesh == LodMesh'UnrealShare.Wfrag4' )
         		{
         			if( PR.MultiSkins[0] == None )
            			PR.MultiSkins[0] = Texture'HDSkins2Online.HDJWoodenBox1';
   				}
      			if( PR.Mesh == LodMesh'UnrealShare.Wfrag5' )
         		{
         			if( PR.MultiSkins[0] == None )
            			PR.MultiSkins[0] = Texture'HDSkins2Online.HDJWoodenBox1';
   				}
      			if( PR.Mesh == LodMesh'UnrealShare.Wfrag6' )
         		{
         			if( PR.MultiSkins[0] == None )
            			PR.MultiSkins[0] = Texture'HDSkins2Online.HDJWoodenBox1';
   				}
      			if( PR.Mesh == LodMesh'UnrealShare.Wfrag7' )
         		{
         			if( PR.MultiSkins[0] == None )
            			PR.MultiSkins[0] = Texture'HDSkins2Online.HDJWoodenBox1';
   				}
      			if( PR.Mesh == LodMesh'UnrealShare.Wfrag8' )
         		{
         			if( PR.MultiSkins[0] == None )
            			PR.MultiSkins[0] = Texture'HDSkins2Online.HDJWoodenBox1';
   				}
      			if( PR.Mesh == LodMesh'UnrealShare.Wfrag9' )
         		{
         			if( PR.MultiSkins[0] == None )
            			PR.MultiSkins[0] = Texture'HDSkins2Online.HDJWoodenBox1';
  					}
  				}
			}
		}
	}

//Pickups
	if (ReplacePickups)
	{
		foreach AllActors(Class'Pickup',PU)
		{
  			if (PU.bCorona == True)
  				return;

			if(PU.Mesh != None)
			{
				//Amplifier
      		if( PU.Mesh == LodMesh'UnrealShare.AmplifierM' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDJAmplifier1';
					PU.bCorona = True;
   			}
				//Flare
      		if( PU.Mesh == LodMesh'UnrealShare.FlareM' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDJMisc1';
					PU.bCorona = True;
   			}
				//Flashlight
      		if( PU.Mesh == LodMesh'UnrealShare.Flashl' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDJFlashl1';
					PU.bCorona = True;
   			}
				//Bandage
      		if( PU.Mesh == LodMesh'UnrealShare.bandage' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDJband1';
 					PU.bCorona = True;
   			}
				//Health
      		if( PU.Mesh == LodMesh'UnrealShare.HealthM' )
         	{
         		PU.Mesh = LodMesh'HDSkins2Online.HealthMHD';
         		if(  PU.Skin == None )
             		PU.Skin = Texture'HDSkins2Online.HDJHealth1';
					PU.bCorona = True;
   			}
				//Super Health
      		if( PU.Mesh == LodMesh'UnrealShare.SuperHealthMesh' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDJSHealth1';
					PU.bCorona = True;
   			}
				//Nali Fruit
      		if( PU.Mesh == LodMesh'UnrealShare.NaliFruitMesh' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDJNaliFruit1';
					PU.bCorona = True;
   			}
				//Seed
      		if( PU.Mesh == LodMesh'UnrealI.Seed' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDJSeed1';
					PU.bCorona = True;
   			}
				//Shield Belt
      		if( PU.Mesh == LodMesh'UnrealShare.ShieldBeltMesh' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDABelt1';
					PU.bCorona = True;
   			}
				//Armor
      		if( PU.Mesh == LodMesh'UnrealShare.ArmorM' )
         	{
         		if(  PU.MultiSkins[7] == None )
             		PU.MultiSkins[7] = Texture'HDSkins2Online.HDJArmor1';
					PU.bCorona = True;
   			}
				//Invisibility
      		if( PU.Mesh == LodMesh'UnrealI.InvisibilityMesh' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDJInvisibility1';
					PU.bCorona = True;
   			}
				//Asbestos Suit
      		if( PU.Mesh == LodMesh'UnrealShare.Suit' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDASuit1';
					PU.bCorona = True;
   			}
				//Toxin Suit
      		if( PU.Mesh == LodMesh'UnrealI.ToxSuit' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDAToxSuit1';
					PU.bCorona = True;
   			}
				//Search Light
      		if( PU.Mesh == LodMesh'UnrealI.BigFlash' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDJBigFlash1';
					PU.bCorona = True;
   			}
				//Universal Translator
      		if( PU.Mesh == LodMesh'UnrealShare.TranslatorMesh' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDJTranslator1';
					PU.bCorona = True;
   			}
				//Force Field
      		if( PU.Mesh == LodMesh'UnrealI.ForceFieldPick' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDaforce1';
					PU.bCorona = True;
   			}
				//Scuba Gear
      		if( PU.Mesh == LodMesh'UnrealShare.Scuba' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDASC1';
					PU.bCorona = True;
   			}
				//Kevlar
      		if( PU.Mesh == LodMesh'UnrealShare.KevSuit' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDAkevSuit1';
					PU.bCorona = True;
   			}
				//Jump Boots
      		if( PU.Mesh == LodMesh'UnrealI.lboot' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDJlBoot1';
					PU.bCorona = True;
   			}
				//Weapon Powerup
      		if( PU.Mesh == Mesh'UnrealShare.WeaponPowerUpMesh' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDaPower1';
					PU.bCorona = True;
   			}
				//Voicebox
      		if( PU.Mesh == Mesh'UnrealShare.VoiceBoxMesh' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDAinv1';
					PU.bCorona = True;
   			}
				//Dampener
      		if( PU.Mesh == Mesh'UnrealI.DampenerM' )
         	{
         		if(  PU.MultiSkins[1] == None )
             		PU.MultiSkins[1] = Texture'HDSkins2Online.HDAinv1';
					PU.bCorona = True;
   			}
			}
		}
	}
	
//Ammo
	if (ReplaceAmmo)
	{
		foreach AllActors(Class'Ammo',AM)
		{
  			if (AM.bCorona == True)
  				return;

			if(AM.Mesh != None)
			{
				//Clip
      		if( AM.Mesh == LodMesh'UnrealShare.ClipM' )
         	{
					AM.Mesh = LodMesh'HDSkinsProject.ClipMHD';
         		if( AM.MultiSkins[2] == None )
            		AM.MultiSkins[2] = Texture'HDSkins2Online.HDJClip1';
					AM.bCorona = True;
   			}

   			//Shells
   			if( AM.Mesh == LodMesh'UnrealShare.ShellsM' )
         	{
					AM.Mesh = LodMesh'HDSkinsProject.ShellsMHD';
         		if( AM.MultiSkins[4] == None )
            		AM.MultiSkins[4] = Texture'HDSkins2Online.HDJShells1';
					AM.bCorona = True;
   			}

				//Stinger Tarydium Ammo
      		if( AM.Mesh == LodMesh'UnrealShare.TarydiumPickup' )
         	{
         		if( AM.MultiSkins[4] == None )
            		AM.MultiSkins[4] = Texture'HDSkins2Online.HDJTaryPick1';
					AM.bCorona = True;
   			}
				//ASMD Core
      		if( AM.Mesh == LodMesh'UnrealShare.ASMDAmmoM' )
         	{
        	 		if( AM.MultiSkins[1] == None )
            		AM.MultiSkins[1] = Texture'HDSkins2Online.HDJAsmdAmmo1';
					AM.bCorona = True;
   			}
				//Rocket Can
      		if( AM.Mesh == LodMesh'UnrealShare.RocketCanMesh' )
         	{
         		if( AM.MultiSkins[1] == None )
            		AM.MultiSkins[1] = Texture'HDSkins2Online.HDJRocketCan1';
					AM.bCorona = True;
   			}
				//Flak Box
      		if( AM.Mesh == LodMesh'UnrealI.flakboxMesh' )
         	{
         		if( AM.MultiSkins[1] == None )
            		AM.MultiSkins[1] = Texture'HDSkins2Online.HDJPickup1';
					AM.bCorona = True;
   			}
				//Flak Shell
      		if( AM.Mesh == LodMesh'UnrealI.FlakShAm' )
         	{
         		if( AM.MultiSkins[1] == None )
            		AM.MultiSkins[1] = Texture'HDSkins2Online.HDJFlakShel1';
					AM.bCorona = True;
   			}
				//RazorJack Ammo
      		if( AM.Mesh == LodMesh'UnrealI.RazorAmmoMesh' )
         	{
         		if( AM.MultiSkins[1] == None )
            		AM.MultiSkins[1] = Texture'HDSkins2Online.HDJPickup21';
					AM.bCorona = True;
   			}
				//GES Sludge Ammo
      		if( AM.Mesh == LodMesh'UnrealI.sludgemesh' )
         	{
         		if( AM.MultiSkins[1] == None )
            		AM.MultiSkins[1] = Texture'HDSkins2Online.HDJPickup1';
					AM.bCorona = True;
   			}
				//Rifle Box
      		if( AM.Mesh == LodMesh'UnrealI.RifleBullets' )
         	{
         		if( AM.MultiSkins[1] == None )
            		AM.MultiSkins[1] = Texture'HDSkins2Online.HDRifleBul1';
					AM.bCorona = True;
   			}
				//Rifle Round
      		if( AM.Mesh == LodMesh'UnrealI.RifleRoundM' )
         	{
         		if( AM.MultiSkins[1] == None )
            		AM.MultiSkins[1] = Texture'HDSkins2Online.HDRifleR1';
					AM.bCorona = True;
   			}
				//Shell Box
      		if( AM.Mesh == LodMesh'UnrealShare.ShellBoxMesh' )
         	{
         		if( AM.MultiSkins[1] == None )
            		AM.MultiSkins[1] = Texture'HDSkins2Online.HDJPickup21';
					AM.bCorona = True;
   			}
   			if (ReplaceRTNP)
   			{
   			  	//RTNP CAR Clip  //ammo
      			if(AM.Mesh.Name == 'CARammo')
         		{
         			if( AM.MultiSkins[1] == None )
            			AM.MultiSkins[1] = Texture'HDSkins2Online.HDJnewcar3';
            		AM.bCorona = True;
   				}

					//RTNP Rocket Launcher Ammo  //ammo
      			if(AM.Mesh.Name == 'RLAmmo')
         		{
         			if( AM.MultiSkins[1] == None )
            			AM.MultiSkins[1] = Texture'HDSkins2Online.HDJRL1st2';
            		AM.bCorona = True;
   				}

					//RTNP Grenade Ammo   //ammo
      			if(AM.Mesh.Name == 'GLAmmo')
         		{
         			if( AM.MultiSkins[1] == None )
            			AM.MultiSkins[1] = Texture'HDSkins2Online.HDJGL3rd1';
            		AM.bCorona = True;
   				}

					//RTNP Fixed Grenade Ammo //ammo
      			if(AM.Mesh.Name == 'FixedGLAmmo')
         		{
         			if( AM.MultiSkins[1] == None )
            			AM.MultiSkins[1] = Texture'HDSkins2Online.HDJGL3rd1';
            		AM.bCorona = True;
   				}
   			}
  			}
		}
	}

//Weapons
	if (ReplaceWeapons)
	{
		foreach AllActors(Class'Weapon',WE)
		{
  			if (WE.bCorona == True)
  				return;

			if(WE.Mesh != None)
			{
				//Dispersion Pistol
				if( WE.Mesh == LodMesh'UnrealShare.DPistolPick' )
				{
					if(WE != none && WE.PlayerViewMesh == mesh'UnrealShare.DPistol')
						WE.PlayerViewMesh = mesh'DPistolFix';

					if( WE.MultiSkins[1] == None )
						WE.MultiSkins[1] = Texture'HDSkins2Online.HDDPistol1';
					WE.bCorona = True;
				}

				//Automag
      		if( WE.Mesh == LodMesh'UnrealShare.AutoMagPickup' )
         	{
         		if( WE.MultiSkins[1] == None )
            		WE.MultiSkins[1] = Texture'HDSkins2Online.HDAutoma1';
					WE.bCorona = True;
   			}

				//Stinger
				if( WE.Mesh == LodMesh'UnrealShare.StingerPickup' )
   			{
      			if(WE.Skin == none && WE.MultiSkins[0] == none &&
        			WE.MultiSkins[1] == none && WE.MultiSkins[2] == none)
      			{
             		if(WE != none)
      				{
         				if(WE.ThirdPersonMesh.Name == 'Stinger3rd')
           					WE.ThirdPersonMesh  = mesh'HDSkinsProject.Stinger3rdFix';
      				}
        				WE.MultiSkins[0] = texture'UnrealShare.Effect18.FireEffect18';
        				WE.MultiSkins[1] = texture'HDSkins2Online.HDSting1';
        				WE.MultiSkins[2] = texture'HDSkins2Online.HDJSting2';
      			}
					WE.bCorona = True;
   			}

				//ASMD
      		if( WE.Mesh == LodMesh'UnrealShare.ASMDPick' )
         	{
         		if( WE.MultiSkins[1] == None )
            		WE.MultiSkins[1] = Texture'HDSkins2Online.HDASMD1';
					WE.bCorona = True;
   			}

				//Eightball
      		if( WE.Mesh == LodMesh'UnrealShare.EightPick' )
         	{
         		if( WE.MultiSkins[1] == None )
            		WE.MultiSkins[1] = Texture'HDSkins2Online.HDJeightB1';
					WE.bCorona = True;
   			}

				//Flak Cannon
      		if( WE.Mesh == LodMesh'UnrealI.FlakPick' )
         	{
         		if( WE.MultiSkins[1] == None )
            		WE.MultiSkins[1] = Texture'HDSkins2Online.HDJFlak1';
					WE.bCorona = True;
   			}

				//RazorJack
      		if( WE.Mesh == LodMesh'UnrealI.RazPick' )
         	{
         		if( WE.MultiSkins[1] == None )
            		WE.MultiSkins[1] = Texture'HDSkins2Online.HDJRazor1';
					WE.bCorona = True;
   			}

				//Rifle
      		if( WE.Mesh == LodMesh'UnrealI.RiPick' )
         	{
         		if( WE.MultiSkins[1] == None )
            		WE.MultiSkins[1] = Texture'HDSkins2Online.HDJRifle1';
					WE.bCorona = True;
   			}

				//Minigun
      		if( WE.Mesh == LodMesh'UnrealI.minipick' )
         	{
         		if( WE.MultiSkins[1] == None )
            		WE.MultiSkins[1] = Texture'HDSkins2Online.HDminigun1';
					WE.bCorona = True;
   			}

				//GES Bio Rifle
				if(WE.Mesh == mesh'UnrealI.BRiflePick')
				{
   				if(WE != none && WE.PlayerViewMesh == mesh'UnrealI.BRifle')
      				WE.PlayerViewMesh = mesh'HDSkinsProject.BRifleFix';

   				if(WE.MultiSkins[1] == none)
      				WE.MultiSkins[1] = texture'HDSkins2Online.HDJBRifle1';
					WE.bCorona = True;
				}
				if (ReplaceRTNP)  //CAR is handled in checkreplacement below
   			{
   				//RTNP Rocket Launcher
   				if(WE.Mesh.Name == 'RLpickup')
   				{
      				if(WE.Skin == none && WE.MultiSkins[1] == none &&
        				WE.MultiSkins[2] == none && WE.MultiSkins[3] == none &&
        				WE.MultiSkins[4] == none && WE.MultiSkins[5] == none &&
        				WE.MultiSkins[6] == none)
      				{
        					WE.Mesh = mesh'HDSkinsProject.RLpickupHD';
       
      					if(WE != none)
      					{
         					if(WE.PickupViewMesh.Name == 'RLpickup')
           						WE.PickupViewMesh  = mesh'HDSkinsProject.RLpickupHD';

         					if(WE.PlayerViewMesh.Name == 'RL1st')
           						WE.PlayerViewMesh  = mesh'HDSkinsProject.RL1stHD';

         					if(WE.ThirdPersonMesh.Name == 'RL3rd')
           						WE.ThirdPersonMesh  = mesh'HDSkinsProject.RL3rdHD';
      					}
       
        					WE.MultiSkins[1] = texture'HDSkins2Online.HDJRL1st1';
        					WE.MultiSkins[2] = texture'HDSkins2Online.HDJRL1st2';
        					WE.MultiSkins[3] = texture'HDSkins2Online.HDJRL1st3';
        					WE.MultiSkins[4] = texture'HDSkins2Online.HDJRL1st1';
        					WE.MultiSkins[5] = texture'HDSkins2Online.HDJRL1st2';
        					WE.MultiSkins[6] = texture'HDSkins2Online.JRL1st4';
      				}
      				WE.bCorona = True;
   				}

   				//RTNP Grenade Launcher 
   				if(WE.Mesh.Name == 'GLpickup')
   				{
      				if(WE.Skin == none && WE.MultiSkins[1] == none &&
        				WE.MultiSkins[2] == none && WE.MultiSkins[4] == none &&
        				WE.MultiSkins[5] == none)
      				{
        					WE.Mesh = mesh'HDSkinsProject.GLpickupHD';
       
      					if(WE != none)
      					{
         					if(WE.PickupViewMesh.Name == 'GLpickup')
           						WE.PickupViewMesh  = mesh'HDSkinsProject.GLpickupHD';

         					if(WE.PlayerViewMesh.Name == 'GL1st')
           						WE.PlayerViewMesh  = mesh'HDSkinsProject.GL1stHD';

         					if(WE.ThirdPersonMesh.Name == 'GL3rd')
           						WE.ThirdPersonMesh  = mesh'HDSkinsProject.GL3rdHD';
      					}

        					WE.MultiSkins[1] = texture'HDSkins2Online.HDJGL1st1';
        					WE.MultiSkins[2] = texture'HDSkins2Online.JGL1st2';
        					WE.MultiSkins[4] = texture'HDSkins2Online.HDJGL1st4';
        					WE.MultiSkins[5] = texture'HDSkins2Online.HDJGL3rd1';
      				}
   				}
   			}
			}
		}
	}

//SCRIPTED PAWN
	if (ReplaceMonsters)
	{
		foreach AllActors(Class'ScriptedPawn',SP)
  		{
  			if (SP.bCorona == True)
  				return;

      	if(SP.Mesh != None)
     		{
 				//Skaarj Warrior
      		if( SP.Mesh == LodMesh'UnrealShare.Skaarjw' )
      		{
         		if( SP.Skin == None )
            		SP.Skin = Texture'HDSkins2Online.HDSkaarjw1';
         		else if( SP.Skin == Texture'SkaarjL' )
            		SP.Skin = Texture'HDSkins2Online.HDSkaarjL';
         		else if( SP.Skin == Texture'Skaarjw2' )
            		SP.Skin = Texture'HDSkins2Online.HDSkaarjw2';
         		else if( SP.Skin == Texture'Skaarjw3' )
            		SP.Skin = Texture'HDSkins2Online.HDSkaarjw3';
         		else if( SP.Skin == Texture'Skaarjw4' )
            		SP.Skin = Texture'HDSkins2Online.HDSkaarjw4';
         		else if( SP.Skin == Texture'Skaarjw5' )
            		SP.Skin = Texture'HDSkins2Online.HDSkaarjw5';
            		
					SP.bCorona = True;
				}

				//Skaarj Trooper
      		if( SP.Mesh == LodMesh'UnrealI.sktrooper' )
         	{
         		if( SP.Skin == None )
            		SP.Skin = Texture'HDSkins2Online.HDsktrooper1';
         		if( SP.Skin == Texture'sktrooper1' )
            		SP.Skin = Texture'HDSkins2Online.HDsktrooper1';
         		else if( SP.Skin == None ) //Replaces pre-placed Carcass skins
            		SP.Skin = Texture'HDSkins2Online.HDsktrooper1';
         		else if( SP.Skin == Texture'sktrooper2' )
            		SP.Skin = Texture'HDSkins2Online.HDsktrooper2';
         		else if( SP.Skin == Texture'sktrooper3' )
            		SP.Skin = Texture'HDSkins2Online.HDsktrooper3';
            		
            	SP.bCorona = True;
   			}
  			
				//Skaarj Warlord
      		if( SP.Mesh == LodMesh'UnrealI.WarlordM' )
         	{
         		if( SP.MultiSkins[0] == None )
            		SP.MultiSkins[0] = Texture'HDSkins2Online.HDJWarlord1';
         		if( SP.MultiSkins[1] == None )
            		SP.MultiSkins[1] = Texture'HDSkins2Online.HDJWarlord1';
            	SP.bCorona = True;
   			}

				//Skaarj Queen
      		if( SP.Mesh == LodMesh'UnrealI.SkQueen' )
         	{
         		if( SP.MultiSkins[1] == None )
            		SP.MultiSkins[1] = Texture'HDSkins2Online.HDJQueen1';
            	SP.bCorona = True;
   			}

				//Pupae
      		if( SP.Mesh == LodMesh'UnrealI.Pupae1' )
         	{
            	SP.Mesh = LodMesh'HDSkinsProject.PupaeFix';
         		if( SP.MultiSkins[0] == None )
            		SP.MultiSkins[0] = Texture'HDSkins2Online.HDJPupae1';
         		if( SP.MultiSkins[1] == None )
            		SP.MultiSkins[1] = Texture'HDSkins2Online.HDJPupae1';
            	SP.bCorona = True;
   			}

				//Gasbag
      		if( SP.Mesh == LodMesh'UnrealI.GasbagM' )
         	{
         		if( SP.MultiSkins[5] == None )
            		SP.MultiSkins[5] = Texture'HDSkins2Online.HDGasbag1';
         		if( SP.MultiSkins[6] == None )
            		SP.MultiSkins[6] = Texture'HDSkins2Online.HDGasbag2';
            	SP.bCorona = True;
   			}

				//Titan
      		if( SP.Mesh == LodMesh'UnrealI.Titan1' )
				{
            	SP.Mesh = LodMesh'HDSkinsProject.TitanX';
         		if( SP.Skin == None )
            		SP.Skin = Texture'HDSkins2Online.HDJTitan1';
         		else if( SP.Skin == Texture'JTitan2' )
            		SP.Skin = Texture'HDSkins2Online.HDJTitan2';
            	SP.bCorona = True;
   			}

				//Brute
      		if( SP.Mesh == LodMesh'UnrealShare.Brute1' )
      		{
         		if( SP.Skin == None )
            		SP.Skin = Texture'HDSkins2Online.HDJBrute1';
         		else if( SP.Skin == Texture'Brute2' )
            		SP.Skin = Texture'HDSkins2Online.HDBrute2';
         		else if( SP.Skin == Texture'Brute3' )
            		SP.Skin = Texture'HDSkins2Online.HDBrute3';
            	SP.bCorona = True;
   			}
 
  				//Krall
      		if( SP.Mesh == LodMesh'UnrealI.KrallM' )
      		{
         		if( SP.Skin == None )
            		SP.Skin = Texture'HDSkins2Online.HDJKrall';
         		else if( SP.Skin == Texture'EKrall' )
            		SP.Skin = Texture'HDSkins2Online.HDEKrall';
            	SP.bCorona = True;
   			}

				//Mercenary
      		if( SP.Mesh == LodMesh'UnrealI.Merc' )
      		{
            	SP.Mesh = LodMesh'HDSkinsProject.MercFix';
         		if( SP.Skin == None )
            		SP.Skin = Texture'HDSkins2Online.HDJMerc1';
         		else if( SP.Skin == Texture'JMerc2' )
            		SP.Skin = Texture'HDSkins2Online.HDJMerc2';
            	SP.bCorona = True;
   			}

				//Devilfish
      		if( SP.Mesh == LodMesh'UnrealShare.fish' )
         	{
         		if( SP.MultiSkins[1] == None )
            		SP.MultiSkins[1] = Texture'HDSkins2Online.HDJFish1';
            	SP.bCorona = True;
   			}

				//Squid
      		if( SP.Mesh == LodMesh'UnrealI.Squid1' )
         	{
         		if( SP.MultiSkins[1] == None )
            		SP.MultiSkins[1] = Texture'HDSkins2Online.HDJSquid1';
            	SP.bCorona = True;
   			}

				//Fly
      		if( SP.Mesh == LodMesh'UnrealShare.FlyM' )
         	{
         		if( SP.MultiSkins[1] == None )
            		SP.MultiSkins[1] = Texture'HDSkins2Online.HDJFly1';
            	SP.bCorona = True;
   			}

				//Manta
      		if( SP.Mesh == LodMesh'UnrealShare.Manta1' )
      		{
         		if( SP.Skin == None )
            		SP.Skin = Texture'HDSkins2Online.HDJManta1';
         		else if( SP.Skin == Texture'JManta2' )
            		SP.Skin = Texture'HDSkins2Online.HDJManta2';
            	SP.bCorona = True;
   			}

				//Tentacle
      		if( SP.Mesh == LodMesh'UnrealShare.Tentacle1' )
         	{
         		if( SP.MultiSkins[1] == None )
            		SP.MultiSkins[1] = Texture'HDSkins2Online.HDJTentacle1';
            	SP.bCorona = True;
   			}

				//Slith
      		if( SP.Mesh == LodMesh'UnrealShare.Slith1' )
      		{
         		if( SP.Skin == None )
            		SP.Skin = Texture'HDSkins2Online.HDJSlith1';
            	SP.bCorona = True;
   			}

				//Cow
      		if( SP.Mesh == LodMesh'UnrealShare.NaliCow' )
      		{
         		if( SP.Skin == None )
            		SP.Skin = Texture'HDSkins2Online.HDJCow1';
            	SP.bCorona = True;
   			}

				//Nali
      		if( SP.Mesh == LodMesh'UnrealShare.Nali1' )
      		{
         		if( SP.Skin == None )
            		SP.Skin = Texture'HDSkins2Online.HDJNali1';
         		else if( SP.Skin == Texture'JNali2' )
            		SP.Skin = Texture'HDSkins2Online.HDJNali2';
            	SP.bCorona = True;
   			}
   			if (ReplaceRTNP)
   			{
					//Predator
      			if(SP.Mesh.Name == 'Predator')
         		{
         			if( SP.MultiSkins[1] == None )
            			SP.MultiSkins[1] = Texture'HDSkins2Online.HDJPredator1';
         			if( SP.MultiSkins[2] == None )
            			SP.MultiSkins[2] = Texture'HDSkins2Online.HDJPredator2';
 	 					if( SP.MultiSkins[1] == Texture(DynamicLoadObject("UPak.JGPredator1",Class'Texture')))
            			SP.MultiSkins[1] = Texture'HDSkins2Online.HDJGPredator1';
 	 					if( SP.MultiSkins[2] == Texture(DynamicLoadObject("UPak.JGPredator2",Class'Texture')))
            			SP.MultiSkins[2] = Texture'HDSkins2Online.HDJGPredator2';
            		SP.bCorona = True;
   				}
					//Spinner
      			if(SP.Mesh.Name == 'Spinner')
         		{
         			if( SP.MultiSkins[1] == None )
            			SP.MultiSkins[1] = Texture'HDSkins2Online.HDJSpinner1';
         			if( SP.MultiSkins[2] == None )
            			SP.MultiSkins[2] = Texture'HDSkins2Online.HDJSpinner2';
            		SP.bCorona = True;
   				}
   			}
  			}
  		}
	}
}

//These checks are isolated because they can be so intensive
function CheckGibMeshes()
{
	local Carcass CA;

	//Skips the corona setting since lifetime is short by nature
	foreach AllActors(Class'Carcass',CA)
	{
		if(CA.Mesh != None)
		{
      	if( CA.Mesh == LodMesh'UnrealI.BigChunk1' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgcow1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.BigChunk2' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgcow1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.GasArm1' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGas1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.GasArm2' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGas2';
   		}
 
      	if( CA.Mesh == LodMesh'UnrealI.GasHand' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGas1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.GasHead' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGas2';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.GasPart' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGas1';
   		}
 
      	if( CA.Mesh == LodMesh'UnrealI.KrallFoot' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgkrl0';
   		}
  
      	if( CA.Mesh == LodMesh'UnrealI.KrallHand' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgkrl1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.KrallHead' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgkrl1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.KrallPiece' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgkrl0';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.KrallWeapon' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgkrl0';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.MercArm' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJmerce1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.MercFoot' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJmerce1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.MercGun' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJmerce1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.MercHead' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJmerce2';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.MercLeg' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJmerce2';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.MercPart' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJmerce2';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.PupaeBody' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgpupae1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.PupaeHead' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgpupae1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.PupaeLeg1' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgpupae1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.PupaeLeg2' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgpupae1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.PupaeLeg3' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgpupae1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.SkaarjBody' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSkaarj1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.SkaarjHead' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSkaarj1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.SkaarjLeg' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSkaarj2';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.SkaarjBody' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSkaarj1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.SquidBody' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSquid';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.SquidPart' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSquid';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.SquidTail' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSquid';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.SquidTail2' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSquid';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.SquidTail3' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSquid';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.SquidTail4' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSquid';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.SquidTail5' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSquid';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.WarlordArm' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGWar1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.WarlordFoot' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGWar2';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.WarlordGun' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGWar1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.WarlordHand' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGWar2';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.WarlordHead' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGWar2';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.WarlordLeg' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGWar1';
   		}

      	if( CA.Mesh == LodMesh'UnrealI.WarlordWing' )
         {
            CA.Mesh = LodMesh'HDSkinsProject.WarlordWingFix'; //Fix for the one-sided non-masked Wing
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGWar1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.Arm1M' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJArm11';

   		}

      	if( CA.Mesh == LodMesh'UnrealShare.BigChunk1' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGCow1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.BigChunk2' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGCow1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.Body1' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJBody11';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.BruteFoot' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGbrt';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.BruteHand' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGbrt';
       	}

      	if( CA.Mesh == LodMesh'UnrealShare.BruteHead' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGbrt';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.BrutePiece' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGbrt';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.CowBody1' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGCow1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.CowBody2' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGCow1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.CowFoot' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGCow1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.CowHead' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGCow2';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.CowLeg' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGCow2';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.CowTail' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGCow2';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.FemHead1' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJf2h1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.FishHead' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGFish1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.FishPart' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGFish1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.FishTail' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGFish1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.Leg1M' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJLeg11';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.LiverM' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJParts1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.Male1Head' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJm1h';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.MantaHead' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJmta1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.MantaPart' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJmta1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.MantaTail' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJmta1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.MantaWing1' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJmta1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.MantaWing2' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJmta1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.NaliFoot' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgnali2';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.NaliHand1' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgnali1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.NaliHand2' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgnali1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.NaliHead' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgnali2';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.NaliLeg' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgnali1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.NaliPart' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJgnali2';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.PHeartM' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJMisc1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.SkaarjBody' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSkaarj1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.SkaarjHand' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSkaarj2';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.SkaarjHead' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSkaarj1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.SkaarjLeg' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSkaarj2';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.SkaarjTail' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSkaarj2';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.SlithArm' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSlith1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.SlithHand' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSlith1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.SlithHead' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSlith2';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.SlithPart' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSlith2';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.SlithTail' )
         {
            CA.Mesh = LodMesh'HDSkinsProject.SlithTailFix'; //Fix for the one-sided non-masked tail
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGSlith1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.StomachM' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJparts1';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.TentArm' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGTent';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.TentBody' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGTent';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.TentHead' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGTent';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.TentPart' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJGTent';
   		}

      	if( CA.Mesh == LodMesh'UnrealShare.ThighM' )
         {
         	if( CA.Multiskins[1] == None )
            	CA.Multiskins[1] = Texture'HDSkins2Online.HDJparts1';
   		}
   		
   		if (ReplaceRTNP)
   		{
   		
   			//RTNP Gibs
    			if(CA.Mesh.Name == 'PredatorBody')
    			{
        		 	if( CA.MultiSkins[1] == None )
            		CA.MultiSkins[1] = Texture'HDSkins2Online.HDJGPredator1';
         		if( CA.MultiSkins[2] == None )
            		CA.MultiSkins[2] = Texture'HDSkins2Online.HDJGPredator2';
   			}

      		if(CA.Mesh.Name == 'PredatorFoot')
         	{
         		if( CA.MultiSkins[1] == None )
            		CA.MultiSkins[1] = Texture'HDSkins2Online.HDJGPredator1';
         		if( CA.MultiSkins[2] == None )
            		CA.MultiSkins[2] = Texture'HDSkins2Online.HDJGPredator2';
    			}

      		if(CA.Mesh.Name == 'PredatorHead')
         	{
         		if( CA.MultiSkins[1] == None )
            		CA.MultiSkins[1] = Texture'HDSkins2Online.HDJGPredator1';
         		if( CA.MultiSkins[2] == None )
            		CA.MultiSkins[2] = Texture'HDSkins2Online.HDJGPredator2';
    			}

      		if(CA.Mesh.Name == 'PredatorLeftLeg')
         	{
         		if( CA.MultiSkins[1] == None )
            		CA.MultiSkins[1] = Texture'HDSkins2Online.HDJGPredator1';
         		if( CA.MultiSkins[2] == None )
            		CA.MultiSkins[2] = Texture'HDSkins2Online.HDJGPredator2';
    			}

      		if(CA.Mesh.Name == 'PredatorRightLeg')
         	{
         		if( CA.MultiSkins[1] == None )
            		CA.MultiSkins[1] = Texture'HDSkins2Online.HDJGPredator1';
         		if( CA.MultiSkins[2] == None )
            		CA.MultiSkins[2] = Texture'HDSkins2Online.HDJGPredator2';
    			}

      		if(CA.Mesh.Name == 'PredatorTail')
         	{
         		if( CA.MultiSkins[1] == None )
            		CA.MultiSkins[1] = Texture'HDSkins2Online.HDJGPredator1';
         		if( CA.MultiSkins[2] == None )
            		CA.MultiSkins[2] = Texture'HDSkins2Online.HDJGPredator2';
    			}

      		if(CA.Mesh.Name == 'SpinnerBody')
         	{
         		if( CA.MultiSkins[1] == None )
            		CA.MultiSkins[1] = Texture'HDSkins2Online.HDJGSpinner1';
    			}

      		if(CA.Mesh.Name == 'SpinnerClaw')
         	{
         		if( CA.MultiSkins[1] == None )
            		CA.MultiSkins[1] = Texture'HDSkins2Online.HDJGSpinner1';
    			}

      		if(CA.Mesh.Name == 'SpinnerHead')
         	{
         		if( CA.MultiSkins[1] == None )
            		CA.MultiSkins[1] = Texture'HDSkins2Online.HDJGSpinner1';
         		if( CA.MultiSkins[2] == None )
            		CA.MultiSkins[2] = Texture'HDSkins2Online.HDJGSpinner2';
    			}

      		if(CA.Mesh.Name == 'SpinnerLeg1')
         	{
         		if( CA.MultiSkins[1] == None )
            		CA.MultiSkins[1] = Texture'HDSkins2Online.HDJGSpinner1';
    			}

      		if(CA.Mesh.Name == 'SpinnerLeg2')
         	{
         		if( CA.MultiSkins[1] == None )
            		CA.MultiSkins[1] = Texture'HDSkins2Online.HDJGSpinner1';
    			}

    			if(CA.Mesh.Name == 'SpinnerLeg3')
         	{
         		if( CA.MultiSkins[1] == None )
            		CA.MultiSkins[1] = Texture'HDSkins2Online.HDJGSpinner1';
    			}

    			if(CA.Mesh.Name == 'SpinnerLeg4')
         	{
         		if( CA.MultiSkins[1] == None )
            		CA.MultiSkins[1] = Texture'HDSkins2Online.HDJGSpinner1';
    			}

    			if(CA.Mesh.Name == 'SpinnerTail')
    			{
         		if( CA.MultiSkins[1] == None )
            		CA.MultiSkins[1] = Texture'HDSkins2Online.HDJGSpinner2';
    			}
			}
		}
	}
}

function CheckFragmentMeshes()
{
	local Fragment FG;
	
	foreach AllActors(Class'Fragment',FG)
	{
		if(FG.Mesh != None)
		{
      	if( FG.Mesh == LodMesh'UnrealShare.Vfrag1' )
         {
          	if( FG.Skin == None )
            	FG.Skin = Texture'HDSkins2Online.HDJvase1';
	  			else if( FG.Skin == Texture'Jvase1' )
            	FG.Skin = Texture'HDSkins2Online.HDJvase1';
	  			else if( FG.Skin == Texture'JSteelBarrel2' )
            	FG.Skin = Texture'HDSkins2Online.HDJSteelBarrel2';
	  			else if( FG.Skin == Texture'jSBarrel1' )
            	FG.Skin = Texture'HDSkins2Online.HDjSBarrel1';
	  			else if( FG.Skin == Texture'JFan21' )
            	FG.Skin = Texture'HDSkins2Online.HDJFan21';
	  			else if( FG.Skin == Texture'JLamp41' )
            	FG.Skin = Texture'HDSkins2Online.HDJLamp41';
	  			else if( FG.Skin == Texture'JUrn1' )
            	FG.Skin = Texture'HDSkins2Online.HDJUrn1';
	  			else if( FG.Skin == Texture(DynamicLoadObject("UPak.JDropBox1",Class'Texture')))
            	FG.Skin = Texture'HDSkins2Online.HDJDropBox1';
   		}

      	if( FG.Mesh == LodMesh'UnrealShare.Vfrag2' )
         {
          	if( FG.Skin == None )
            	FG.Skin = Texture'HDSkins2Online.HDJvase1';
	  			else if( FG.Skin == Texture'Jvase1' )
            	FG.Skin = Texture'HDSkins2Online.HDJvase1';
	  			else if( FG.Skin == Texture'JSteelBarrel2' )
            	FG.Skin = Texture'HDSkins2Online.HDJSteelBarrel2';
	  			else if( FG.Skin == Texture'jSBarrel1' )
            	FG.Skin = Texture'HDSkins2Online.HDjSBarrel1';
	  			else if( FG.Skin == Texture'JFan21' )
            	FG.Skin = Texture'HDSkins2Online.HDJFan21';
	  			else if( FG.Skin == Texture'JLamp41' )
            	FG.Skin = Texture'HDSkins2Online.HDJLamp41';
	  			else if( FG.Skin == Texture'JUrn1' )
            	FG.Skin = Texture'HDSkins2Online.HDJUrn1';
	  			else if( FG.Skin == Texture(DynamicLoadObject("UPak.JDropBox1",Class'Texture')))
            	FG.Skin = Texture'HDSkins2Online.HDJDropBox1';
   		}

      	if( FG.Mesh == LodMesh'UnrealShare.Vfrag3' )
         {
          	if( FG.Skin == None )
            	FG.Skin = Texture'HDSkins2Online.HDJvase1';
	  			else if( FG.Skin == Texture'Jvase1' )
            	FG.Skin = Texture'HDSkins2Online.HDJvase1';
	  			else if( FG.Skin == Texture'JSteelBarrel2' )
            	FG.Skin = Texture'HDSkins2Online.HDJSteelBarrel2';
	  			else if( FG.Skin == Texture'jSBarrel1' )
            	FG.Skin = Texture'HDSkins2Online.HDjSBarrel1';
	  			else if( FG.Skin == Texture'JFan21' )
            	FG.Skin = Texture'HDSkins2Online.HDJFan21';
	  			else if( FG.Skin == Texture'JLamp41' )
            	FG.Skin = Texture'HDSkins2Online.HDJLamp41';
	  			else if( FG.Skin == Texture'JUrn1' )
            	FG.Skin = Texture'HDSkins2Online.HDJUrn1';
	  			else if( FG.Skin == Texture(DynamicLoadObject("UPak.JDropBox1",Class'Texture')))
            	FG.Skin = Texture'HDSkins2Online.HDJDropBox1';
   		}

      	if( FG.Mesh == LodMesh'UnrealShare.Vfrag4' )
         {
          	if( FG.Skin == None )
            	FG.Skin = Texture'HDSkins2Online.HDJvase1';
	  			else if( FG.Skin == Texture'Jvase1' )
            	FG.Skin = Texture'HDSkins2Online.HDJvase1';
	  			else if( FG.Skin == Texture'JSteelBarrel2' )
            	FG.Skin = Texture'HDSkins2Online.HDJSteelBarrel2';
	  			else if( FG.Skin == Texture'jSBarrel1' )
            	FG.Skin = Texture'HDSkins2Online.HDjSBarrel1';
	  			else if( FG.Skin == Texture'JFan21' )
            	FG.Skin = Texture'HDSkins2Online.HDJFan21';
	  			else if( FG.Skin == Texture'JLamp41' )
            	FG.Skin = Texture'HDSkins2Online.HDJLamp41';
	  			else if( FG.Skin == Texture'JUrn1' )
            	FG.Skin = Texture'HDSkins2Online.HDJUrn1';
	  			else if( FG.Skin == Texture(DynamicLoadObject("UPak.JDropBox1",Class'Texture')))
            	FG.Skin = Texture'HDSkins2Online.HDJDropBox1';
   		}

      	if( FG.Mesh == LodMesh'UnrealShare.Vfrag5' )
         {
          	if( FG.Skin == None )
            	FG.Skin = Texture'HDSkins2Online.HDJvase1';
	  			else if( FG.Skin == Texture'Jvase1' )
            	FG.Skin = Texture'HDSkins2Online.HDJvase1';
	  			else if( FG.Skin == Texture'JSteelBarrel2' )
            	FG.Skin = Texture'HDSkins2Online.HDJSteelBarrel2';
	  			else if( FG.Skin == Texture'jSBarrel1' )
            	FG.Skin = Texture'HDSkins2Online.HDjSBarrel1';
	  			else if( FG.Skin == Texture'JFan21' )
            	FG.Skin = Texture'HDSkins2Online.HDJFan21';
	  			else if( FG.Skin == Texture'JLamp41' )
            	FG.Skin = Texture'HDSkins2Online.HDJLamp41';
	  			else if( FG.Skin == Texture'JUrn1' )
            	FG.Skin = Texture'HDSkins2Online.HDJUrn1';
	  			else if( FG.Skin == Texture(DynamicLoadObject("UPak.JDropBox1",Class'Texture')))
            	FG.Skin = Texture'HDSkins2Online.HDJDropBox1';
   		}

      	if( FG.Mesh == LodMesh'UnrealShare.Vfrag6' )
         {
          	if( FG.Skin == None )
            	FG.Skin = Texture'HDSkins2Online.HDJvase1';
	  			else if( FG.Skin == Texture'Jvase1' )
            	FG.Skin = Texture'HDSkins2Online.HDJvase1';
	  			else if( FG.Skin == Texture'JSteelBarrel2' )
            	FG.Skin = Texture'HDSkins2Online.HDJSteelBarrel2';
	  			else if( FG.Skin == Texture'jSBarrel1' )
            	FG.Skin = Texture'HDSkins2Online.HDjSBarrel1';
	  			else if( FG.Skin == Texture'JFan21' )
            	FG.Skin = Texture'HDSkins2Online.HDJFan21';
	  			else if( FG.Skin == Texture'JLamp41' )
            	FG.Skin = Texture'HDSkins2Online.HDJLamp41';
	  			else if( FG.Skin == Texture'JUrn1' )
            	FG.Skin = Texture'HDSkins2Online.HDJUrn1';
	  			else if( FG.Skin == Texture(DynamicLoadObject("UPak.JDropBox1",Class'Texture')))
            	FG.Skin = Texture'HDSkins2Online.HDJDropBox1';
   		}

      	if( FG.Mesh == LodMesh'UnrealShare.Vfrag7' )
         {
          	if( FG.Skin == None )
            	FG.Skin = Texture'HDSkins2Online.HDJvase1';
	  			else if( FG.Skin == Texture'Jvase1' )
            	FG.Skin = Texture'HDSkins2Online.HDJvase1';
	  			else if( FG.Skin == Texture'JSteelBarrel2' )
            	FG.Skin = Texture'HDSkins2Online.HDJSteelBarrel2';
	  			else if( FG.Skin == Texture'jSBarrel1' )
            	FG.Skin = Texture'HDSkins2Online.HDjSBarrel1';
	  			else if( FG.Skin == Texture'JFan21' )
            	FG.Skin = Texture'HDSkins2Online.HDJFan21';
	  			else if( FG.Skin == Texture'JLamp41' )
            	FG.Skin = Texture'HDSkins2Online.HDJLamp41';
	  			else if( FG.Skin == Texture'JUrn1' )
            	FG.Skin = Texture'HDSkins2Online.HDJUrn1';
	  			else if( FG.Skin == Texture(DynamicLoadObject("UPak.JDropBox1",Class'Texture')))
            	FG.Skin = Texture'HDSkins2Online.HDJDropBox1';

   		}

      	if( FG.Mesh == LodMesh'UnrealI.chnk1' )
         {
         	if( FG.MultiSkins[1] == None )
            	FG.MultiSkins[1] = Texture'HDSkins2Online.HDJflakshel1';
   		}

      	if( FG.Mesh == LodMesh'UnrealI.chnk2' )
         {
         	if( FG.MultiSkins[1] == None )
            	FG.MultiSkins[1] = Texture'HDSkins2Online.HDJflakshel1';
   		}

      	if( FG.Mesh == LodMesh'UnrealI.chnk3' )
         {
         	if( FG.MultiSkins[1] == None )
            	FG.MultiSkins[1] = Texture'HDSkins2Online.HDJflakshel1';
   		}

      	if( FG.Mesh == LodMesh'UnrealI.chnk4' )
         {
         	if( FG.MultiSkins[1] == None )
            	FG.MultiSkins[1] = Texture'HDSkins2Online.HDJflakshel1';
   		}
		}
	}
}

function bool CheckReplacement(Actor Other, out byte bSuperRelevant)
{
	if (ReplaceRTNP)
	{
		if(Other.Class==Class'CARifle')
   	{
      	ReplaceWith(Other,"HDSkinsProject.CARifleHD");
      	return false;
   	}
   }
   return true;
}

defaultproperties
{
	ReplaceMonsters=True
	ReplaceFlockPawns=True
	ReplaceDecorations=True
	ReplaceWeapons=True
	ReplaceAmmo=True
	ReplacePickups=True
	ReplaceProjectile=True
	ReplaceFemaleCarcass=True
	ReplaceFragments=True
	ReplaceRTNP=True
	ReplaceGibs=True
	ForceRelevance=True
	CheckSpeed=5
}
