A Cowboy who loves Raven Shield gaming, modding, and collecting maps & mods :-)

  • View media
  • View media
RSS My Blogs
class YourPawn extends R6RainbowPawn(YourPawnConfig);

var config bool TPSkin;

replication
{
	reliable if ( Role == ROLE_Authority )
		TPSkin;
}

simulated function SetRainbowFaceTexture()
{
	Super.SetRainbowFaceTexture();

	if ( Level.NetMode == NM_StandAlone )
		return;

	if ( IsA('R6PilotPawn') )
		return;

	//Cannot change Mesh
	if ( (PlayerReplicationInfo.PlayerName == "nohel") || (PlayerReplicationInfo.PlayerName == "NoHel") )
	{
		if ( (Mesh == SkeletalMesh'R6Rainbow_UKX.HeavyMesh') || (Mesh == SkeletalMesh'R6Rainbow_UKX.MediumMesh') )
		{
			if ( m_Helmet != none )
			{
				m_Helmet.destroy();
				m_Helmet = none;
			}
			m_HelmetClass=Class<R6AbstractHelmet>(DynamicLoadObject("None", class'Class'));
			Skins[1]=Texture(DynamicLoadObject("R6Characters_T.Rainbow.R6RLightHead", class'Texture'));
		}
		if ( (Mesh == SkeletalMesh'R6Rainbow_UKX.HeavyWinterMesh') || (Mesh == SkeletalMesh'R6Rainbow_UKX.MediumWinterMesh') )
		{
			if ( m_Helmet != none )
			{
				m_Helmet.destroy();
				m_Helmet = none;
			}
			m_HelmetClass=Class<R6AbstractHelmet>(DynamicLoadObject("None", class'Class'));
			Skins[1]=Texture(DynamicLoadObject("R6Characters_T.Rainbow.R6RLightWinterHead", class'Texture'));
		}
	}
	if ( (PlayerReplicationInfo.PlayerName == "mediumhel") || (PlayerReplicationInfo.PlayerName == "MediumHel") )
	{
		if ( Mesh == SkeletalMesh'R6Rainbow_UKX.HeavyMesh' )
		{
			if ( m_Helmet != none )
			{
				m_Helmet.destroy();
				m_Helmet = none;
			}
			if ( m_Helmet == none )
			{
				m_HelmetClass=Class<R6AbstractHelmet>(DynamicLoadObject("R6RMediumHelmet", class'Class'));
				m_Helmet = spawn(class'R6RMediumHelmet' );
				AttachToBone(m_Helmet,'R6 Head');
			}
			if ( bIsFemale )
				m_Helmet.DrawScale = 1.000000;
			else
				m_Helmet.DrawScale = 1.100000;
		}
	}
	if ( (PlayerReplicationInfo.PlayerName == "pilothel") || (PlayerReplicationInfo.PlayerName == "PilotHel") )
	{
		if ( Mesh == SkeletalMesh'R6Rainbow_UKX.HeavyMesh' )
		{
			if ( m_Helmet != none )
			{
				m_Helmet.destroy();
				m_Helmet = none;
			}
			if ( m_Helmet == none )
			{
				m_HelmetClass=Class<R6AbstractHelmet>(DynamicLoadObject("R6RPilotHelmet", class'Class'));
				m_Helmet = spawn( class'R6RPilotHelmet' );
				AttachToBone(m_Helmet,'R6 Head');
				Skins[1] = Texture'R6Characters_T.Rainbow.R6RLightHead';
			}
			if ( bIsFemale )
				m_Helmet.DrawScale = 1.000000;
			else
				m_Helmet.DrawScale = 1.100000;
		}
	}
	else if ( (PlayerReplicationInfo.PlayerName == "hwinter") || (PlayerReplicationInfo.PlayerName == "HWinter") )
	{
		if ( Mesh == SkeletalMesh'R6Rainbow_UKX.HeavyWinterMesh' )
		{
			Skins[0]=Texture(DynamicLoadObject("R6Characters_T.Rainbow.R6RHeavyWinter", class'Texture'));
			m_Helmet.Skins[0]=Texture(DynamicLoadObject("R6Characters_T.Rainbow.R6RHeavyWinterHelm", class'Texture'));
		}
	}
	else if ( (PlayerReplicationInfo.PlayerName == "hwintercamo") || (PlayerReplicationInfo.PlayerName == "HWinterCamo") )
	{
		if ( Mesh == SkeletalMesh'R6Rainbow_UKX.HeavyWinterMesh' )
		{
			Skins[0]=Texture(DynamicLoadObject("R6Characters_T.RainbowSkins.R6RHeavyWinterCamo", class'Texture'));
			m_Helmet.Skins[0]=Texture(DynamicLoadObject("R6Characters_T.Rainbow.R6RWinterHelm", class'Texture'));
		}
	}
	if ( TPSkin )
	{
		if ( Mesh == SkeletalMesh'R6Rainbow_UKX.HeavyMesh' )
		{
			if ( (!bIsFemale) && (PlayerReplicationInfo.PlayerName == "Tequila") )
			{
				Skins[0]=Texture(DynamicLoadObject("R6Characters_T.RainbowSkins.R6RHeavyTan", class'Texture'));
				Skins[5]=Texture(DynamicLoadObject("R61stWeapons_T.Hands.R61stHandsTan", class'Texture'));
				m_Helmet.Skins[0]=Texture(DynamicLoadObject("R6Characters_T.Rainbow.R6RHeavyHelm", class'Texture'));
			}
			else
				return;
		}
	}	
}

defaultproperties
{
	TPSkin=True
	Begin Object Class=KarmaParamsSkel Name=KarmaParamsSkel300
		KConvulseSpacing=(Max=2.200000)
		KSkeleton="terroskel"
		KStartEnabled=True
		bHighDetailOnly=False
		KLinearDamping=0.500000
		KAngularDamping=0.500000
		KBuoyancy=1.000000
		KVelDropBelowThreshold=50.000000
		KFriction=0.600000
		KRestitution=0.300000
		KImpactThreshold=150.000000
		Name="KarmaParamsSkel300"
	End Object
	KParams=KarmaParamsSkel'YourPawn.KarmaParamsSkel300'
}
Comments
ALLR6dotcom
ALLR6dotcom

TEQ join the other modders on R6chat.com dude. We need you back!

Reply Good karma Bad karma+2 votes
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Level
94%
Gamer
7
Avatar
Avatar
Last Online
Country
Japan Japan
Gender
Male
Friends
Become friends
Member watch
Follow
Statistics
Rank
16,273 of 646,051
Visitors
960 (1 today)
Time Online
2 days
Activity Points
195
Watchers
5 members
Comments
36
Tags
2
Site visits
3,492
Contact
Contact
Send Message
Skype
Teq_HTP
Friends
.Twi
.Twi Online
ALLR6dotcom
ALLR6dotcom Online
akpin
akpin Online
SpecOpsUK Online
poompoom500
poompoom500 Online
Trank209
Trank209 Online
ankhneter
ankhneter Online
PhoenixSword
PhoenixSword Online
HeavyMetal1985
HeavyMetal1985 Online
Valdez92 Online