UE3:UTGame instance functions (UT3): Difference between revisions
Auto-generated page |
m added missing members |
||
(2 intermediate revisions by the same user not shown) | |||
Line 39: | Line 39: | ||
====AllowBecomeActivePlayer==== | ====AllowBecomeActivePlayer==== | ||
{{code|function [[bool]] '''AllowBecomeActivePlayer''' ({{cl|PlayerController}} '''P''')}} | {{code|function [[bool]] '''AllowBecomeActivePlayer''' ({{cl|PlayerController}} '''P''')}} | ||
<!-- enter function description --> | |||
====AllowBecomeHero==== | |||
{{code|function [[bool]] '''AllowBecomeHero''' ({{cl|UTPlayerReplicationInfo}} '''PendingHeroPRI''')}} | |||
<!-- enter function description --> | <!-- enter function description --> | ||
Line 121: | Line 126: | ||
'''Overrides:''' {{tl|CheckScore|GameInfo|instance functions}} | '''Overrides:''' {{tl|CheckScore|GameInfo|instance functions}} | ||
<!-- enter function description --> | |||
====CheckTeamSize==== | |||
{{code|function [[bool]] '''CheckTeamSize''' ()}} | |||
<!-- enter function description --> | <!-- enter function description --> | ||
Line 154: | Line 164: | ||
'''Overrides:''' {{tl|DiscardInventory|GameInfo|instance functions}} | '''Overrides:''' {{tl|DiscardInventory|GameInfo|instance functions}} | ||
<!-- enter function description --> | |||
====DoEndGameMapVote==== | |||
{{code|function '''DoEndGameMapVote''' ()}} | |||
<!-- enter function description --> | <!-- enter function description --> | ||
Line 236: | Line 251: | ||
'''Returns:''' | '''Returns:''' | ||
:the first mutator in the mutator list that's a UTMutator | :the first mutator in the mutator list that's a UTMutator | ||
====GetBestLocker==== | |||
{{code|function {{cl|UTWeaponLocker}} '''GetBestLocker''' ({{cl|Pawn}} '''PlayerPawn''')}} | |||
<!-- enter function description --> | |||
====GetBotSkillLevel==== | |||
{{code|function [[int]] '''GetBotSkillLevel''' ()}} | |||
<!-- enter function description --> | |||
====GetBotTeam==== | ====GetBotTeam==== | ||
Line 275: | Line 300: | ||
Returns the next map to play. If we are in story mode, we need to go back to the map selection menu | Returns the next map to play. If we are in story mode, we need to go back to the map selection menu | ||
====GetNextPickupIndex==== | |||
{{code|function [[int]] '''GetNextPickupIndex''' ()}} | |||
<!-- enter function description --> | |||
====GetSinglePlayerResult==== | ====GetSinglePlayerResult==== | ||
Line 297: | Line 327: | ||
====InitializeBot==== | ====InitializeBot==== | ||
{{code|function '''InitializeBot''' ({{cl|UTBot}} '''NewBot''', {{cl|UTTeamInfo}} '''BotTeam''', const out {{tl|CharacterInfo|UTCustomChar_Data|structs}} '''BotInfo''')}} | {{code|function '''InitializeBot''' ({{cl|UTBot}} '''NewBot''', {{cl|UTTeamInfo}} '''BotTeam''', const out {{tl|CharacterInfo|UTCustomChar_Data|structs}} '''BotInfo''')}} | ||
<!-- enter function description --> | |||
====InitializeMapListManager==== | |||
{{code|function '''InitializeMapListManager''' (optional [[string]] '''MLMOverrideClass''')}} | |||
<!-- enter function description --> | |||
====InitializeVoteCollector==== | |||
{{code|function '''InitializeVoteCollector''' ()}} | |||
<!-- enter function description --> | <!-- enter function description --> | ||
Line 307: | Line 347: | ||
====IsAWinner==== | ====IsAWinner==== | ||
{{code|function [[bool]] '''IsAWinner''' ({{cl|PlayerController}} '''C''')}} | {{code|function [[bool]] '''IsAWinner''' ({{cl|PlayerController}} '''C''')}} | ||
<!-- enter function description --> | |||
====IsMPOrHardBotsGame==== | |||
{{code|function [[bool]] '''IsMPOrHardBotsGame''' ()}} | |||
<!-- enter function description --> | |||
====IsValidMutatorsForLikeTheBackOfMyHand==== | |||
{{code|function [[bool]] '''IsValidMutatorsForLikeTheBackOfMyHand''' ()}} | |||
<!-- enter function description --> | <!-- enter function description --> | ||
Line 413: | Line 463: | ||
parses the given player's recognized speech into bot orders, etc | parses the given player's recognized speech into bot orders, etc | ||
====ProvideHeroBonus==== | |||
{{code|function '''ProvideHeroBonus''' ()}} | |||
Give bonus hero points when a hero is spawned to anyone who has never been a hero | |||
====RatePlayerStart==== | ====RatePlayerStart==== | ||
Line 516: | Line 571: | ||
'''Parameters:''' | '''Parameters:''' | ||
* ''PC'' - the player controller to initialize muting for | * ''PC'' - the player controller to initialize muting for | ||
====ShotTeammate==== | |||
{{code|function '''ShotTeammate''' ({{cl|UTBetrayalPRI}} '''InstigatorPRI''', {{cl|UTBetrayalPRI}} '''HitPRI''', {{cl|Pawn}} '''ShotInstigator''', {{cl|Pawn}} '''HitPawn''')}} | |||
<!-- enter function description --> | |||
====ShouldRespawn==== | ====ShouldRespawn==== | ||
Line 541: | Line 601: | ||
====SkipPlaySound==== | ====SkipPlaySound==== | ||
{{code|function [[bool]] '''SkipPlaySound''' ()}} | {{code|function [[bool]] '''SkipPlaySound''' ()}} | ||
<!-- enter function description --> | |||
====SpaceAvailable==== | |||
{{code|function [[bool]] '''SpaceAvailable''' ({{cl|UTBot}} '''InBot''')}} | |||
<!-- enter function description --> | <!-- enter function description --> | ||
Line 574: | Line 639: | ||
This is our TrackMemory functor where we can put anything we want to do every N seconds. * | This is our TrackMemory functor where we can put anything we want to do every N seconds. * | ||
====TravelFailed==== | |||
{{code|function '''TravelFailed''' ([[string]] '''TravelURL''', [[string]] '''Error''', optional [[string]] '''ErrorCode''')}} | |||
'''Overrides:''' {{tl|TravelFailed|GameInfo|instance functions}} | |||
Called from the WorldInfo when travelling fails | |||
====UpdateGameplayMuteList==== | ====UpdateGameplayMuteList==== |
Latest revision as of 04:50, 16 August 2009
- UTGame instance functions in other games:
- 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
ActivateVehicleFactory
ActivateVehicleFactory() Called by UTVehicleFactory in its PostBeginPlay()
AddBot
AddInitialBots
AddMutator
Overrides: GameInfo.AddMutator
AdjustSkill
AllowBecomeActivePlayer
AllowBecomeHero
AllowCheats
Overrides: GameInfo.AllowCheats
AllowCheats - Allow cheating in single player games and coop games.
AllowClientToTeleport
This function allows the server to override any requested teleport attempts from a client
Returns:
- returns true if the teleport is allowed
AssignHoverboard
AtCapacity
Overrides: GameInfo.AtCapacity
BecomeSpectator
BroadcastDeathMessage
Overrides: GameInfo.BroadcastDeathMessage
CampaignSkillAdjust
Called to adjust skill when bot respawns
CanDisableObjective
CanSpectate
Overrides: GameInfo.CanSpectate
ChangeName
Overrides: GameInfo.ChangeName
CheckEndGame
Overrides: GameInfo.CheckEndGame
CheckMaxLives
CheckScore
Overrides: GameInfo.CheckScore
CheckTeamSize
ChoosePlayerStart
Overrides: GameInfo.ChoosePlayerStart
(Description copied from GameInfo.ChoosePlayerStart)
ChoosePlayerStart()
Return the 'best' player start for this player to start from. PlayerStarts are rated by RatePlayerStart().
Parameters:
- Player - is the controller for whom we are choosing a playerstart
- InTeam - specifies the Player's team (if the player hasn't joined a team yet)
Returns:
- NavigationPoint chosen as player start (usually a PlayerStart)
ContinueSeamlessTravel
DecodeEvent
DiscardInventory
Overrides: GameInfo.DiscardInventory
DoEndGameMapVote
DoMapVote
DominatingVictory
DriverEnteredVehicle
Overrides: GameInfo.DriverEnteredVehicle
DriverLeftVehicle
Overrides: GameInfo.DriverLeftVehicle
EndGame
Overrides: GameInfo.EndGame
EndRound
ends the current round; sends the game into state RoundOver and sets the ViewTarget for all players to be the given actor
EndSpree
FindNewObjectives
re-evaluate objectives for players because the specified one has been changed/completed
FindPlayerStart
Overrides: GameInfo.FindPlayerStart
FindPlayerStart() Return the 'best' player start for this player to start from. PlayerStarts are rated by RatePlayerStart().
Parameters:
- Player - is the controller for whom we are choosing a playerstart
- InTeam - specifies the Player's team (if the player hasn't joined a team yet)
- IncomingName - specifies the tag of a teleporter to use as the Playerstart
Returns:
- NavigationPoint chosen as player start (usually a PlayerStart)
ForceRespawn
ForceRespawn() returns true if dead players should respawn immediately
GetAutoObjectiveFor
Returns:
- an objective that should be recommended to the given player based on their auto objective settings and the current game state
GetBaseUTMutator
Returns:
- the first mutator in the mutator list that's a UTMutator
GetBestLocker
GetBotSkillLevel
GetBotTeam
GetCurrentMapCycleIndex
Returns:
- the index of the current map in the given list (used when starting up a server to start counting at the current map)
GetEndGameConditionRule
GetHandicapNeed
return a value based on how much this pawn needs help
GetLocationFor
Returns through outparameters what location message to play Returns true if it returned message information
GetMapTypeRule
GetNextMap
Overrides: GameInfo.GetNextMap
Returns the next map to play. If we are in story mode, we need to go back to the map selection menu
GetNextPickupIndex
GetSinglePlayerResult
Retuns: the results of the match.
GetTravelType
Overrides: GameInfo.GetTravelType
Returns true if we want to travel_absolute
InitGameReplicationInfo
Overrides: GameInfo.InitGameReplicationInfo
InitializeBot
InitializeMapListManager
InitializeVoteCollector
InitialProcessingIsComplete
IsAWinner
IsMPOrHardBotsGame
IsValidMutatorsForLikeTheBackOfMyHand
JustStarted
KillBot
Killed
Overrides: GameInfo.Killed
LevelRecommendedPlayers
Logout
Overrides: GameInfo.Logout
MatchIsInProgress
Overrides: GameInfo.MatchIsInProgress
NeedPlayers
Overrides: GameInfo.NotifyNavigationChanged
notification when a NavigationPoint becomes blocked or unblocked
NotifySpree
ObjectiveDisabled
PickupQuery
Overrides: GameInfo.PickupQuery
(Description copied from GameInfo.PickupQuery)
PickupQuery:
Called when pawn has a chance to pick Item up (i.e. when
the pawn touches a weapon pickup). Should return true if
he wants to pick it up, false if he does not want it.
Parameters:
- Other - the Pawn that wants the item
- ItemClass - the Inventory class the Pawn can pick up
- Pickup - the Actor containing that item (this may be a PickupFactory or it may be a DroppedPickup)
Returns:
- whether or not the Pickup actor should give its item to Other
PlayEndOfMatchMessage
PlayRegularEndOfMatchMessage
PlayStartupMessage
ProcessServerTravel
Overrides: GameInfo.ProcessServerTravel
ProcessSpeechRecognition
parses the given player's recognized speech into bot orders, etc
ProvideHeroBonus
Give bonus hero points when a hero is spawned to anyone who has never been a hero
RatePlayerStart
Overrides: GameInfo.RatePlayerStart
RatePlayerStart() Return a score representing how desireable a playerstart is.
Parameters:
- P - is the playerstart being rated
- Team - is the team of the player choosing the playerstart
- Player - is the controller choosing the playerstart
Returns:
- playerstart score
ReduceDamage
Overrides: GameInfo.ReduceDamage
RegisterServer
Overrides: GameInfo.RegisterServer
Registers the dedicated server with the online service
RegisterVehicle
RemovePlayerFromMuteLists
Removes the specified player from all other player's mute lists
Parameters:
- PC - Player controller to remove from other mute lists
ResetAllPlayerMuteListsToSpectatorChannel
Reset everyone's channel to the same thing and then rebuild the gameplay mute lists for each player
RestartGame
Overrides: GameInfo.RestartGame
RestartPlayer
Overrides: GameInfo.RestartPlayer
ScoreKill
Overrides: GameInfo.ScoreKill
SetAlias
SetEndGameFocus
SetGameSpeed
Overrides: GameInfo.SetGameSpeed
SetPause
Overrides: GameInfo.SetPause
Only allow local players to pause
SetupPlayerMuteList
Sets up the voice mute list based upon this player's team/spectator state. Opponents are added the specified player's mute list and vice versa.
Parameters:
- PC - the player controller to initialize muting for
ShotTeammate
ShouldRespawn
Overrides: GameInfo.ShouldRespawn
ShowPathTo
displays the path to the given base for the given player
SinglePlayerAddBot
SkipCinematics
SkipPlaySound
SpaceAvailable
SpawnBot
SpawnWait
StartMatch
Overrides: GameInfo.StartMatch
TooManyBots
Look at the current game rules and determine if there are too many bots. In a single player game, this function will always return false since the teams are preset and changes are not allowed.
Parameters:
- BotToRemove - The Bot to remove
TrackMemoryFunctor
This is our TrackMemory functor where we can put anything we want to do every N seconds. *
TravelFailed
Overrides: GameInfo.TravelFailed
Called from the WorldInfo when travelling fails
UpdateGameplayMuteList
Overrides: GameInfo.UpdateGameplayMuteList
This is called once the client has sent the server their unique net id. It is now possible to set up their mute list.
Parameters:
- PC - the playercontroller that is ready for updates
UpdateGameSettings
Overrides: GameInfo.UpdateGameSettings
Used to update any changes in game settings that need to be published to players that are searching for games
UpdateGameSettingsCounts
Overrides: GameInfo.UpdateGameSettingsCounts
Updates the online subsystem's information for player counts so that LAN matches can show the correct player counts
ViewObjective
WantFastSpawnFor
WriteOnlinePlayerScores
Overrides: GameInfo.WriteOnlinePlayerScores
Write player scores used in skill calculations