Worst-case scenario: the UEd Goblin wipes the map and burns down your house.

UE2:U2GameInfo (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> Info >> GameInfo >> DialogGameInfo >> U2GameInfo
Package: 
U2
Known classes within U2GameInfo:
GameAIControllerCTF, GameAIControllerImpl, GameAIControllerXMP
Direct subclasses:
AtlantisGameInfo, CutsceneGameInfo, IntroGameInfo, MissionGameInfo, VaultGameInfo, U2DeathMatch, U2TutorialGameInfo

$Workfile: U2GameInfo.uc $ Created By: Mark Poesch Created On: 9/1/2000 $Author: Mfox $ $Date: 3/03/03 5:39p $ $Revision: 98 $

Constants

MaxTeams

Value: 4

max # teams for any game type

GF_NOIMPACTS

Value: 0x01

disable impacts

Properties

Property group 'U2GameInfo'

bBroadcastObjectives

Type: bool

Modifiers: globalconfig


Default value: True

bGiveDefaultWeapon

Type: bool


Default value: True

bKeepTossedPickups

Type: bool

set to false to allow tossed pickups to destroy themselves after a while

bSinglePlayerMission

Type: bool


Default value: True

bUseCombatSounds

Type: bool


Default value: True

DamageByPlayerScalars

Type: float

Array size: 3

Modifiers: config

scale damage to player based on game difficulty (singleplayer only, hard-coded to 3 difficulty levels)

Default value, index 0: 2.0

Default value, index 1: 1.25

Default value, index 2: 1.0

DamageToPlayerScalars

Type: float

Array size: 3

Modifiers: config

scale damage to player based on game difficulty (singleplayer only, hard-coded to 3 difficulty levels)

Default value, index 0: 0.15

Default value, index 1: 0.4

Default value, index 2: 0.75

FriendlyDamageScale

Type: float

Modifiers: config

scale friendly fire damage by this value

MaxRagdollDeaths

Type: int

Modifiers: globalconfig


Default value: 1

PlayerDamageScaleMax

Type: float

Modifiers: config

scale player damage by this value at max difficulty

PlayerDamageScaleMin

Type: float

Modifiers: config

scale player damage by this value at min difficulty

RagdollDetailLevel

Type: int

Modifiers: globalconfig

NOTE (mdf): controls ragdoll hits

Default value: 3

RespawnAppearanceDelay

Type: float


Default value: 0.3

Internal variables

ActiveRagdollDeaths

Type: int


AirControl

Type: float

Modifiers: config

air control varies from one gametype to another

Default value: 0.25

bForcedWeaponSwitch

Type: bool

Modifiers: config

if true, game forces switch to new weapons regardless of priority

Default value: True

bMultiWeaponStay

Type: bool

Modifiers: config

weapons stay parameter for DM and sub game types

BSMColor

Type: Object.Color


Default value:

Member Value
A 255
R 255

BSMTime

Type: float


Default value: 4.0

DefaultFOV

Type: float

if non-zero this will be used for the player's initial fov

GameAIControllerClasses

Type: array<string>

Modifiers: config


GameAIControllers

Type: array<GameAIControllerInterf>


MinPlayers

Type: int

Modifiers: config

bots fill in to guarantee this level in net game

NumBots

Type: int

number of Bots active in the game

PlayerSpeedRatio

Type: float

Modifiers: config

player speed boosted in DM/CTF/XMP, reduced on the Atlantis

Default value: 1.0

SoundSlotTimerList

Type: SoundSlotTimerListImpl


SpeedRatio

Type: float

Modifiers: config

non-player speed boosted in DM/CTF/XMP, reduced on the Atlantis

Default value: 1.0

UIComponents

Type: array<Object.ComponentHandle>


Default values

Property Value
DefaultPlayerClassName "U2Pawns.U2PlayerSP"
GameName "U2"
MutatorClass "U2.U2Mutator"

Structs

TPrecacheInfo

class<Actor> ActorClass 
Object.Vector SpawnLocation 

Functions

Static functions

BSM

static function BSM (Actor ContextActor, coerce string Message)


GetActorFactoryItems

static function GetActorFactoryItems (Actor ContextActor, out array<TPrecacheInfoPrecacheList)


GetLevelInfoItems

static function GetLevelInfoItems (Actor ContextActor, out array<TPrecacheInfoPrecacheList)


PrecacheItems

static function PrecacheItems (Actor ContextActor)


ScaleMovementSpeeds

static function ScaleMovementSpeeds (Pawn P)


SpawnTemporaryPrecacheInstance

static function SpawnTemporaryPrecacheInstance (Actor ContextActor, class<ActorActorClass, Object.Vector TargetLocation)


Events

Destroyed

event Destroyed ()

Overrides: DialogGameInfo.Destroyed


NotifyAudioSystemReset

event NotifyAudioSystemReset ()

Overrides: GameInfo.NotifyAudioSystemReset


NotifyHack

event NotifyHack ()

Overrides: GameInfo.NotifyHack


NotifyLevelChange

event NotifyLevelChange ()

Overrides: DialogGameInfo.NotifyLevelChange


NotifyLevelChangeEnd

event NotifyLevelChangeEnd ()

Overrides: DialogGameInfo.NotifyLevelChangeEnd


PostBeginPlay

event PostBeginPlay ()

Overrides: GameInfo.PostBeginPlay


PostLogin

event PostLogin (PlayerController NewPlayer, bool bUseDefaultInventory)

Overrides: DialogGameInfo.PostLogin


PreBeginPlay

event PreBeginPlay ()

Overrides: GameInfo.PreBeginPlay


Other instance functions

See U2GameInfo instance functions.