RuneI
Class SarkSword

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

class SarkSword
extends RuneI.Sark

//============================================================================= // SarkSword. //=============================================================================

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	// SarkSword.
00003	//=============================================================================
00004	class SarkSword 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'SarkEyeSword');
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 12:		return BODYPART_LLEG1;
00044			case 2: case 13:		return BODYPART_RLEG1;
00045			case 4: case 11:		return BODYPART_LARM1;
00046			case 9: case 14:		return BODYPART_RARM1;
00047			case 3: case 5:	case 6:
00048			case 7: case 8: case 10:
00049			case 0:					return BODYPART_TORSO;
00050			case 15:				return BODYPART_HEAD;
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_LARM1:
00065				SkelGroupSkins[6] = Texture'runefx.gore_bone';
00066				SkelGroupFlags[6] = SkelGroupFlags[6] & ~POLYFLAG_INVISIBLE;
00067				break;
00068			case BODYPART_RARM1:
00069				SkelGroupSkins[8] = Texture'runefx.gore_bone';
00070				SkelGroupFlags[8] = SkelGroupFlags[8] & ~POLYFLAG_INVISIBLE;
00071				break;
00072			case BODYPART_HEAD:
00073				SkelGroupSkins[10] = Texture'runefx.gore_bone';
00074				SkelGroupFlags[10] = SkelGroupFlags[10] & ~POLYFLAG_INVISIBLE;
00075				break;
00076		}
00077	}
00078	
00079	//================================================
00080	//
00081	// SeveredLimbClass
00082	//
00083	//================================================
00084	function class<Actor> SeveredLimbClass(int BodyPart)
00085	{
00086		switch(BodyPart)
00087		{
00088			case BODYPART_LARM1:
00089			case BODYPART_RARM1:
00090				return class'SarkSwordArm';
00091			case BODYPART_HEAD:
00092				return class'SarkSwordHead';
00093		}
00094		return None;
00095	}
00096	
00097	defaultproperties
00098	{
00099	     JumpSound=Sound'CreaturesSnd.Sark.sark2jump01'
00100	     AcquireSound=Sound'CreaturesSnd.Sark.sark2see'
00101	     AmbientWaitSounds(0)=Sound'CreaturesSnd.Sark.sark2ambient01'
00102	     AmbientWaitSounds(1)=Sound'CreaturesSnd.Sark.sark2ambient02'
00103	     AmbientWaitSounds(2)=Sound'CreaturesSnd.Sark.sark2ambient03'
00104	     AmbientFightSounds(0)=Sound'CreaturesSnd.Sark.sark2attack01'
00105	     AmbientFightSounds(1)=Sound'CreaturesSnd.Sark.sark2attack02'
00106	     AmbientFightSounds(2)=Sound'CreaturesSnd.Sark.sark2attack03'
00107	     AmbientWaitSoundDelay=8.000000
00108	     AmbientFightSoundDelay=7.000000
00109	     StartWeapon=Class'RuneI.DwarfBattleSword'
00110	     Health=300
00111	     HitSound1=Sound'CreaturesSnd.Sark.sark2hit01'
00112	     HitSound2=Sound'CreaturesSnd.Sark.sark2hit02'
00113	     HitSound3=Sound'CreaturesSnd.Sark.sark2hit03'
00114	     Die=Sound'CreaturesSnd.Sark.sark2death01'
00115	     Die2=Sound'CreaturesSnd.Sark.sark2death02'
00116	     Die3=Sound'CreaturesSnd.Sark.sark2death03'
00117	     LandSoundWood=Sound'CreaturesSnd.Sark.sarkland02'
00118	     LandSoundMetal=Sound'CreaturesSnd.Sark.sarkland02'
00119	     LandSoundStone=Sound'CreaturesSnd.Sark.sarkland02'
00120	     LandSoundFlesh=Sound'CreaturesSnd.Sark.sarkland02'
00121	     LandSoundIce=Sound'CreaturesSnd.Sark.sarkland02'
00122	     LandSoundSnow=Sound'CreaturesSnd.Sark.sarkland02'
00123	     LandSoundEarth=Sound'CreaturesSnd.Sark.sarkland02'
00124	     LandSoundWater=Sound'CreaturesSnd.Sark.sarkland02'
00125	     LandSoundMud=Sound'CreaturesSnd.Sark.sarkland02'
00126	     LandSoundLava=Sound'CreaturesSnd.Sark.sarkland02'
00127	     SkelMesh=14
00128	     SkelGroupSkins(0)=Texture'Players.Ragnarsw_armor'
00129	     SkelGroupSkins(1)=Texture'Players.Ragnarsw_armleg'
00130	     SkelGroupSkins(2)=Texture'Players.Ragnarsw_armleg'
00131	     SkelGroupSkins(3)=Texture'Players.Ragnarsw_torso'
00132	     SkelGroupSkins(4)=Texture'Players.Ragnarsw_armleg'
00133	     SkelGroupSkins(5)=Texture'Players.Ragnarsw_armleg'
00134	     SkelGroupSkins(6)=Texture'Players.Ragnarsw_torso'
00135	     SkelGroupSkins(7)=Texture'Players.Ragnarsw_armleg'
00136	     SkelGroupSkins(8)=Texture'Players.Ragnarsw_torso'
00137	     SkelGroupSkins(9)=Texture'Players.Ragnarsw_armleg'
00138	     SkelGroupSkins(10)=Texture'Players.Ragnarsw_torso'
00139	     SkelGroupSkins(11)=Texture'Players.Ragnarsw_armor'
00140	     SkelGroupSkins(12)=Texture'Players.Ragnarsw_armor'
00141	     SkelGroupSkins(13)=Texture'Players.Ragnarsw_armor'
00142	     SkelGroupSkins(14)=Texture'Players.Ragnarsw_armor'
00143	     SkelGroupSkins(15)=Texture'Players.Ragnarsw_head'
00144	}

End Source Code