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

XGame.UT2003GameProfile


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
class UT2003GameProfile extends GameProfile;

/*
 * This class is a concrete subclass of GameProfile that
 * refers directly to the UT2003 ladder.
 *
 * author: capps 8/20/02
 */

// completely overrides GameProfile
function ContinueSinglePlayerGame(LevelInfo level, optional bool bReplace)
{
	local Controller C;
	local PlayerController PC;

	// set character, player in current game
	PC = none;
	for ( C=level.ControllerList; C!=None; C=C.NextController ) 
	{
		if ( PlayerController(C) != None ) {
			PC = PlayerController(C);
			break;		
		}
	}
	if ( PC == none ) {
		return;
	}

	if (level.game.SavePackage(PackageName)) {
		Log("SINGLEPLAYER UT2003GameProfile::ContinueSinglePlayerGame() saved profile.");
	} else {
		Log("SINGLEPLAYER UT2003GameProfile::ContinueSinglePlayerGame() save profile FAILED.");
	}

	PC.ConsoleCommand("disconnect");
	if ( bReplace ) 
		PC.Player.GUIController.ReplaceMenu("xInterface.UT2SinglePlayerMain");				
	else
		PC.Player.GUIController.OpenMenu("xInterface.UT2SinglePlayerMain");				
}

defaultproperties
{
     TeamSymbolName="TeamSymbols_UT2003.sym01"
     SalaryCap=3500
     ladderrung(0)=1
     GameLadderName="xGame.UT2003LadderInfo"
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: pr 5-2-2018 12:35:50.000 - Creation time: sk 18-3-2018 09:50:23.053 - Created with UnCodeX