Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

BonusPack.MutantGameReplicationInfo


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
// ====================================================================
//  Class: BonusPack.MutantGameReplicationInfo
//
//  New GRI for Mutant game type. Used to replicate mutant position etc.
//
//  Written by James Golding
//  (c) 2002, Epic Games, Inc.  All Rights Reserved
// ====================================================================

class MutantGameReplicationInfo extends GameReplicationInfo;

var vector                  MutantLocation;
var PlayerReplicationInfo   MutantPRI;

var PlayerReplicationInfo   BottomFeederPRI;

replication
{
    reliable if(Role == ROLE_Authority)
        MutantLocation, MutantPRI, BottomFeederPRI;
}

// every so often - update replication position of Mutant.
function PostBeginPlay()
{
    if(Role == ROLE_Authority)
        SetTimer(0.2, true);
}

function Timer()
{
    local Controller pred;

    pred = xMutantGame(Level.Game).CurrentMutant;

    if(pred != None)
    {
        MutantLocation = pred.Pawn.Location;
    }
    
    super.timer();
}

defaultproperties
{
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Wed 2/8/2006 16:29:42.000 - Creation time: Wed 7/2/2007 19:16:44.750 - Created with UnCodeX