Mostly Harmless
UE2:UT2K4GameProfile instance functions (UT2004)
Object >> GameProfile >> UT2003GameProfile >> UT2K4GameProfile (instance functions) |
Contents
- 1 Instance functions
- 1.1 AddHistoryRecord
- 1.2 AddTeammate
- 1.3 CanChangeTeam
- 1.4 CheatSkipMatch
- 1.5 completedLadder
- 1.6 ContinueSinglePlayerGame
- 1.7 CreateProfile
- 1.8 enableLadder
- 1.9 GetAltLevel
- 1.10 GetAltTeamRoster
- 1.11 GetBotPosition
- 1.12 GetBotPrice
- 1.13 GetChallengeGame
- 1.14 GetCustomLadder
- 1.15 GetCustomLadderProgress
- 1.16 GetEnemyTeamName
- 1.17 GetLadderDescription
- 1.18 GetMatchDescription
- 1.19 GetMatchInfo
- 1.20 GetMaxTeamSize
- 1.21 getMinimalEntryFeeFor
- 1.22 getMinimalTeamFee
- 1.23 GetNumTeammatesForMatch
- 1.24 GetNumTeammatesForMatchInfo
- 1.25 GetSelectedLevel
- 1.26 GetSelectedMatchInfo
- 1.27 GetTeamPosition
- 1.28 HasAltLevel
- 1.29 HasFullTeam
- 1.30 Initialize
- 1.31 InjureTeamMate
- 1.32 IsCheater
- 1.33 IsLocked
- 1.34 IsTeamGametype
- 1.35 IsTeammate
- 1.36 LengthOfLadder
- 1.37 LoadProfile
- 1.38 openChampionshipLadder
- 1.39 PayTeamMates
- 1.40 procLastMatchDetails
- 1.41 procPhantomMatches
- 1.42 RandomIncreaseBotFee
- 1.43 RankTeamMates
- 1.44 RegisterCustomLadder
- 1.45 RegisterGame
- 1.46 ReleaseTeammate
- 1.47 ReportCheat
- 1.48 ResetSelectedLevel
- 1.49 SetAltTeamRoster
- 1.50 SetCustomLadderProgress
- 1.51 SetSelectedLevel
- 1.52 StartNewMatch
- 1.53 StoredPlayerID
- 1.54 UpgradeGP
;Other member categories for this class::properties, structs
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Instance functions[edit]
AddHistoryRecord[edit]
Adds the current match info to the history table
AddTeammate[edit]
Overrides: GameProfile.AddTeammate
add teammate to the next available position on the team return false if not added because already on team or no room assumes it's a legal player record
CanChangeTeam[edit]
Overrides: GameProfile.CanChangeTeam
never allow team change unless we're god
CheatSkipMatch[edit]
Overrides: GameProfile.CheatSkipMatch
completedLadder[edit]
return true when the ladder has been completed
ContinueSinglePlayerGame[edit]
Overrides: UT2003GameProfile.ContinueSinglePlayerGame
Called on gamerestart
CreateProfile[edit]
call this when you create a new profile, this will set the protection data
enableLadder[edit]
Enable a ladder, this makes sure a ladder is not reset Special case, ladderid=-1 this will set all ladders except the championship
GetAltLevel[edit]
get the alternative match ID
GetAltTeamRoster[edit]
get the alternative team roster
GetBotPosition[edit]
return the position of the bot in the botstats array
GetBotPrice[edit]
Find the price of this player If increase > 1 increase the fee with that amouth if 1 > increase > 0 multiply the fee with that amouth if increase == 0 do nothing
GetChallengeGame[edit]
return a random or selected challenge game
GetCustomLadder[edit]
return the id of a custom ladder
GetCustomLadderProgress[edit]
get the progres of a custom ladder
GetEnemyTeamName[edit]
Return the team name based on a magic string A magic string starts with a ';', if not asume it's a real team name
GetLadderDescription[edit]
returns the friendly name of the gametype selected
GetMatchDescription[edit]
Overrides: GameProfile.GetMatchDescription
Get the friendly game type name
GetMatchInfo[edit]
Overrides: GameProfile.GetMatchInfo
Overwritten to get alt matches
GetMaxTeamSize[edit]
return the maximum size of a team that you manage
getMinimalEntryFeeFor[edit]
get the minimal fee for this match, based on the entry fee for the match and the minimal fee to pay out to your team mates if you lose. If you don't have enough team mates the result is negative
getMinimalTeamFee[edit]
return the minimal fee for x team members, only uses team mates that are healthy
GetNumTeammatesForMatch[edit]
Overrides: GameProfile.GetNumTeammatesForMatch
return number of teammates needed for currently selected match assumes player team always gets an odd player
GetNumTeammatesForMatchInfo[edit]
return number of teammates needed for the provided assumes player team always gets an odd player
GetSelectedLevel[edit]
return the level ID selected, or -1 if no selection
GetSelectedMatchInfo[edit]
return a selected UT2K4MatchInfo record
GetTeamPosition[edit]
Find the position of this team in the list
HasAltLevel[edit]
check if there is an alternative level
HasFullTeam[edit]
Returns true when the player has a full team
Initialize[edit]
Overrides: GameProfile.Initialize
initialize the profile, called at the beginning of each game
InjureTeamMate[edit]
Find the worst team mate(s) and injure it Only one injury is supported
IsCheater[edit]
return true of the Cheat flag has been set
IsLocked[edit]
return if a profile has been locked out for character unlocking
IsTeamGametype[edit]
return true if it's a team game type
IsTeammate[edit]
Return true if the bot is a teammate
LengthOfLadder[edit]
return the length of a selected ladder
LoadProfile[edit]
call this when you load the profile, it will lock the profile when the PlayerIDHash has changed
openChampionshipLadder[edit]
return true when the ChampionshipLadder is within reach
PayTeamMates[edit]
Pay out the participating team mates and increase their fee A percentage of the match earnings is added/removed from their fee IncreaseFeeOf = number of team mates to pay updateFee = percentage to increase the fee Return the total payment
procLastMatchDetails[edit]
Generate stats for the last match, all except the balance change
procPhantomMatches[edit]
Create information about other matches played by other teams
RandomIncreaseBotFee[edit]
Increase fee of a few bots that belong to TeamId
RankTeamMates[edit]
Rank team mates based on how they did in the last match
RegisterCustomLadder[edit]
add a new custom ladder
RegisterGame[edit]
Overrides: GameProfile.RegisterGame
After a game is completed, this function should be called to record the player's statistics and update the ladder. Currently called from Deathmatch 'MatchOver' state
ReleaseTeammate[edit]
Overrides: GameProfile.ReleaseTeammate
remove teammate from the team return false if not removed because not on team
ReportCheat[edit]
Overrides: GameProfile.ReportCheat
Will be called in case of a cheat
ResetSelectedLevel[edit]
remove a previous set selection
SetAltTeamRoster[edit]
set the alternative team roster
SetCustomLadderProgress[edit]
set the progress of a custom ladder
SetSelectedLevel[edit]
set a level selection
StartNewMatch[edit]
Overrides: GameProfile.StartNewMatch
Send the player to the next match in the given ladder
StoredPlayerID[edit]
return the stored player id, use this to check a profile before loading it