Botpack
Class UTMasterCreatureChunk

source: e:\games\UnrealTournament\Botpack\Classes\UTMasterCreatureChunk.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Decoration
         |
         +--Engine.Carcass
            |
            +--Botpack.UTCreatureChunks
               |
               +--Botpack.UTMasterCreatureChunk
Direct Known Subclasses:TBossMasterChunk, TFemaleMasterChunk, TMaleMasterChunk

class UTMasterCreatureChunk
extends Botpack.UTCreatureChunks

//============================================================================= // UTMasterCreatureChunk //=============================================================================
Variables
 PlayerReplicationInfo PlayerRep
 bool bChunked


Function Summary
 void InitVelocity(Actor Other)
 void Initfor(Actor Other)
 
simulated
Tick(float DeltaTime)



Source Code


00001	//=============================================================================
00002	// UTMasterCreatureChunk
00003	//=============================================================================
00004	class UTMasterCreatureChunk extends UTCreatureChunks;
00005	
00006	var PlayerReplicationInfo PlayerRep;
00007	var bool bChunked;
00008	
00009	replication
00010	{
00011		// Things the server should send to the client.
00012		unreliable if( Role==ROLE_Authority )
00013			PlayerRep;
00014	}
00015	
00016	
00017	simulated function Tick(float DeltaTime)
00018	{
00019		if ( PlayerRep != None )
00020			PlayerOwner = PlayerRep;
00021		if ( !bChunked && (Physics != PHYS_None) && bBounce && (Level.NetMode == NM_Client) ) //only if client
00022			ClientExtraChunks();
00023		bChunked = true;
00024		Disable('Tick');
00025	}
00026	
00027	function Initfor(actor Other)
00028	{
00029		Super.InitFor(Other);
00030		if ( Level.NetMode != NM_Client ) //only if server
00031			ClientExtraChunks();
00032	}
00033	
00034	function InitVelocity(Actor Other)
00035	{
00036		Velocity = Other.Velocity;
00037		CarcassAnim = Other.AnimSequence;
00038		CarcHeight = Other.CollisionHeight;
00039	}
00040	
00041	defaultproperties
00042	{
00043	     TrailSize=0.500000
00044	     CarcHeight=39.000000
00045	}

End Source Code