The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

UE2:U2DeathMatch (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> Info >> GameInfo >> DialogGameInfo >> U2GameInfo >> U2DeathMatch
Package: 
U2
Direct subclass:
U2TeamGame

U2DeathMatch.uc $Author: Mfox $ $Date: 2/27/03 3:10p $ $Revision: 34 $

Constants

STAGE_PreGame

Value: 0


STAGE_MidGame

Value: 1


STAGE_PostGame

Value: 2


Properties

Property group 'U2DeathMatch'

bChangeLevels

Type: bool

Modifiers: config

level change in RestartGame()

Default value: True

GoalScore

Type: int

Modifiers: config

frag limit for death match, team score in team games

Default value: 20

MultiplayerCountdown

Type: int


Default value: 3

MultiplayerPlayerWait

Type: int

how long to wait for human players before giving up and adding bots

Default value: 33

RestartDelay

Type: float

Modifiers: globalconfig

seconds to wait after game ends before restarting

Default value: 15.0

Score_EnemyKill

Type: float


Default value: 1.0

Score_Suicide

Type: float


Default value: -1.0

StandAloneCountdown

Type: int


Default value: 1

TimeLimit

Type: int

Modifiers: config

time limit in minutes

Internal variables

bAlreadyChanged

Type: bool

level change in progress (U2PlayerController.ServerRestartGame() calls U2GameInfo.RestartGame() when any player presses Fire())

bForceRespawn

Type: bool

Modifiers: config

force players to respawn (for games such as LMS where delaying respawn helps the player)

bJumpMatch

Type: bool

Modifiers: config

boost PlayerJumpZScaling() when true

BotConfig

Type: U2BotInfo


BotConfigType

Type: class<U2BotInfo>


Default value: Class'U2.U2BotInfo'

BotPackageClassStr

Type: string


Default value: "U2AIOld.U2NPCControllerBotOld"

bRequireReady

Type: bool


bTournament

Type: bool

Modifiers: globalconfig

wait for all players before starting game

CountDown

Type: int

count down to game start

CountDownMessage

Type: string

Modifiers: localized


Default value: " seconds until play starts!"

ElapsedTime

Type: int


GameEndedMessage

Type: string

Modifiers: localized


Default value: "wins the match!"

GameGoal

Type: string

Modifiers: localized


Default value: "frags wins the match."

GBestPlayer

Type: Controller


LastPlayerStartSpot

Type: NavigationPoint

last place player looking for start spot started from

LastStartSpot

Type: NavigationPoint

last place any player started from

LevelRatingDefensive

Type: float

used by bots to determine whether their inventory ok defensively

Default value: -1.0

LevelRatingOffensive

Type: float

used by bots to determine whether their inventory ok offensively

Default value: -1.0

NoNameChange

Type: string

Modifiers: localized


Default value: " is already in use."

NotReadyMessage

Type: string

Modifiers: localized


Default value: "You are NOT READY!"

ReadyMessage

Type: string

Modifiers: localized


Default value: "You are READY!"

RemainingBots

Type: int

number of Bots to add

RestartTime

Type: float

Level.TimeSecond time to start next game

SingleWaitingMessage

Type: string

Modifiers: localized


Default value: "Press Fire to start."

Stage

Type: byte


StartMessage

Type: string

Modifiers: localized


Default value: "The match has begun!"

TourneyMessage

Type: string

Modifiers: localized


Default value: "Waiting for other players."

WaitingMessage1

Type: string

Modifiers: localized


Default value: "Waiting for ready signals."

WaitingMessage2

Type: string

Modifiers: localized


Default value: "(Use your fire button to toggle ready!)"

Default values

Property Value
bDelayedStart True
BeaconName "DM"
bForcedWeaponSwitch False
bLoggingGame True
bMultiWeaponStay True
bNoisyWeaponChanges True
bPauseable False
bRestartLevel False
bSinglePlayerMission False
bUseCombatSounds False
FriendlyDamageScale 1.0
GameName "DeathMatch"
GameReplicationInfoClass Class'U2.U2GameReplicationInfo'
MapPrefix "DM"
MaxDifficulty 7
PlayerSpeedRatio 1.8
SpeedRatio 1.8

Functions

Events

AcceptInventory

event AcceptInventory (Pawn PlayerPawn)

Overrides: GameInfo.AcceptInventory


InitGame

event InitGame (string Options, out string Error)

Overrides: DialogGameInfo.InitGame


PostBeginPlay

event PostBeginPlay ()

Overrides: U2GameInfo.PostBeginPlay


PostLogin

event PostLogin (PlayerController NewPlayer, bool bTraveling)

Overrides: U2GameInfo.PostLogin


Timer

event Timer ()

Overrides: GameInfo.Timer


Other instance functions

See U2DeathMatch instance functions.