UE2:UT2K4GameProfile instance functions (UT2004)
Object >> GameProfile >> UT2003GameProfile >> UT2K4GameProfile (instance functions) |
;Other member categories for this class::
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
AddHistoryRecord
Adds the current match info to the history table
AddTeammate
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
Overrides: GameProfile.CanChangeTeam
never allow team change unless we're god
CheatSkipMatch
Overrides: GameProfile.CheatSkipMatch
completedLadder
return true when the ladder has been completed
ContinueSinglePlayerGame
Overrides: UT2003GameProfile.ContinueSinglePlayerGame
Called on gamerestart
CreateProfile
call this when you create a new profile, this will set the protection data
enableLadder
Enable a ladder, this makes sure a ladder is not reset Special case, ladderid=-1 this will set all ladders except the championship
GetAltLevel
get the alternative match ID
GetAltTeamRoster
get the alternative team roster
GetBotPosition
return the position of the bot in the botstats array
GetBotPrice
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
return a random or selected challenge game
GetCustomLadder
return the id of a custom ladder
GetCustomLadderProgress
get the progres of a custom ladder
GetEnemyTeamName
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
returns the friendly name of the gametype selected
GetMatchDescription
Overrides: GameProfile.GetMatchDescription
Get the friendly game type name
GetMatchInfo
Overrides: GameProfile.GetMatchInfo
Overwritten to get alt matches
GetMaxTeamSize
return the maximum size of a team that you manage
getMinimalEntryFeeFor
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
return the minimal fee for x team members, only uses team mates that are healthy
GetNumTeammatesForMatch
Overrides: GameProfile.GetNumTeammatesForMatch
return number of teammates needed for currently selected match assumes player team always gets an odd player
GetNumTeammatesForMatchInfo
return number of teammates needed for the provided assumes player team always gets an odd player
GetSelectedLevel
return the level ID selected, or -1 if no selection
GetSelectedMatchInfo
return a selected UT2K4MatchInfo record
GetTeamPosition
Find the position of this team in the list
HasAltLevel
check if there is an alternative level
HasFullTeam
Returns true when the player has a full team
Initialize
Overrides: GameProfile.Initialize
initialize the profile, called at the beginning of each game
InjureTeamMate
Find the worst team mate(s) and injure it Only one injury is supported
IsCheater
return true of the Cheat flag has been set
IsLocked
return if a profile has been locked out for character unlocking
IsTeamGametype
return true if it's a team game type
IsTeammate
Return true if the bot is a teammate
LengthOfLadder
return the length of a selected ladder
LoadProfile
call this when you load the profile, it will lock the profile when the PlayerIDHash has changed
openChampionshipLadder
return true when the ChampionshipLadder is within reach
PayTeamMates
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
Generate stats for the last match, all except the balance change
procPhantomMatches
Create information about other matches played by other teams
RandomIncreaseBotFee
Increase fee of a few bots that belong to TeamId
RankTeamMates
Rank team mates based on how they did in the last match
RegisterCustomLadder
add a new custom ladder
RegisterGame
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
Overrides: GameProfile.ReleaseTeammate
remove teammate from the team return false if not removed because not on team
ReportCheat
Overrides: GameProfile.ReportCheat
Will be called in case of a cheat
ResetSelectedLevel
remove a previous set selection
SetAltTeamRoster
set the alternative team roster
SetCustomLadderProgress
set the progress of a custom ladder
SetSelectedLevel
set a level selection
StartNewMatch
Overrides: GameProfile.StartNewMatch
Send the player to the next match in the given ladder
StoredPlayerID
return the stored player id, use this to check a profile before loading it
UpgradeGP