class Message_Gameplay extends CriticalEventPlus;

var localized string	GetInMessage;
var localized string	GetOutMessage;
var localized string	TooManyCarsMessage;
var localized string	FlipCarMessage;
var localized string	WrongWayMessage;
var localized string	NxtChkPtMessage;
var localized string    RaceStartedMessage;
var localized string	NotReadyMessage;
var localized string	FinishedMessage;
var localized string	LapFinishedMessage;
var localized string    ResetStage[4];
var localized string 	CountStage[5];
var localized string    PowerStage[4];
var localized string    maxedoutmessage;
var localized string    winnermessage;
var localized string    losermessage;
var localized string    scoremessage;
var localized string    ustoleflag;
var localized string    otherstoleflag;
var localized string    flagresetted;

static function string GetString(
	optional int Switch,
	optional PlayerReplicationInfo RelatedPRI_1,
	optional PlayerReplicationInfo RelatedPRI_2,
	optional Object OptionalObject
	)
{
	if(switch>=99 && switch <=104)
		return Default.CountStage[(switch-99)];

    if(switch>=105 && switch <=108)
        return default.ResetStage[(switch-105)];

    if(switch>=109 && switch <=112)
        return default.PowerStage[(switch-109)];

	switch(Switch)
	{
	case 0:
		return Default.NxtChkPtMessage;
		break;

	case 1:
		return Default.WrongWayMessage;
		break;

	case 2:
		return Default.FinishedMessage;
		break;

	case 3:
		return Default.NotReadyMessage;
        break;
	case 4:
	     return default.maxedoutmessage;
	     break;
    //case 5:
		//return Default.LapFinishedMessage$(class'RcRHud'.static.FormatTime(RcPlayerReplication(RelatedPRI_1).LastLapTime));
		//break;
    case 6:
         return default.winnermessage;
         break;
    case 7:
         return default.losermessage;
         break;
    case 8:
         return default.scoremessage;
         break;
    case 9:
         return default.ustoleflag;
         break;
    case 10:
         return default.flagresetted;
         break;
    case 11:
         return default.otherstoleflag;
         break;
	}
}

defaultproperties
{
     WrongWayMessage="Wrong Checkpoint !"
     NxtChkPtMessage="Checkpoint !"
     NotReadyMessage="Cannot Start race until all players Ready."
     FinishedMessage="Finished !"
     LapFinishedMessage="Lap Time : "
     ResetStage(0)="Resetting in 3 seconds"
     ResetStage(1)="Resetting in 2 seconds"
     ResetStage(2)="Resetting in 1 seconds"
     ResetStage(3)="GO!"
     CountStage(0)="Get ready...."
     CountStage(1)="Get ready....3"
     CountStage(2)="Get ready....2"
     CountStage(3)="Get ready....1"
     CountStage(4)="START!"
     PowerStage(0)="Power loss!"
     PowerStage(1)="Power loss!"
     PowerStage(2)="Power loss!"
     PowerStage(3)="Power Restored GO!"
     MaxedOutMessage="No more spots available"
     winnermessage="U won the match!"
     losermessage="U lost the match!"
     scoremessage="U scored a point !"
     ustoleflag="U have the flag!"
     otherstoleflag="Someone else has the flag!"
     flagresetted="Flag resetted"
     bIsConsoleMessage=False
     bBeep=True
     DrawColor=(G=128,R=128)
     StackMode=SM_Down
     PosY=0.280000
}
