RuneI
Class SarkAxe

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

class SarkAxe
extends RuneI.Sark

//============================================================================= // SarkAxe. //=============================================================================

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
//============================================================
 void PostBeginPlay()
     
//============================================================
//
// PostBeginPlay
//
//============================================================



Source Code


00001	//=============================================================================
00002	// SarkAxe.
00003	//=============================================================================
00004	class SarkAxe expands Sark;
00005	
00006	
00007	//============================================================
00008	//
00009	// PostBeginPlay
00010	//
00011	//============================================================
00012	
00013	function PostBeginPlay()
00014	{
00015		local actor f;
00016	
00017		Super.PostBeginPlay();
00018	
00019		f = Spawn(Class'SarkEyeAxe');
00020		AttachActorToJoint(f, JointNamed('head'));
00021	}
00022	
00023	//============================================================
00024	//
00025	// PainSkin
00026	//
00027	// returns the pain skin for a given polygroup
00028	//============================================================
00029	function Texture PainSkin(int BodyPart)
00030	{
00031		return None;
00032	}
00033	
00034	//============================================================
00035	//
00036	// BodyPartForPolyGroup
00037	//
00038	//============================================================
00039	function int BodyPartForPolyGroup(int polygroup)
00040	{
00041		switch(polygroup)
00042		{
00043			case 1: case 14:		return BODYPART_LLEG1;
00044			case 2: case 7:			return BODYPART_RLEG1;
00045			case 5:					return BODYPART_HEAD;
00046			case 6: case 8:			return BODYPART_RARM1;
00047			case 11: case 13:		return BODYPART_LARM1;
00048			case 3: case 4: case 9:
00049			case 10: case 12:		return BODYPART_TORSO;
00050		}
00051	
00052		return BODYPART_BODY;
00053	}
00054	
00055	//============================================================
00056	//
00057	// ApplyGoreCap
00058	//
00059	//============================================================
00060	function ApplyGoreCap(int BodyPart)
00061	{
00062		switch(BodyPart)
00063		{
00064			case BODYPART_HEAD:
00065				SkelGroupSkins[10] = Texture'runefx.gore_bone';
00066				SkelGroupFlags[10] = SkelGroupFlags[10] & ~POLYFLAG_INVISIBLE;
00067				break;
00068		}
00069	}
00070	
00071	//================================================
00072	//
00073	// SeveredLimbClass
00074	//
00075	//================================================
00076	function class<Actor> SeveredLimbClass(int BodyPart)
00077	{
00078		switch(BodyPart)
00079		{
00080			case BODYPART_LARM1:
00081			case BODYPART_RARM1:
00082				return class'AxeSarkArm';
00083			case BODYPART_HEAD:
00084				return class'SarkAxeHead';
00085		}
00086	
00087		return None;
00088	}
00089	
00090	defaultproperties
00091	{
00092	     JumpSound=Sound'CreaturesSnd.Sark.sark4jump01'
00093	     AcquireSound=Sound'CreaturesSnd.Sark.sark4see'
00094	     AmbientWaitSounds(0)=Sound'CreaturesSnd.Sark.sark4ambient01'
00095	     AmbientWaitSounds(1)=Sound'CreaturesSnd.Sark.sark4ambient02'
00096	     AmbientWaitSounds(2)=Sound'CreaturesSnd.Sark.sark4ambient03'
00097	     AmbientFightSounds(0)=Sound'CreaturesSnd.Sark.sark4attack01'
00098	     AmbientFightSounds(1)=Sound'CreaturesSnd.Sark.sark4attack02'
00099	     AmbientFightSounds(2)=Sound'CreaturesSnd.Sark.sark4attack03'
00100	     AmbientWaitSoundDelay=8.000000
00101	     AmbientFightSoundDelay=5.000000
00102	     StartWeapon=Class'RuneI.DwarfBattleAxe'
00103	     Health=350
00104	     HitSound1=Sound'CreaturesSnd.Sark.sark4hit01'
00105	     HitSound2=Sound'CreaturesSnd.Sark.sark4hit02'
00106	     HitSound3=Sound'CreaturesSnd.Sark.sark4hit03'
00107	     Die=Sound'CreaturesSnd.Sark.sark4death01'
00108	     Die2=Sound'CreaturesSnd.Sark.sark4death02'
00109	     Die3=Sound'CreaturesSnd.Sark.sark4death03'
00110	     LandSoundWood=Sound'CreaturesSnd.Sark.sarkland03'
00111	     LandSoundMetal=Sound'CreaturesSnd.Sark.sarkland03'
00112	     LandSoundStone=Sound'CreaturesSnd.Sark.sarkland03'
00113	     LandSoundFlesh=Sound'CreaturesSnd.Sark.sarkland03'
00114	     LandSoundIce=Sound'CreaturesSnd.Sark.sarkland03'
00115	     LandSoundSnow=Sound'CreaturesSnd.Sark.sarkland03'
00116	     LandSoundEarth=Sound'CreaturesSnd.Sark.sarkland03'
00117	     LandSoundWater=Sound'CreaturesSnd.Sark.sarkland03'
00118	     LandSoundMud=Sound'CreaturesSnd.Sark.sarkland03'
00119	     LandSoundLava=Sound'CreaturesSnd.Sark.sarkland03'
00120	     SkelMesh=17
00121	     SkelGroupSkins(0)=Texture'Players.Ragnarragd_arms'
00122	     SkelGroupSkins(1)=Texture'Players.Ragnarss_armleg'
00123	     SkelGroupSkins(2)=Texture'Players.Ragnarss_armleg'
00124	     SkelGroupSkins(3)=Texture'Players.Ragnarss_torso'
00125	     SkelGroupSkins(4)=Texture'Players.Ragnarsa_armor'
00126	     SkelGroupSkins(5)=Texture'Players.Ragnarsa_head'
00127	     SkelGroupSkins(6)=Texture'Players.Ragnarss_armleg'
00128	     SkelGroupSkins(7)=Texture'Players.Ragnarsa_armor'
00129	     SkelGroupSkins(8)=Texture'Players.Ragnarsa_armor'
00130	     SkelGroupSkins(9)=Texture'Players.Ragnarsa_armor'
00131	     SkelGroupSkins(10)=Texture'Players.Ragnarsa_armor'
00132	     SkelGroupSkins(11)=Texture'Players.Ragnarss_armleg'
00133	     SkelGroupSkins(12)=Texture'Players.Ragnarsa_armor'
00134	     SkelGroupSkins(13)=Texture'Players.Ragnarsa_armor'
00135	     SkelGroupSkins(14)=Texture'Players.Ragnarsa_armor'
00136	}

End Source Code