RuneI
Class DwarfWoodlandSmall

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

class DwarfWoodlandSmall
extends RuneI.Dwarf

//============================================================================= // DwarfWoodlandSmall. //=============================================================================

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	// DwarfWoodlandSmall.
00003	//=============================================================================
00004	class DwarfWoodlandSmall expands Dwarf;
00005	
00006	//================================================
00007	//
00008	// SeveredLimbClass
00009	//
00010	//================================================
00011	function class<Actor> SeveredLimbClass(int BodyPart)
00012	{
00013		switch(BodyPart)
00014		{
00015			case BODYPART_LLEG1:
00016			case BODYPART_RLEG1:
00017				break;
00018			case BODYPART_LARM1:
00019				return class'WoodDwarfLArm';
00020			case BODYPART_RARM1:
00021				return class'WoodDwarfRArm';
00022			case BODYPART_HEAD:
00023				return class'WoodDwarfBHead';
00024				break;
00025		}
00026	
00027		return None;
00028	}
00029	
00030	
00031	//================================================
00032	//
00033	// BodyPartForPolyGroup
00034	//
00035	//================================================
00036	function int BodyPartForPolyGroup(int polygroup)
00037	{
00038		switch(polygroup)
00039		{
00040			case 1: case 4: case 7:
00041			case 5: case 6:	case 8:	return BODYPART_TORSO;
00042			case 2: case 12:		return BODYPART_HEAD;
00043			case 3:					return BODYPART_RARM1;
00044			case 11:				return BODYPART_LARM1;
00045			case 9:					return BODYPART_RLEG1;
00046			case 10:				return BODYPART_LLEG1;
00047			default:				return BODYPART_BODY;
00048		}
00049	}
00050	
00051	//============================================================
00052	//
00053	// ApplyGoreCap
00054	//
00055	//============================================================
00056	function ApplyGoreCap(int BodyPart)
00057	{
00058		switch(BodyPart)
00059		{
00060			case BODYPART_LARM1:
00061				SkelGroupSkins[6] = Texture'runefx.gore_bone';
00062				SkelGroupFlags[6] = SkelGroupFlags[6] & ~POLYFLAG_INVISIBLE;
00063				break;
00064			case BODYPART_RARM1:
00065				SkelGroupSkins[5] = Texture'runefx.gore_bone';
00066				SkelGroupFlags[5] = SkelGroupFlags[5] & ~POLYFLAG_INVISIBLE;
00067				break;
00068			case BODYPART_HEAD:
00069				SkelGroupSkins[8] = Texture'runefx.w_neckgore';
00070				SkelGroupFlags[8] = SkelGroupFlags[8] & ~POLYFLAG_INVISIBLE;
00071				break;
00072		}
00073	}
00074	
00075	//================================================
00076	//
00077	// PainSkin
00078	//
00079	// returns the pain skin for a given polygroup
00080	//================================================
00081	function Texture PainSkin(int BodyPart)
00082	{
00083		switch(BodyPart)
00084		{
00085			case BODYPART_TORSO:
00086				SkelGroupSkins[1] = Texture'creatures.dwarfw_bodypain';
00087				SkelGroupSkins[4] = Texture'creatures.dwarfw_bodypain';
00088				SkelGroupSkins[7] = Texture'creatures.dwarfw_bodypain';
00089				break;
00090			case BODYPART_HEAD:
00091				SkelGroupSkins[2] = Texture'creatures.dwarfw_bodypain';
00092				SkelGroupSkins[12] = Texture'creatures.dwarfw_facepain';
00093				break;
00094			case BODYPART_LARM1:
00095				SkelGroupSkins[11] = Texture'creatures.dwarfw_armpain';
00096				break;
00097			case BODYPART_RARM1:
00098				SkelGroupSkins[3] = Texture'creatures.dwarfw_armpain';
00099				break;
00100			case BODYPART_LLEG1:
00101				SkelGroupSkins[10] = Texture'creatures.dwarfw_legpain';
00102				break;
00103			case BODYPART_RLEG1:
00104				SkelGroupSkins[9] = Texture'creatures.dwarfw_legpain';
00105				break;
00106		}
00107		return None;
00108	}
00109	
00110	defaultproperties
00111	{
00112	     BashSound=Sound'CreaturesSnd.Dwarves.attack20'
00113	     BreathSound=Sound'CreaturesSnd.Dwarves.breath03'
00114	     AcquireSound=Sound'CreaturesSnd.Dwarves.see03'
00115	     AmbientWaitSounds(0)=Sound'CreaturesSnd.Dwarves.word16'
00116	     AmbientWaitSounds(1)=Sound'CreaturesSnd.Dwarves.word02'
00117	     AmbientWaitSounds(2)=Sound'CreaturesSnd.Dwarves.word07'
00118	     AmbientFightSounds(0)=Sound'CreaturesSnd.Dwarves.attack26'
00119	     AmbientFightSounds(1)=Sound'CreaturesSnd.Dwarves.grunt12'
00120	     AmbientFightSounds(2)=Sound'CreaturesSnd.Dwarves.grunt10'
00121	     AmbientWaitSoundDelay=11.000000
00122	     AmbientFightSoundDelay=5.000000
00123	     HitSound1=Sound'CreaturesSnd.Dwarves.hit13'
00124	     HitSound2=Sound'CreaturesSnd.Dwarves.hit12'
00125	     HitSound3=Sound'CreaturesSnd.Dwarves.hit15'
00126	     Die=Sound'CreaturesSnd.Dwarves.death13'
00127	     Die2=Sound'CreaturesSnd.Dwarves.death23'
00128	     Die3=Sound'CreaturesSnd.Dwarves.death24'
00129	     SkelMesh=1
00130	}

End Source Code