1
0
KF2-Dev-Scripts/Engine/Classes/FailedConnect.uc

42 lines
774 B
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
/**
* Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
*/
class FailedConnect extends LocalMessage
abstract;
var localized string FailMessage[4];
static function int GetFailSwitch(string FailString)
{
if ( FailString ~= "NEEDPW" )
return 0;
if ( FailString ~= "WRONGPW" )
return 1;
if ( FailString ~="GAMESTARTED" )
return 2;
return 3;
}
static function string GetString(
optional int Switch,
optional bool bPRI1HUD,
optional PlayerReplicationInfo RelatedPRI_1,
optional PlayerReplicationInfo RelatedPRI_2,
optional Object OptionalObject
)
{
return Default.FailMessage[Clamp(Switch,0,3)];
}
defaultproperties
{
bBeep=false
bIsUnique=True
DrawColor=(R=255,G=0,B=128,A=255)
FontSize=1
}