I love the smell of UnrealEd crashing in the morning. – tarquin

UE2:U2UseManagerPlayer (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> U2UseManager >> U2UseManagerPlayer
Package: 
U2

$Author: Mbaldwin $ $Date: 12/15/02 2:21a $ $Revision: 43 $ Name: U2UseManagerPlayer.uc Author: Aaron R Leiby Date: 18 December 2000 Description: Notes: How to use this class:

Constants

UseReticleOnEvent

Value: "UseReticleOn"


UseReticleOffEvent

Value: "UseReticleOff"


ProximityReticleOnEvent

Value: "ProximityReticleOn"


ProximityReticleOffEvent

Value: "ProximityReticleOff"


ActorBracketPercent

Value: 0.80

portion of bounding box to span

MainBracketPercent

Value: 1.00


PawnBracketPercent

Value: 0.80


ActorBracketWidth

Value: 16

Size of upper and lower bracket icons

ActorBracketHeight

Value: 8


MainBracketWidth

Value: 26

Size of left and right bracket icons

MainBracketHeight

Value: 15


PawnBracketWidth

Value: 15


PawnBracketHeight

Value: 16


MarginActorX

Value: 20

Minimum distances from the corners for the side / top brackets

MarginPawnY

Value: 5


ScreenClampPctX

Value: 0.1


ScreenClampPctY

Value: 0.1


MinProximityAngleCos

Value: 0.643

spread angle of cone [0.643 ~= cos(50 degrees)]

MaxProximityDist

Value: 512.0


Properties

ActorBrackets

Type: Object.Point

Array size: 4

screen positions for non-pawn brackets

bEnabled

Type: bool

toggle to enable/disable the use reticle entirely

Default value: True

bOn

Type: bool

is the reticle being displayed?

LineSize

Type: Object.Vector

length of line connecting brackets

MainBrackets

Type: Object.Point

Array size: 4

screen positions for corner brackets (all actors)

PawnBrackets

Type: Object.Point

Array size: 4

screen positions for pawn-specific brackets

Proximity

Type: float


TargetText

Type: string

Modifiers: localized


Default value: "Item"

UseDistance

Type: float

max distance at which actors can be used

Default value: 200.0

Functions

Static functions

GetProximity

static function float GetProximity (U2Pawn UsingPawn, Actor Target)


LookingAt

static function LookingAt (U2Pawn UsingPawn, Actor _Target)

Overrides: U2UseManager.LookingAt


RenderOverlaysStatic

static simulated function RenderOverlaysStatic (U2Pawn UsingPawn, Canvas Canvas)


SetAlternate

static protected function SetAlternate (U2Pawn UsingPawn, Actor _Target, int Index, float _Proximity)


SetCurrent

static protected function SetCurrent (U2Pawn UsingPawn, Actor _Target)

Overrides: U2UseManager.SetCurrent


SetEnabled

static function SetEnabled (U2Pawn UsingPawn, bool bNewValue)

Overrides: U2UseManager.SetEnabled


ShouldShowAltReticle

static function bool ShouldShowAltReticle (U2Pawn UsingPawn, Actor A, bool bTestProximity)


Instance functions

ActorBracketNE

simulated function Object.Point ActorBracketNE ()


ActorBracketNW

simulated function Object.Point ActorBracketNW ()


ActorBracketSE

simulated function Object.Point ActorBracketSE ()


ActorBracketSW

simulated function Object.Point ActorBracketSW ()


GetAlpha

simulated function float GetAlpha ()


GetHealth

simulated function float GetHealth ()


GetUseText

simulated function string GetUseText ()


LineHeight

simulated function float LineHeight ()


LineWidth

simulated function float LineWidth ()


MainBracketNE

simulated function Object.Point MainBracketNE ()


MainBracketNW

simulated function Object.Point MainBracketNW ()


MainBracketSE

simulated function Object.Point MainBracketSE ()


MainBracketSW

simulated function Object.Point MainBracketSW ()


PawnBracketNE

simulated function Object.Point PawnBracketNE ()


PawnBracketNW

simulated function Object.Point PawnBracketNW ()


PawnBracketSE

simulated function Object.Point PawnBracketSE ()


PawnBracketSW

simulated function Object.Point PawnBracketSW ()


RenderOverlays

function RenderOverlays (Actor A, Canvas Canvas)