RuneI
Class PlayerZombie2

source: c:\runehov\RuneI\Classes\PlayerZombie2.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Pawn
         |
         +--Engine.PlayerPawn
            |
            +--RuneI.RunePlayer
               |
               +--RuneI.PlayerZombie2
Direct Known Subclasses:None

class PlayerZombie2
extends RuneI.RunePlayer

//============================================================================= // PlayerZombie2. //=============================================================================

Function Summary
 int BodyPartForPolyGroup(int polygroup)
     
//============================================================
//
// BodyPartForPolyGroup
//
//============================================================
 EMatterType MatterForJoint(int joint)
     
//============================================================
//
// MatterForJoint
//
// Returns what kind of material joint is associated with
//============================================================
 Texture PainSkin(int BodyPart)
     
//============================================================
//
// PainSkin
//
// returns the pain skin for a given polygroup
//============================================================



Source Code


00001	//=============================================================================
00002	// PlayerZombie2.
00003	//=============================================================================
00004	class PlayerZombie2 extends RunePlayer;
00005	
00006	//============================================================
00007	//
00008	// MatterForJoint
00009	//
00010	// Returns what kind of material joint is associated with
00011	//============================================================
00012	function EMatterType MatterForJoint(int joint)
00013	{
00014		return MATTER_EARTH;
00015	}
00016	
00017	//============================================================
00018	//
00019	// PainSkin
00020	//
00021	// returns the pain skin for a given polygroup
00022	//============================================================
00023	function Texture PainSkin(int BodyPart)
00024	{
00025		return None;
00026	}
00027	
00028	//============================================================
00029	//
00030	// BodyPartForPolyGroup
00031	//
00032	//============================================================
00033	function int BodyPartForPolyGroup(int polygroup)
00034	{
00035		switch(polygroup)
00036		{
00037			case 1:	case 3:			return BODYPART_RARM1;
00038			case 2:					return BODYPART_RLEG1;
00039			case 4:					return BODYPART_TORSO;
00040			case 5:					return BODYPART_HEAD;
00041			case 6:					return BODYPART_LLEG1;
00042			case 7:	case 8:			return BODYPART_LARM1;
00043		}
00044		return BODYPART_BODY;
00045	}
00046	
00047	//================================================
00048	//
00049	// SeveredLimbClass
00050	//
00051	//================================================
00052	function class<Actor> SeveredLimbClass(int BodyPart)
00053	{
00054		switch(BodyPart)
00055		{
00056			case BODYPART_LARM1:
00057				return class'ZombieLArm';
00058			case BODYPART_RARM1:
00059				return class'ZombieRArm';
00060			case BODYPART_HEAD:
00061				return class'ZombieHead';
00062		}
00063	
00064		return None;
00065	}
00066	
00067	defaultproperties
00068	{
00069	     WeaponThrowSound=Sound'CreaturesSnd.Ragnar.ragpickup01'
00070	     WeaponDropSound=Sound'CreaturesSnd.Ragnar.ragpickup01'
00071	     JumpGruntSound(0)=None
00072	     JumpGruntSound(1)=None
00073	     JumpGruntSound(2)=None
00074	     FallingDeathSound=Sound'CreaturesSnd.Ragnar.ragsarkland02'
00075	     FallingScreamSound=None
00076	     EdgeGrabSound=Sound'CreaturesSnd.Ragnar.ragpickup02'
00077	     KickSound=Sound'CreaturesSnd.Ragnar.ragpickup02'
00078	     HitSoundLow(0)=Sound'CreaturesSnd.Zombie.zombiehit01'
00079	     HitSoundLow(1)=Sound'CreaturesSnd.Zombie.zombiehit01'
00080	     HitSoundLow(2)=Sound'CreaturesSnd.Zombie.zombiehit01'
00081	     HitSoundMed(0)=Sound'CreaturesSnd.Zombie.zombiehit02'
00082	     HitSoundMed(1)=Sound'CreaturesSnd.Zombie.zombiehit02'
00083	     HitSoundMed(2)=Sound'CreaturesSnd.Zombie.zombiehit02'
00084	     HitSoundHigh(0)=Sound'CreaturesSnd.Zombie.zombiehit03'
00085	     HitSoundHigh(1)=Sound'CreaturesSnd.Zombie.zombiehit03'
00086	     HitSoundHigh(2)=Sound'CreaturesSnd.Zombie.zombiehit03'
00087	     BerserkYellSound(0)=Sound'CreaturesSnd.Zombie.zombiearm01'
00088	     BerserkYellSound(1)=Sound'CreaturesSnd.Zombie.zombiearm01'
00089	     BerserkYellSound(2)=Sound'CreaturesSnd.Zombie.zombiearm01'
00090	     BerserkYellSound(3)=Sound'CreaturesSnd.Zombie.zombiearm02'
00091	     BerserkYellSound(4)=Sound'CreaturesSnd.Zombie.zombiearm02'
00092	     BerserkYellSound(5)=Sound'CreaturesSnd.Zombie.zombiearm02'
00093	     CarcassType=Class'RuneI.PlayerZombie2Carcass'
00094	     Die=Sound'CreaturesSnd.Zombie.zombiedeath01'
00095	     Die2=Sound'CreaturesSnd.Zombie.zombiedeath03'
00096	     Die3=Sound'CreaturesSnd.Zombie.zombiedeath01'
00097	     LandGrunt=Sound'CreaturesSnd.Ragnar.ragsarkhit02'
00098	     SkelMesh=11
00099	     SkelGroupSkins(1)=Texture'Players.Ragnarz_armleg1'
00100	     SkelGroupSkins(2)=Texture'Players.Ragnarz_armleg1'
00101	     SkelGroupSkins(3)=Texture'Players.Ragnarz_armleg1'
00102	     SkelGroupSkins(4)=Texture'Players.Ragnarz_body1'
00103	     SkelGroupSkins(5)=Texture'Players.Ragnarz_head1'
00104	     SkelGroupSkins(6)=Texture'Players.Ragnarz_armleg1'
00105	     SkelGroupSkins(7)=Texture'Players.Ragnarz_armleg1'
00106	     SkelGroupSkins(8)=Texture'Players.Ragnarz_armleg1'
00107	     SkelGroupSkins(9)=Texture'Players.Ragnarz_head1'
00108	}

End Source Code