Always snap to grid

UE2:U2PlayerController (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 09:10, 17 May 2008 by Wormbo (Talk | contribs) (Auto-generated page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
U2XMP Object >> Actor >> Controller >> LicenseeController >> PlayerController >> U2PlayerController

Contents

Package: 
U2
Direct subclass:
U2PlayerTestController
This class in other games:
U2

U2PlayerController.uc

Constants

MissionFailedState

Value: 'MissionFailed'


ImpaledState

Value: 'Impaled'


LevelTransitionState

Value: 'LevelTransition'


MantlingState

Value: 'Mantling'


PlayerEndLevelImmediatelyState

Value: 'PlayerEndLevelImmediately'


LeanRate

Value: 256.0

offset change in units per sec when transition to/from leaning

LeanTraceFudge

Value: 16.0

fudge factor used when checking whether lean put camera into geometry

LeanWalkingPctScale

Value: 1.0

pct of walking speed used when leaning

Properties

Property group 'Music'

DeathMusic

Type: array<string>


Default value, index 0: "DEATH_1.ogg"

Default value, index 1: "DEATH_2.ogg"

Default value, index 2: "DEATH_3.ogg"

Default value, index 3: "DEATH_4.ogg"

Property group 'U2PlayerController'

bIgnoreNextWhenZoomed

Type: bool

Modifiers: globalconfig


Default value: True

ProneWeaponKickRatio

Type: float


Default value: 0.5

UIAlpha

Type: byte

Modifiers: globalconfig


Default value: 255

Internal variables

AmmoFlashTime

Type: float


AutoSaveIndex

Type: int

Modifiers: globalconfig


bAltWeaponKick

Type: bool

true for AltFire(), false for Fire()

bAutoTaunt

Type: bool

Modifiers: globalconfig

player automatically generates taunts when fragging someone

bInstantRocket

Type: bool

Modifiers: globalconfig


bNoAutoTaunts

Type: bool

Modifiers: globalconfig

don't receive auto-taunts

bNoMatureLanguage

Type: bool

Modifiers: globalconfig


bNoVoiceMessages

Type: bool

Modifiers: globalconfig

don't receive any voice messages

bNoVoices

Type: bool

Modifiers: globalconfig


bNoVoiceTaunts

Type: bool

Modifiers: globalconfig

don't receive any taunts

bReleaseLeanKeys

Type: bool

player needs to release lean keys before leaning direction can be set

bRising

Type: bool


bWantsToLean

Type: bool

player wants to lean -- next movement update will set direction

bWeaponKickDisabled

Type: bool

ARL test code

bWeaponKicking

Type: bool

true during recoil, false while idle or recovering

DesiredLeanOffset

Type: Object.Vector

desired additional camera offset due to leaning

LadderMoveLocation

Type: Object.Vector

hack to track ladder movement & play ladder climbing sound

LastAutoAimLocation

Type: Object.Vector


LastLeanDir

Type: ELeanDir

previous lean dir (for use while unleaning)

LastLeaningCheck

Type: float


LastWeaponKickTime

Type: float

last time weapon kick was updated

LeanDir

Type: ELeanDir

set to lean direction

StartSpot

Type: NavigationPoint

where player started the match

U2P

Type: U2Pawn


UnFreezeState

Type: name


WeaponKickOffset

Type: Object.Vector

resulting offset -- stored for use by U2Weapon.CalcDrawOffset()

WeaponKickPercent

Type: float

holds 0.0 (neutral position) to 1.0 (maximum kick offset)

WeaponOrder1

Type: array<WeaponInfo>


WeaponOrder2

Type: array<WeaponInfo>


WeaponOrder3

Type: array<WeaponInfo>


WeaponOrder4

Type: array<WeaponInfo>


WeaponOrder5

Type: array<WeaponInfo>


Default values

Property Value
ExecManagerClasses[0] Class'U2.CheatManager'
ExecManagerClasses[1] Class'U2.AdminManager'

Enums

ELeanDir

Lean_None 
Lean_Forward 
Lean_Left 
Lean_Right 
Lean_Up 

Structs

WeaponInfo

Modifiers: native

string WeaponName 
User readable name of the weapon.
byte Priority 
Order within the tray (lower numbers = higher priority) - essentially group offset.
Weapon Weapon 
Pointer to the associated weapon - if the player has it currently.

Functions

Exec functions

ActivateInventoryItem

exec function ActivateInventoryItem (Class InvItem)

Overrides: PlayerController.ActivateInventoryItem


AddBots

exec function AddBots (optional int N)


AltFire

exec function AltFire ()

Overrides: PlayerController.AltFire


ClearProgressMessages

exec function ClearProgressMessages ()

Overrides: PlayerController.ClearProgressMessages


DeactivateInventoryItem

exec function DeactivateInventoryItem (Class InvItem)


Fire

exec function Fire ()

Overrides: PlayerController.Fire


Loaded

exec function Loaded ()


NextWeapon

exec function NextWeapon ()

Overrides: PlayerController.NextWeapon


PrevWeapon

exec function PrevWeapon ()

Overrides: PlayerController.PrevWeapon


QuickLoad

exec function QuickLoad ()

Overrides: PlayerController.QuickLoad


QuickSave

exec function QuickSave ()

Overrides: PlayerController.QuickSave


Reload

exec function Reload ()


SetInstantRocket

exec function SetInstantRocket (bool B)


SwitchToBestWeapon

exec function bool SwitchToBestWeapon (optional out float Rating, optional out byte bUseAltMode)

Overrides: Controller.SwitchToBestWeapon


SwitchWeapon

exec function SwitchWeapon (byte F)

Overrides: PlayerController.SwitchWeapon


Taunt

exec function Taunt (name Sequence)


ThrowWeapon

exec function ThrowWeapon ()

Overrides: PlayerController.ThrowWeapon


Unuse

exec function Unuse ()

Overrides: PlayerController.Unuse


Use

exec function Use ()

Overrides: PlayerController.Use


Events

ClientHearSound

simulated event ClientHearSound (Actor Actor, int Id, Sound S, Object.Vector SoundLocation, Object.Vector Parameters, bool Attenuate)

Overrides: PlayerController.ClientHearSound


EncroachingOn

event bool EncroachingOn (Actor Other)

Overrides: Actor.EncroachingOn


PlayerCalcView

event PlayerCalcView (out Actor ViewActor, out Object.Vector CameraLocation, out Object.Rotator CameraRotation)

Overrides: PlayerController.PlayerCalcView


PlayerTick

event PlayerTick (float DeltaTime)

Overrides: PlayerController.PlayerTick


PostBeginPlay

event PostBeginPlay ()

Overrides: PlayerController.PostBeginPlay


RenderOverlays

simulated event RenderOverlays (Canvas Canvas)

Overrides: Controller.RenderOverlays


TeamMessage

event TeamMessage (PlayerReplicationInfo PRI, coerce string S, name Type)

Overrides: PlayerController.TeamMessage


Other instance functions

See U2PlayerController instance functions.

States

See U2PlayerController states.