RuneI
Class Jarl

source: c:\runehov\RuneI\Classes\Jarl.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Pawn
         |
         +--RuneI.ScriptPawn
            |
            +--RuneI.Viking
               |
               +--RuneI.Jarl
Direct Known Subclasses:None

class Jarl
extends RuneI.Viking

//============================================================================= // Jarl. //=============================================================================

Function Summary
 void ApplyGoreCap(int BodyPart)
     
//============================================================
//
// ApplyGoreCap
//
//============================================================
 int BodyPartForPolyGroup(int polygroup)
     
//============================================================
//
// BodyPartForPolyGroup
//
//============================================================
 Texture PainSkin(int BodyPart)
     
//============================================================
//
// PainSkin
//
// returns the pain skin for a given polygroup
//============================================================



Source Code


00001	//=============================================================================
00002	// Jarl.
00003	//=============================================================================
00004	class Jarl expands Viking;
00005	
00006	//============================================================
00007	//
00008	// PainSkin
00009	//
00010	// returns the pain skin for a given polygroup
00011	//============================================================
00012	function Texture PainSkin(int BodyPart)
00013	{
00014		switch(BodyPart)
00015		{
00016			case BODYPART_TORSO:
00017				SkelGroupSkins[1] = Texture'players.ragnarjarl_chestpain';
00018				break;
00019			case BODYPART_HEAD:
00020				SkelGroupSkins[5] = Texture'players.ragnarjarl_headpain';
00021				break;
00022			case BODYPART_LARM1:
00023				SkelGroupSkins[11] = Texture'players.ragnarjarl_armlegpain';
00024				SkelGroupSkins[9] = Texture'players.ragnarjarl_armlegpain';
00025				break;
00026			case BODYPART_RARM1:
00027				SkelGroupSkins[6] = Texture'players.ragnarjarl_armlegpain';
00028				SkelGroupSkins[8] = Texture'players.ragnarjarl_armlegpain';
00029				break;
00030			case BODYPART_LLEG1:
00031				SkelGroupSkins[3] = Texture'players.ragnarjarl_armlegpain';
00032				SkelGroupSkins[12] = Texture'players.ragnarjarl_armlegpain';
00033				break;
00034			case BODYPART_RLEG1:
00035				SkelGroupSkins[2] = Texture'players.ragnarjarl_armlegpain';
00036				SkelGroupSkins[13] = Texture'players.ragnarjarl_armlegpain';
00037				break;
00038		}
00039		return None;
00040	}
00041	
00042	//============================================================
00043	//
00044	// BodyPartForPolyGroup
00045	//
00046	//============================================================
00047	function int BodyPartForPolyGroup(int polygroup)
00048	{
00049		switch(polygroup)
00050		{
00051			case 5:								return BODYPART_HEAD;
00052			case 9:								return BODYPART_LARM1;
00053			case 8:								return BODYPART_RARM1;
00054			case 3: case 12:					return BODYPART_LLEG1;
00055			case 2:	case 13:					return BODYPART_RLEG1;
00056			case 1: case 4: case 7: case 10:
00057				case 6: case 11:				return BODYPART_TORSO;
00058		}
00059		return BODYPART_BODY;
00060	}
00061	
00062	//============================================================
00063	//
00064	// ApplyGoreCap
00065	//
00066	//============================================================
00067	function ApplyGoreCap(int BodyPart)
00068	{
00069		switch(BodyPart)
00070		{
00071			case BODYPART_LARM1:
00072				SkelGroupSkins[10] = Texture'runefx.gore_bone';
00073				SkelGroupFlags[10] = SkelGroupFlags[10] & ~POLYFLAG_INVISIBLE;
00074				break;
00075			case BODYPART_RARM1:
00076				SkelGroupSkins[7] = Texture'runefx.gore_bone';
00077				SkelGroupFlags[7] = SkelGroupFlags[7] & ~POLYFLAG_INVISIBLE;
00078				break;
00079			case BODYPART_HEAD:
00080				SkelGroupSkins[4] = Texture'runefx.gore_bone';
00081				SkelGroupFlags[4] = SkelGroupFlags[4] & ~POLYFLAG_INVISIBLE;
00082				break;
00083		}
00084	}
00085	
00086	//================================================
00087	//
00088	// SeveredLimbClass
00089	//
00090	//================================================
00091	function class<Actor> SeveredLimbClass(int BodyPart)
00092	{
00093		switch(BodyPart)
00094		{
00095			case BODYPART_LARM1:
00096				return class'KarlLArm';
00097			case BODYPART_RARM1:
00098				return class'KarlRArm';
00099			case BODYPART_HEAD:
00100				return class'KarlHead';
00101				break;
00102		}
00103	
00104		return None;
00105	}
00106	
00107	defaultproperties
00108	{
00109	     AmbientWaitSoundDelay=9.000000
00110	     AmbientFightSoundDelay=6.000000
00111	     HitSound1=Sound'CreaturesSnd.Vikings.vike2hit01'
00112	     HitSound2=Sound'CreaturesSnd.Vikings.vike2hit02'
00113	     HitSound3=Sound'CreaturesSnd.Vikings.vike2hit03'
00114	     Die=Sound'CreaturesSnd.Vikings.vike2death01'
00115	     Die2=Sound'CreaturesSnd.Vikings.vike2death02'
00116	     Die3=Sound'CreaturesSnd.Vikings.vike2death03'
00117	     MaxMouthRot=7000
00118	     MaxMouthRotRate=65535
00119	     LODDistMax=6000.000000
00120	     LODCurve=LOD_CURVE_CONSERVATIVE
00121	     SkelMesh=4
00122	     SkelGroupSkins(1)=Texture'Players.Ragnarjarl_chest'
00123	     SkelGroupSkins(2)=Texture'Players.Ragnarjarl_armleg'
00124	     SkelGroupSkins(3)=Texture'Players.Ragnarjarl_armleg'
00125	     SkelGroupSkins(4)=Texture'Players.Ragnarjarl_armleg'
00126	     SkelGroupSkins(5)=Texture'Players.Ragnarjarl_head'
00127	     SkelGroupSkins(6)=Texture'Players.Ragnarjarl_armleg'
00128	     SkelGroupSkins(7)=Texture'Players.Ragnarjarl_armleg'
00129	     SkelGroupSkins(8)=Texture'Players.Ragnarjarl_armleg'
00130	     SkelGroupSkins(9)=Texture'Players.Ragnarjarl_armleg'
00131	     SkelGroupSkins(10)=Texture'Players.Ragnarjarl_armleg'
00132	     SkelGroupSkins(11)=Texture'Players.Ragnarjarl_armleg'
00133	     SkelGroupSkins(12)=Texture'Players.Ragnarjarl_armleg'
00134	     SkelGroupSkins(13)=Texture'Players.Ragnarjarl_armleg'
00135	}

End Source Code