RuneI
Class PlayerWolfgar

source: c:\runehov\RuneI\Classes\PlayerWolfgar.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Pawn
         |
         +--Engine.PlayerPawn
            |
            +--RuneI.RunePlayer
               |
               +--RuneI.PlayerWolfgar
Direct Known Subclasses:None

class PlayerWolfgar
extends RuneI.RunePlayer

//============================================================================= // PlayerWolfgar. //=============================================================================

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	// PlayerWolfgar.
00003	//=============================================================================
00004	class PlayerWolfgar expands RunePlayer;
00005	
00006	
00007	//============================================================
00008	//
00009	// PainSkin
00010	//
00011	// returns the pain skin for a given polygroup
00012	//============================================================
00013	function Texture PainSkin(int BodyPart)
00014	{
00015		switch(BodyPart)
00016		{
00017			case BODYPART_TORSO:
00018				SkelGroupSkins[3] = Texture'players.ragnarwolf_chestpain';
00019				break;
00020			case BODYPART_HEAD:
00021				SkelGroupSkins[10] = Texture'players.ragnarwolf_headpain';
00022				break;
00023			case BODYPART_LARM1:
00024				SkelGroupSkins[7] = Texture'players.ragnarwolf_armlegpain';
00025				break;
00026			case BODYPART_RARM1:
00027				SkelGroupSkins[6] = Texture'players.ragnarwolf_armlegpain';
00028				break;
00029			case BODYPART_LLEG1:
00030				SkelGroupSkins[2] = Texture'players.ragnarwolf_armlegpain';
00031				SkelGroupSkins[12] = Texture'players.ragnarwolf_armlegpain';
00032				break;
00033			case BODYPART_RLEG1:
00034				SkelGroupSkins[1] = Texture'players.ragnarwolf_armlegpain';
00035				SkelGroupSkins[13] = Texture'players.ragnarwolf_armlegpain';
00036				break;
00037		}
00038		return None;
00039	}
00040	
00041	//============================================================
00042	//
00043	// BodyPartForPolyGroup
00044	//
00045	//============================================================
00046	function int BodyPartForPolyGroup(int polygroup)
00047	{
00048		switch(polygroup)
00049		{
00050			case 10:					return BODYPART_HEAD;
00051			case 7:						return BODYPART_LARM1;
00052			case 6:						return BODYPART_RARM1;
00053			case 2: case 12:			return BODYPART_LLEG1;
00054			case 1: case 13:			return BODYPART_RLEG1;
00055			case 4: case 9:					// Arm stubs
00056			case 5: case 8: case 11:		// Gore caps
00057			case 3:						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[8] = Texture'runefx.gore_bone';
00073				SkelGroupFlags[8] = SkelGroupFlags[8] & ~POLYFLAG_INVISIBLE;
00074				break;
00075			case BODYPART_RARM1:
00076				SkelGroupSkins[5] = Texture'runefx.gore_bone';
00077				SkelGroupFlags[5] = SkelGroupFlags[5] & ~POLYFLAG_INVISIBLE;
00078				break;
00079			case BODYPART_HEAD:
00080				SkelGroupSkins[11] = Texture'runefx.gore_bone';
00081				SkelGroupFlags[11] = SkelGroupFlags[11] & ~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'WolfLArm';
00097			case BODYPART_RARM1:
00098				return class'WolfRArm';
00099			case BODYPART_HEAD:
00100				return class'WolfHead';
00101				break;
00102		}
00103	
00104		return None;
00105	}
00106	
00107	defaultproperties
00108	{
00109	     HitSoundLow(0)=Sound'CreaturesSnd.Vikings.vike2hit01'
00110	     HitSoundLow(1)=Sound'CreaturesSnd.Vikings.vike2hit01'
00111	     HitSoundLow(2)=Sound'CreaturesSnd.Vikings.vike2hit01'
00112	     HitSoundMed(0)=Sound'CreaturesSnd.Vikings.vike2hit02'
00113	     HitSoundMed(1)=Sound'CreaturesSnd.Vikings.vike2hit02'
00114	     HitSoundMed(2)=Sound'CreaturesSnd.Vikings.vike2hit02'
00115	     HitSoundHigh(0)=Sound'CreaturesSnd.Vikings.vike2hit03'
00116	     HitSoundHigh(1)=Sound'CreaturesSnd.Vikings.vike2hit03'
00117	     HitSoundHigh(2)=Sound'CreaturesSnd.Vikings.vike2hit03'
00118	     CarcassType=Class'RuneI.PlayerWolfgarCarcass'
00119	     Die=Sound'CreaturesSnd.Vikings.vike2death01'
00120	     Die2=Sound'CreaturesSnd.Vikings.vike2death02'
00121	     Die3=Sound'CreaturesSnd.Vikings.vike2death03'
00122	     MaxMouthRot=7000
00123	     MaxMouthRotRate=65535
00124	     SkelMesh=10
00125	     SkelGroupSkins(0)=Texture'Players.Ragnarragd_arms'
00126	     SkelGroupSkins(1)=Texture'Players.Ragnarwolf_armleg'
00127	     SkelGroupSkins(2)=Texture'Players.Ragnarwolf_armleg'
00128	     SkelGroupSkins(3)=Texture'Players.Ragnarwolf_chest'
00129	     SkelGroupSkins(4)=Texture'Players.Ragnarwolf_armleg'
00130	     SkelGroupSkins(5)=Texture'Players.Ragnarragd_arms'
00131	     SkelGroupSkins(6)=Texture'Players.Ragnarwolf_armleg'
00132	     SkelGroupSkins(7)=Texture'Players.Ragnarwolf_armleg'
00133	     SkelGroupSkins(8)=Texture'Players.Ragnarragd_arms'
00134	     SkelGroupSkins(9)=Texture'Players.Ragnarwolf_armleg'
00135	     SkelGroupSkins(10)=Texture'Players.Ragnarwolf_head'
00136	     SkelGroupSkins(11)=Texture'Players.Ragnarragd_arms'
00137	     SkelGroupSkins(12)=Texture'Players.Ragnarwolf_armleg'
00138	     SkelGroupSkins(13)=Texture'Players.Ragnarwolf_armleg'
00139	}

End Source Code