RuneI
Class SarkSpawn

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

class SarkSpawn
extends RuneI.Sark

//============================================================================= // SarkSpawn. //=============================================================================

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	// SarkSpawn.
00003	//=============================================================================
00004	class SarkSpawn 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'SarkEyeNone');
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 2:					return BODYPART_LLEG1;
00044			case 3:					return BODYPART_RLEG1;
00045			case 5:					return BODYPART_LARM1;
00046			case 10:				return BODYPART_RARM1;
00047			case 4: case 6: case 7:
00048			case 8: case 9: case 11:return BODYPART_TORSO;
00049			case 1:					return BODYPART_HEAD;
00050		}
00051		return BODYPART_BODY;
00052	}
00053	
00054	//============================================================
00055	//
00056	// ApplyGoreCap
00057	//
00058	//============================================================
00059	function ApplyGoreCap(int BodyPart)
00060	{
00061		switch(BodyPart)
00062		{
00063			case BODYPART_LARM1:
00064				SkelGroupSkins[7] = Texture'runefx.gore_bone';
00065				SkelGroupFlags[7] = SkelGroupFlags[7] & ~POLYFLAG_INVISIBLE;
00066				break;
00067			case BODYPART_RARM1:
00068				SkelGroupSkins[9] = Texture'runefx.gore_bone';
00069				SkelGroupFlags[9] = SkelGroupFlags[9] & ~POLYFLAG_INVISIBLE;
00070				break;
00071			case BODYPART_HEAD:
00072				SkelGroupSkins[11] = Texture'runefx.gore_bone';
00073				SkelGroupFlags[11] = SkelGroupFlags[11] & ~POLYFLAG_INVISIBLE;
00074				break;
00075		}
00076	}
00077	
00078	//================================================
00079	//
00080	// SeveredLimbClass
00081	//
00082	//================================================
00083	function class<Actor> SeveredLimbClass(int BodyPart)
00084	{
00085		switch(BodyPart)
00086		{
00087			case BODYPART_LARM1:
00088			case BODYPART_RARM1:
00089				return class'SarkArm';
00090			case BODYPART_HEAD:
00091				return class'SarkHead';
00092		}
00093		return None;
00094	}
00095	
00096	defaultproperties
00097	{
00098	     JumpSound=Sound'CreaturesSnd.Sark.sark1jump01'
00099	     AcquireSound=Sound'CreaturesSnd.Sark.sark1see'
00100	     AmbientWaitSounds(0)=Sound'CreaturesSnd.Sark.sark1ambient01'
00101	     AmbientWaitSounds(1)=Sound'CreaturesSnd.Sark.sark1ambient02'
00102	     AmbientWaitSounds(2)=Sound'CreaturesSnd.Sark.sark1ambient03'
00103	     AmbientFightSounds(0)=Sound'CreaturesSnd.Sark.sark1attack01'
00104	     AmbientFightSounds(1)=Sound'CreaturesSnd.Sark.sark1attack02'
00105	     AmbientFightSounds(2)=Sound'CreaturesSnd.Sark.sark1attack03'
00106	     AmbientWaitSoundDelay=10.000000
00107	     AmbientFightSoundDelay=7.000000
00108	     StartWeapon=Class'RuneI.SarkClaw'
00109	     HitSound1=Sound'CreaturesSnd.Sark.sark1hit01'
00110	     HitSound2=Sound'CreaturesSnd.Sark.sark1hit02'
00111	     HitSound3=Sound'CreaturesSnd.Sark.sark1hit03'
00112	     Die=Sound'CreaturesSnd.Sark.sark1death01'
00113	     Die2=Sound'CreaturesSnd.Sark.sark1death02'
00114	     Die3=Sound'CreaturesSnd.Sark.sark1death03'
00115	     LandSoundWood=Sound'CreaturesSnd.Sark.sarkland01'
00116	     LandSoundMetal=Sound'CreaturesSnd.Sark.sarkland01'
00117	     LandSoundStone=Sound'CreaturesSnd.Sark.sarkland01'
00118	     LandSoundFlesh=Sound'CreaturesSnd.Sark.sarkland01'
00119	     LandSoundIce=Sound'CreaturesSnd.Sark.sarkland01'
00120	     LandSoundSnow=Sound'CreaturesSnd.Sark.sarkland01'
00121	     LandSoundEarth=Sound'CreaturesSnd.Sark.sarkland01'
00122	     LandSoundWater=Sound'CreaturesSnd.Sark.sarkland01'
00123	     LandSoundMud=Sound'CreaturesSnd.Sark.sarkland01'
00124	     LandSoundLava=Sound'CreaturesSnd.Sark.sarkland01'
00125	     SkelMesh=12
00126	     SkelGroupSkins(0)=Texture'Players.Ragnarragd_arms'
00127	     SkelGroupSkins(1)=Texture'Players.Ragnarss_head'
00128	     SkelGroupSkins(2)=Texture'Players.Ragnarss_armleg'
00129	     SkelGroupSkins(3)=Texture'Players.Ragnarss_armleg'
00130	     SkelGroupSkins(4)=Texture'Players.Ragnarss_torso'
00131	     SkelGroupSkins(5)=Texture'Players.Ragnarss_armleg'
00132	     SkelGroupSkins(6)=Texture'Players.Ragnarss_armleg'
00133	     SkelGroupSkins(7)=Texture'Players.Ragnarss_armleg'
00134	     SkelGroupSkins(8)=Texture'Players.Ragnarss_armleg'
00135	     SkelGroupSkins(9)=Texture'Players.Ragnarss_armleg'
00136	     SkelGroupSkins(10)=Texture'Players.Ragnarss_armleg'
00137	     SkelGroupSkins(11)=Texture'Players.Ragnarragd_arms'
00138	}

End Source Code