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

Engine.GameMessage


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
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
/**
 * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.
 */
class GameMessage extends LocalMessage;

var localized string SwitchLevelMessage;
var localized string LeftMessage;
var localized string FailedTeamMessage;
var localized string FailedPlaceMessage;
var localized string FailedSpawnMessage;
var localized string EnteredMessage;
var	localized string MaxedOutMessage;
var	localized string ArbitrationMessage;
var localized string OvertimeMessage;
var localized string GlobalNameChange;
var localized string NewTeamMessage;
var localized string NewTeamMessageTrailer;
var localized string NoNameChange;
var localized string VoteStarted;
var localized string VotePassed;
var localized string MapVoteEnabled;
var localized string MapVoteInitiated;
var localized string MustHaveStats;
var localized string CantBeSpectator;
var localized string CantBePlayer;
var localized string BecameSpectator;

var localized string NewPlayerMessage;
var localized string KickWarning;
var localized string NewSpecMessage, SpecEnteredMessage;

var localized string KickVoteMessage;
var localized string AnonKickVoteMessage;
var localized string KickVotePassMessage;
var localized string KickVoteSpamMessage;
var localized string MapVoteSubmitted;

//
// Messages common to GameInfo derivatives.
//
static function string GetString(
	optional int Switch,
	optional bool bPRI1HUD,
	optional PlayerReplicationInfo RelatedPRI_1,
	optional PlayerReplicationInfo RelatedPRI_2,
	optional Object OptionalObject
	)
{
	switch (Switch)
	{
		case 0:
			return Default.OverTimeMessage;
			break;
		case 1:
			if (RelatedPRI_1 == None)
                return Default.NewPlayerMessage;

			return RelatedPRI_1.GetPlayerAlias()$Default.EnteredMessage;
			break;
		case 2:
			if (RelatedPRI_1 == None)
				return "";

			return RelatedPRI_1.OldName@Default.GlobalNameChange@RelatedPRI_1.GetPlayerAlias();
			break;
		case 3:
			if (RelatedPRI_1 == None)
				return "";
			if (OptionalObject == None)
				return "";

            return RelatedPRI_1.GetPlayerAlias()@Default.NewTeamMessage@TeamInfo(OptionalObject).GetHumanReadableName()$Default.NewTeamMessageTrailer;
			break;
		case 4:
			if (RelatedPRI_1 == None)
				return "";

			return RelatedPRI_1.GetPlayerAlias()$Default.LeftMessage;
			break;
		case 5:
			return Default.SwitchLevelMessage;
			break;
		case 6:
			return Default.FailedTeamMessage;
			break;
		case 7:
			return Default.MaxedOutMessage;
			break;
		case 8:
			return Default.NoNameChange;
			break;
        case 9:
            return RelatedPRI_1.GetPlayerAlias()@Default.VoteStarted;
            break;
        case 10:
            return Default.VotePassed;
            break;
        case 11:
			return Default.MustHaveStats;
			break;
	case 12:
		return Default.CantBeSpectator;
		break;
	case 13:
		return Default.CantBePlayer;
		break;
	case 14:
		return RelatedPRI_1.GetPlayerAlias()@Default.BecameSpectator;
		break;
	case 15:
		return Default.KickWarning;
		break;
	case 16:
            if (RelatedPRI_1 == None)
                return Default.NewSpecMessage;

            return RelatedPRI_1.GetPlayerAlias()$Default.SpecEnteredMessage;
            break;

	case 17:
		return default.MapVoteEnabled;

	case 18:
		return default.MapVoteInitiated;

	case 19:
		return Repl(Repl(default.KickVoteMessage, "`v", RelatedPRI_1.GetPlayerAlias()), "`p", RelatedPRI_2.GetPlayerAlias());

	case 20:
		return Repl(default.AnonKickVoteMessage, "`p", RelatedPRI_2.GetPlayerAlias()); // Not a bug, I use the 2nd PRI here

	case 21:
		return Repl(default.KickVotePassMessage, "`p", RelatedPRI_1.GetPlayerAlias());

	case 22:
		return Repl(default.KickVoteSpamMessage, "`v", RelatedPRI_1.GetPlayerAlias());
	}
	return "";
}

defaultproperties
{
   SwitchLevelMessage="Switching Levels"
   LeftMessage=" left the game."
   FailedTeamMessage="Could not find team for player"
   FailedPlaceMessage="Could not find a starting spot"
   FailedSpawnMessage="Could not spawn player"
   EnteredMessage=" entered the game."
   MaxedOutMessage="Server is already at capacity."
   ArbitrationMessage="Arbitration Message (c.f. GameInfo.uc)"
   OvertimeMessage="Score tied at the end of regulation. Sudden Death Overtime!!!"
   GlobalNameChange="changed name to"
   NewTeamMessage="is now on"
   NoNameChange="Name is already in use."
   VoteStarted="started a vote."
   VotePassed="Vote passed."
   MapVoteEnabled="Voting has been enabled."
   MapVoteInitiated="Voting initiated."
   MustHaveStats="Must have stats enabled to join this server."
   CantBeSpectator="Sorry, you cannot become a spectator at this time."
   CantBePlayer="Sorry, you cannot become an active player at this time."
   BecameSpectator="became a spectator."
   NewPlayerMessage="A new player entered the game."
   KickWarning="You are about to be kicked for idling!"
   NewSpecMessage="A spectator entered the game/"
   SpecEnteredMessage=" joined as a spectator."
   KickVoteMessage="`v voted to kick `p."
   AnonKickVoteMessage="A kick vote was placed against `p."
   KickVotePassMessage="The vote to kick `p has passed."
   KickVoteSpamMessage="`v was kicked for spamming kick votes."
   MapVoteSubmitted="`p voted for `m"
   Name="Default__GameMessage"
   ObjectArchetype=LocalMessage'Engine.Default__LocalMessage'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: tr 31-1-2018 17:18:30.000 - Creation time: sk 18-3-2018 10:01:07.875 - Created with UnCodeX