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

UTGame.UTDuelGame

Extends
UTTeamGame

Core.Object
|   
+-- Engine.Actor
   |   
   +-- Engine.Info
      |   
      +-- Engine.GameInfo
         |   
         +-- UTGame.UTGame
            |   
            +-- UTGame.UTDeathmatch
               |   
               +-- UTGame.UTTeamGame
                  |   
                  +-- UTGame.UTDuelGame

Variables Summary
boolbRotateQueueEachKill
intCurrentRound
intNumRounds
array<UTDuelPRI>Queue
Inherited Variables from UTGame.UTTeamGame
bAllowNonTeamChat, bForceAllRed, bPlayersBalanceTeams, bScoreTeamKills, bScoreVictimsTarget, bSpawnInTeamArea, CustomTeamName[2], FlagKillMessageName, FriendlyFireScale, PendingTeamSwap, SwapRequestTime, TeamAIType[2], TeamFactions[2], TeammateBoost, TeamScoreMessageClass, Teams[2]

Functions Summary
functionUTBot AddBot (optional string botName, optional bool bUseTeamIndex, optional int TeamIndex))
function AddToQueue (UTDuelPRI Who))
functionbool AllowMutator (string MutatorClassName ))
functionbool CanSpectate (PlayerController Viewer, PlayerReplicationInfo ViewTarget ))
functionbool ChangeTeam (Controller Other, int num, bool bNewTeam))
functionbool CheckEndGame (PlayerReplicationInfo Winner, string Reason))
functionController GetPlayerFromQueue ()))
event HandleSeamlessTravelPlayer (out Controller C))
event InitGame (string Options, out string ErrorMessage))
function Logout (Controller Exiting))
event PostLogin (PlayerController NewPlayer))
event PostSeamlessTravel ()))
function ProcessServerTravel (string URL, optional bool bAbsolute))
function ResetLevel ()))
function ResetLevel ()))
RoundOver
function RestartPlayer (Controller aPlayer))
function ScoreKill (Controller Killer, Controller Other))
function StartBots ()
function StartHumans ()))
function UpdateCombatants ()))
function UpdateQueuePositions ()))
Inherited Functions from UTGame.UTTeamGame
AddBlueBots, AddRedBots, AdjustSkill, AllowClientToTeleport, AnnounceScore, CampaignSkillAdjust, CanSpectate, ChangeTeam, CheckEndGame, CheckMaxLives, CheckScore, CreateTeam, DominatingVictory, FindNewObjectives, FindVictimsTarget, ForceRespawn, GetBotTeam, GetHandicapNeed, GetSeamlessTravelActorList, HandleSeamlessTravelPlayer, InitGame, InitializeBot, IsAWinner, IsWinningTeam, LevelRecommendedPlayers, Logout, NearGoal, NotifyKilled, OverridePRI, ParseSpeechRecipients, PickTeam, PlayRegularEndOfMatchMessage, PostLogin, PreBeginPlay, ProcessSpeechOrders, ProcessSpeechRecognition, RatePlayerStart, ReduceDamage, ScoreKill, SendFlagKillMessage, SetEndGameFocus, SetTeam, ShowPathTo, TooManyBots
Inherited Functions from UTGame.UTDeathmatch
GetHandicapNeed, WantsPickups, WriteOnlineStats

States Summary
RoundOver Source code
state RoundOver
ResetLevel


Variables Detail

bRotateQueueEachKill Source code

var bool bRotateQueueEachKill;
whether to rotate the queue each kill instead of each round (Survival mode)

CurrentRound Source code

var int CurrentRound;
current round number

NumRounds Source code

var config int NumRounds;
how many rounds before we switch maps

Queue Source code

var array<UTDuelPRI> Queue;
queue of players that will take on the winner


Functions Detail

AddBot Source code

function UTBot AddBot ( optional string botName, optional bool bUseTeamIndex, optional int TeamIndex) )

AddToQueue Source code

function AddToQueue ( UTDuelPRI Who) )

AllowMutator Source code

static function bool AllowMutator ( string MutatorClassName ) )

CanSpectate Source code

function bool CanSpectate ( PlayerController Viewer, PlayerReplicationInfo ViewTarget ) )
returns true if Viewer is allowed to spectate ViewTarget

ChangeTeam Source code

function bool ChangeTeam ( Controller Other, int num, bool bNewTeam) )

CheckEndGame Source code

function bool CheckEndGame ( PlayerReplicationInfo Winner, string Reason) )

GetPlayerFromQueue Source code

function Controller GetPlayerFromQueue ( ) )
removes a player from the queue, sets it up to play, and returns the Controller @note: doesn't spawn the player in (i.e. doesn't call RestartPlayer()), calling code is responsible for that

HandleSeamlessTravelPlayer Source code

event HandleSeamlessTravelPlayer ( out Controller C) )

InitGame Source code

event InitGame ( string Options, out string ErrorMessage) )

Logout Source code

function Logout ( Controller Exiting) )

PostLogin Source code

event PostLogin ( PlayerController NewPlayer) )

PostSeamlessTravel Source code

event PostSeamlessTravel ( ) )

ProcessServerTravel Source code

function ProcessServerTravel ( string URL, optional bool bAbsolute) )

ResetLevel Source code

function ResetLevel ( ) )

ResetLevel RoundOver Source code

function ResetLevel ( ) )

RestartPlayer Source code

function RestartPlayer ( Controller aPlayer) )

ScoreKill Source code

function ScoreKill ( Controller Killer, Controller Other) )

StartBots Source code

function StartBots ( )

StartHumans Source code

function StartHumans ( ) )

UpdateCombatants Source code

function UpdateCombatants ( ) )
figures out the new combatants for the next round

UpdateQueuePositions Source code

function UpdateQueuePositions ( ) )
updates QueuePosition for all players in the queue


Defaultproperties

defaultproperties
{
   NumRounds=1
   CurrentRound=1
   bWeaponStay=False
   bIgnoreTeamForVoiceChat=True
   Acronym="Duel"
   Description="1v1"
   ResetTimeDelay=15
   MidgameScorePanelTag="DuelPanel"
   HUDType=Class'UTGame.UTDuelHUD'
   GameName="Duel DeathMatch"
   GoalScore=0
   TimeLimit=5
   PlayerReplicationInfoClass=Class'UTGame.UTDuelPRI'
   OnlineStatsWriteClass=Class'UTGame.UTLeaderboardWriteDUEL'
   OnlineGameSettingsClass=Class'UTGame.UTGameSettingsDUEL'
   Name="Default__UTDuelGame"
   ObjectArchetype=UTTeamGame'UTGame.Default__UTTeamGame'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: Mon 26/11/2007 17:41:22.156 - Created with UnCodeX