RuneI
Class Wolfgar

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

class Wolfgar
extends RuneI.Viking

//============================================================================= // Wolfgar. //=============================================================================

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	// Wolfgar.
00003	//=============================================================================
00004	class Wolfgar expands Viking;
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	     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	     SkelMesh=10
00120	     SkelGroupSkins(0)=Texture'Players.Ragnarragd_arms'
00121	     SkelGroupSkins(1)=Texture'Players.Ragnarwolf_armleg'
00122	     SkelGroupSkins(2)=Texture'Players.Ragnarwolf_armleg'
00123	     SkelGroupSkins(3)=Texture'Players.Ragnarwolf_chest'
00124	     SkelGroupSkins(4)=Texture'Players.Ragnarwolf_armleg'
00125	     SkelGroupSkins(5)=Texture'Players.Ragnarwolf_head'
00126	     SkelGroupSkins(6)=Texture'Players.Ragnarwolf_armleg'
00127	}

End Source Code