UnrealI
Class MaleOneBot

source: e:\games\UnrealTournament\UnrealI\Classes\MaleOneBot.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Pawn
         |
         +--UnrealShare.Bots
            |
            +--UnrealShare.HumanBot
               |
               +--UnrealShare.MaleBot
                  |
                  +--UnrealI.MaleOneBot
Direct Known Subclasses:None

class MaleOneBot
extends UnrealShare.MaleBot

//============================================================================= // MaleOneBot. //=============================================================================

Function Summary
 void BeginPlay()
 void ForceMeshToExist()
 
simulated
PlayMetalStep()



Source Code


00001	//=============================================================================
00002	// MaleOneBot.
00003	//=============================================================================
00004	class MaleOneBot extends MaleBot;
00005	
00006	#exec AUDIO IMPORT FILE="..\UnrealShare\Sounds\male\metal01.WAV" NAME="metwalk1" GROUP="Male"
00007	#exec AUDIO IMPORT FILE="..\UnrealShare\Sounds\male\metal02.WAV" NAME="metwalk2" GROUP="Male"
00008	#exec AUDIO IMPORT FILE="..\UnrealShare\Sounds\male\metal03.WAV" NAME="metwalk3" GROUP="Male"
00009	
00010	function ForceMeshToExist()
00011	{
00012		Spawn(class'MaleOne');
00013	}
00014	
00015	function BeginPlay()
00016	{
00017		Super.BeginPlay();
00018	}
00019	
00020	simulated function PlayMetalStep()
00021	{
00022		local sound step;
00023		local float decision;
00024	
00025		if ( !bIsWalking && (Level.Game != None) && (Level.Game.Difficulty > 1) && ((Weapon == None) || !Weapon.bPointing) )
00026			MakeNoise(0.05 * Level.Game.Difficulty);
00027		if ( FootRegion.Zone.bWaterZone )
00028		{
00029			PlaySound(sound 'LSplash', SLOT_Interact, 0.5, false, 1500.0, 1.0);
00030			return;
00031		}
00032	
00033		decision = FRand();
00034		if ( decision < 0.34 )
00035			step = sound'MetWalk1';
00036		else if (decision < 0.67 )
00037			step = sound'MetWalk2';
00038		else
00039			step = sound'MetWalk3';
00040	
00041		if ( bIsWalking )
00042			PlaySound(step, SLOT_Interact, 0.5, false, 400.0, 1.0);
00043		else 
00044			PlaySound(step, SLOT_Interact, 1, false, 1000.0, 1.0);
00045	}
00046	
00047	defaultproperties
00048	{
00049	     CarcassType=Class'UnrealI.MaleOneCarcass'
00050	     Skin=Texture'UnrealShare.Skins.Kurgan'
00051	     Mesh=LodMesh'UnrealI.Male1'
00052	}

End Source Code