RuneI
Class EmptyStein

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

class EmptyStein
extends RuneI.DiscardedHealth

//============================================================================= // EmptyStein. //=============================================================================

Function Summary
 vector DropVelocity(Pawn P)
 
simulated
HitWall(vector HitNormal, Actor Wall)



Source Code


00001	//=============================================================================
00002	// EmptyStein.
00003	//=============================================================================
00004	class EmptyStein expands DiscardedHealth;
00005	
00006	
00007	function vector DropVelocity(Pawn P)
00008	{
00009		local vector X, Y, Z;
00010		local vector vel;
00011	
00012		GetAxes(P.Rotation, X, Y, Z);
00013		vel = Y * 150 + vect(0, 0, -400);
00014	
00015		return(vel);
00016	}
00017	
00018	simulated function HitWall(vector HitNormal, actor Wall)
00019	{
00020		local int i;
00021		local Debris d;
00022		local vector loc;
00023	
00024		Super.HitWall(HitNormal, Wall);
00025	
00026		PlaySound(Sound'OtherSnd.Pickups.pickupsteinsmash01', SLOT_Pain);
00027		
00028		for(i = 0; i < 10; i++)
00029		{
00030			loc = Location + VRand() * 8;
00031			d = Spawn(Class'DebrisStone',,, loc);
00032			if(d != None)
00033			{
00034				d.SetSize(0.2 + FRand() * 0.2);
00035				d.SetTexture(SkelGroupSkins[0]);
00036				d.Velocity = HitNormal * 175 + VRand() * 85;
00037			}
00038		}
00039		
00040		Destroy();
00041	}
00042		
00043	
00044	defaultproperties
00045	{
00046	     bLookFocusPlayer=True
00047	     CollisionRadius=5.000000
00048	     bCollideWorld=False
00049	     Skeletal=SkelModel'objects.Stein'
00050	}

End Source Code