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

BonusPack.LMSMessage


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
// ====================================================================
//  Class: BonusPack.LMSMessage
//
//  For displaying localized messages related to the Last Man Standing game type.
//
//  Written by James Golding
//  (c) 2002, Epic Games, Inc.  All Rights Reserved
// ====================================================================

#exec OBJ LOAD FILE=TauntPack.uax

class LMSMessage extends LocalMessage;

var	localized string 	YouAreCamperMessage;
var			  sound		YouAreCamperSound;	// OBSOLETE

var localized string 	SomeoneIsCamperMessage;
var localized string 	SomeoneIsCamperMessageTrailer;
var			  sound		SomeoneIsCamperSound;	// OBSOLETE

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

	case 1: // Someone is a camper
		if (RelatedPRI_1 == None)
			 return "";

		return Default.SomeoneIsCamperMessage@RelatedPRI_1.PlayerName@Default.SomeoneIsCamperMessageTrailer@"("$RelatedPRI_1.GetLocationName()$")";
	}
}

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 a camper
		if(Default.YouAreCamperSound != None)
			P.PlayStatusAnnouncement('Camper', 1, true);
		break;
	}
}

defaultproperties
{
	bFadeMessage=True
	bIsSpecial=True
	bIsUnique=True
	Lifetime=6
	bBeep=False
    DrawColor=(R=255,G=0,B=128,A=255)

	YouAreCamperMessage="You Are Camping!"
	SomeoneIsCamperMessage=" "
	SomeoneIsCamperMessageTrailer="Is Camping!"

	StackMode=SM_Down
    PosY=0.1
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Di 5.9.2006 22:27:06.000 - Creation time: Do 14.8.2014 09:58:43.946 - Created with UnCodeX