RuneI
Class EatenLizard

source: c:\runehov\RuneI\Classes\EatenLizard.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Effects
         |
         +--Engine.Debris
            |
            +--RuneI.DiscardedHealth
               |
               +--RuneI.EatenLizard
Direct Known Subclasses:None

class EatenLizard
extends RuneI.DiscardedHealth

//============================================================================= // EatenLizard. //=============================================================================

Function Summary
 
simulated
HitWall(vector HitNormal, Actor Wall)
 
simulated
Landed(vector HitNormal, Actor HitActor)



Source Code


00001	//=============================================================================
00002	// EatenLizard.
00003	//=============================================================================
00004	class EatenLizard expands DiscardedHealth;
00005	
00006	simulated function HitWall(vector HitNormal, actor Wall)
00007	{
00008		local int i;
00009		local Debris d;
00010		local vector loc;
00011		
00012		Super.HitWall(HitNormal, Wall);
00013	
00014		PlaySound(Sound'OtherSnd.Pickups.pickupmeatsmash01', SLOT_Pain);
00015	
00016		for(i = 0; i < 10; i++)
00017		{
00018			loc = Location + VRand() * 8;
00019			d = Spawn(Class'DebrisFlesh',,, loc);
00020			if(d != None)
00021			{
00022				d.SetSize(0.2 + FRand() * 0.2);
00023				d.SetTexture(SkelGroupSkins[0]);
00024				d.Velocity = HitNormal * 175 + VRand() * 85;
00025			}
00026		}
00027		
00028		Destroy();
00029	}
00030		
00031	simulated function Landed(vector HitNormal, actor HitActor)
00032	{
00033		HitWall(HitNormal, HitActor);
00034	}
00035	
00036	defaultproperties
00037	{
00038	     DrawScale=0.800000
00039	     DesiredFatness=110
00040	     CollisionRadius=5.000000
00041	     bCollideWorld=False
00042	     Skeletal=SkelModel'creatures.Lizard'
00043	}

End Source Code