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
00050
00051
00052
00053
00054
00055
00056

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 {
	GameLadderName="xGame.UT2003LadderInfo"
	LadderRung(0)=1			// skips the tutorial and goes straight to trainingday
	Playerteam(0)=""
	Playerteam(1)=""
	Playerteam(2)=""
	Playerteam(3)=""
	Playerteam(4)=""
	Playerteam(5)=""
	Playerteam(6)=""
	TeamSymbolName="TeamSymbols_UT2003.sym01"
	SalaryCap=3500
}

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