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

BonusPack.MutantMessage


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
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
// ====================================================================
//  Class: BonusPack.MutantMessage
//
//  For displaying localized messages related to the Mutant game type.
//
//  Written by James Golding
//  (c) 2002, Epic Games, Inc.  All Rights Reserved
// ====================================================================

#exec OBJ LOAD FILE=GameSounds.uax

class MutantMessage extends LocalMessage;

var localized string    YouAreMutantMessage;

var localized string    SomeoneIsMutantMessage;
var localized string    SomeoneIsMutantMessageTrailer;
var localized string    FFAMessage;
var localized string    BottomFeederMessage;
var localized string    NotBottomFeederMessage;

static function string GetString(
    optional int SwitchNum,
    optional PlayerReplicationInfo RelatedPRI_1, 
    optional PlayerReplicationInfo RelatedPRI_2,
    optional Object OptionalObject 
    )
{
    switch(SwitchNum)
    {
    case 0: // You are the Mutant
        return Default.YouAreMutantMessage;

    case 1: // Someone is the Mutant
        if (RelatedPRI_1 == None)
             return "";

        return Default.SomeoneIsMutantMessage@RelatedPRI_1.PlayerName@Default.SomeoneIsMutantMessageTrailer;

    case 2: // First blood becomes Mutant!
        return Default.FFAMessage;

    case 3: // You are the Bottom Feeder!
        return Default.BottomFeederMessage;

    case 4: // No longer Bottom Feeder!
        return Default.NotBottomFeederMessage;
    }
}

static simulated function ClientReceive( 
    PlayerController P,
    optional int SwitchNum,
    optional PlayerReplicationInfo RelatedPRI_1, 
    optional PlayerReplicationInfo RelatedPRI_2,
    optional Object OptionalObject
    )
{
    Super.ClientReceive(P, SwitchNum, RelatedPRI_1, RelatedPRI_2, OptionalObject);

    switch(SwitchNum)
    {
    case 0: // You are the Mutant
        P.PlayStatusAnnouncement('you_have_mutated', 1, true);
        break;

    case 1: // Someone is the Mutant
        P.PlayStatusAnnouncement('new_mutant', 1, true);
        break;

    case 2: // First blood becomes Mutant!
        P.PlayAnnouncement(sound'GameSounds.UT2K3Fanfare11', 1, true);
        break;

    case 3: // You are the Bottom Feeder!
        P.PlayStatusAnnouncement('bottom_feeder', 1, true);
        break;

    case 4: // No longer Bottom Feeder!
        P.PlayAnnouncement(sound'GameSounds.UT2K3Fanfare08', 1, true);
        break;
    }
}

defaultproperties
{
     YouAreMutantMessage="You Have Mutated!"
     SomeoneIsMutantMessage=" "
     SomeoneIsMutantMessageTrailer="Has Mutated!"
     FFAMessage="First Blood Mutates!"
     BottomFeederMessage="You Are The Bottom Feeder!"
     NotBottomFeederMessage="No Longer Bottom Feeder!"
     bIsUnique=Wahr
     bFadeMessage=Wahr
     Lifetime=6
     DrawColor=(B=128,G=0)
     StackMode=SM_Down
     PosY=0.242000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Fr 30.3.2007 08:43:50.000 - Creation time: Mo 16.4.2007 11:20:50.265 - Created with UnCodeX