RuneI
Class DwarfWarC

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

class DwarfWarC
extends RuneI.Dwarf

//============================================================================= // DwarfWarC. //=============================================================================

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	// DwarfWarC.
00003	//=============================================================================
00004	class DwarfWarC expands Dwarf;
00005	
00006	
00007	//================================================
00008	//
00009	// SeveredLimbClass
00010	//
00011	//================================================
00012	function class<Actor> SeveredLimbClass(int BodyPart)
00013	{
00014		switch(BodyPart)
00015		{
00016			case BODYPART_LLEG1:
00017			case BODYPART_RLEG1:
00018				break;
00019			case BODYPART_LARM1:
00020				return class'WarDwarfLArm';
00021			case BODYPART_RARM1:
00022				return class'WarDwarfRArm';
00023			case BODYPART_HEAD:
00024				return class'WarDwarfCHead';
00025				break;
00026		}
00027	
00028		return None;
00029	}
00030	
00031	
00032	//================================================
00033	//
00034	// BodyPartForPolyGroup
00035	//
00036	//================================================
00037	function int BodyPartForPolyGroup(int polygroup)
00038	{
00039		switch(polygroup)
00040		{
00041			case 1: case 3: case 6: case 13: case 14:
00042			case 4: case 5: case 7:	return BODYPART_TORSO;
00043			case 15: case 0:		return BODYPART_HEAD;
00044			case 2:					return BODYPART_RARM1;
00045			case 12:				return BODYPART_LARM1;
00046			case 8: case 11:		return BODYPART_RLEG1;
00047			case 9: case 10:		return BODYPART_LLEG1;
00048			default:				return BODYPART_BODY;
00049		}
00050	}
00051	
00052	
00053	//============================================================
00054	//
00055	// ApplyGoreCap
00056	//
00057	//============================================================
00058	function ApplyGoreCap(int BodyPart)
00059	{
00060		switch(BodyPart)
00061		{
00062			case BODYPART_LARM1:
00063				SkelGroupSkins[5] = Texture'runefx.gore_bone';
00064				SkelGroupFlags[5] = SkelGroupFlags[5] & ~POLYFLAG_INVISIBLE;
00065				break;
00066			case BODYPART_RARM1:
00067				SkelGroupSkins[4] = Texture'runefx.gore_bone';
00068				SkelGroupFlags[4] = SkelGroupFlags[4] & ~POLYFLAG_INVISIBLE;
00069				break;
00070			case BODYPART_HEAD:
00071				SkelGroupSkins[7] = Texture'runefx.gore_bone';
00072				SkelGroupFlags[7] = SkelGroupFlags[7] & ~POLYFLAG_INVISIBLE;
00073				break;
00074		}
00075	}
00076	
00077	
00078	//================================================
00079	//
00080	// PainSkin
00081	//
00082	// returns the pain skin for a given polygroup
00083	//================================================
00084	function Texture PainSkin(int BodyPart)
00085	{
00086		switch(BodyPart)
00087		{
00088			case BODYPART_BODY:
00089				SkelGroupSkins[1] = Texture'creatures.dwarfwd_bodypain';
00090				break;
00091			case BODYPART_HEAD:
00092				SkelGroupSkins[0] = Texture'creatures.dwarfwd_helmetapain';
00093				SkelGroupSkins[15] = Texture'creatures.dwarfwd_bodypain';
00094				break;
00095			case BODYPART_LARM1:
00096				SkelGroupSkins[12] = Texture'creatures.dwarfwd_armlegpain';
00097				SkelGroupSkins[14] = Texture'creatures.dwarfwd_bodypain';
00098				break;
00099			case BODYPART_RARM1:
00100				SkelGroupSkins[2] = Texture'creatures.dwarfwd_armlegpain';
00101				SkelGroupSkins[13] = Texture'creatures.dwarfwd_bodypain';
00102				break;
00103			case BODYPART_LLEG1:
00104				SkelGroupSkins[9] = Texture'creatures.dwarfwd_armlegpain';
00105				SkelGroupSkins[10] = Texture'creatures.dwarfwd_armlegpain';
00106				break;
00107			case BODYPART_RLEG1:
00108				SkelGroupSkins[8] = Texture'creatures.dwarfwd_armlegpain';
00109				SkelGroupSkins[11] = Texture'creatures.dwarfwd_armlegpain';
00110				break;
00111		}
00112		return None;
00113	}
00114	
00115	defaultproperties
00116	{
00117	     BashSound=Sound'CreaturesSnd.Dwarves.hit27'
00118	     BreathSound=Sound'CreaturesSnd.Dwarves.breath01'
00119	     AcquireSound=Sound'CreaturesSnd.Dwarves.attack27'
00120	     AmbientWaitSounds(0)=Sound'CreaturesSnd.Dwarves.attack07'
00121	     AmbientWaitSounds(1)=Sound'CreaturesSnd.Dwarves.anger04'
00122	     AmbientWaitSounds(2)=Sound'CreaturesSnd.Dwarves.ambient06'
00123	     AmbientFightSounds(0)=Sound'CreaturesSnd.Dwarves.attack25'
00124	     AmbientFightSounds(1)=Sound'CreaturesSnd.Dwarves.attack23'
00125	     AmbientFightSounds(2)=Sound'CreaturesSnd.Dwarves.attack08'
00126	     AmbientWaitSoundDelay=11.000000
00127	     AmbientFightSoundDelay=4.500000
00128	     HitSound1=Sound'CreaturesSnd.Dwarves.hit36'
00129	     HitSound2=Sound'CreaturesSnd.Dwarves.hit31'
00130	     HitSound3=Sound'CreaturesSnd.Dwarves.hit37'
00131	     Die=Sound'CreaturesSnd.Dwarves.death05'
00132	     Die2=Sound'CreaturesSnd.Dwarves.death08'
00133	     Die3=Sound'CreaturesSnd.Dwarves.death26'
00134	     SkelMesh=5
00135	}

End Source Code