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

UE3:UTProj_SPMACamera (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT3 Object >> Actor >> Projectile >> UTProjectile >> UTProj_SPMACamera
Package: 
UTGame
Direct subclass:
UTProj_SPMACamera_Content

Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.

Properties[edit]

Property group 'UTProj_SPMACamera'[edit]

TrajectorySteps[edit]

Type: float


Default value: 1000.0

Internal variables[edit]

bDeployed[edit]

Type: bool

Modifiers: repnotify

Has this camera been deployed?

bDisconnected[edit]

Type: bool

Has this camera been disconnected?

bDisplayingArc[edit]

Type: bool


CameraViewOffset[edit]

Type: Object.Vector

The offest of the camera when in flight mode

Default value:

Member Value
X -256.0
Y 0.0
Z 128.0

CVScale[edit]

Type: float

Cheap and easy way to effect the slide in to the camera when deployed. We just interpolate this down to 0

Default value: 1.0

DeploySound[edit]

Type: SoundCue


HoverJetsTemplate[edit]

Type: ParticleSystem

The Particle System to use when deployed.

InstigatorGun[edit]

Type: UTVWeap_SPMACannon

Quick access to the Gun that contols this to save on casting

LastMessageUpdateTime[edit]

Type: float

Last Time the ONS Messages were updated

LastTargetLocation[edit]

Type: Object.Vector

Holds the Location/Normal of the current target location. These are used in positioning the icons

LastTargetNormal[edit]

Type: Object.Vector

Play a nice screeching sound (not in WarnTarget because its meant only for on the 'jump')

LastTargetVelocity[edit]

Type: Object.Vector


MaxHeight[edit]

Type: float

The is the maximum height a bot will let this go

MaxTargetRange[edit]

Type: float

The maximum Target Range that this camera will trace to

Default value: 10240.0

Mesh[edit]

Type: SkeletalMeshComponent

The Mesh component for this camera so we can hide it when we deploy

PS_EndPointOffTarget[edit]

Type: ParticleSystem


PS_EndPointOnTarget[edit]

Type: ParticleSystem


PS_StartPoint[edit]

Type: ParticleSystem


PS_Trail[edit]

Type: ParticleSystem


PSC_EndPoint[edit]

Type: ParticleSystemComponent


PSC_StartPoint[edit]

Type: ParticleSystemComponent


PSC_Trail[edit]

Type: ParticleSystemComponent


ShotDownSound[edit]

Type: SoundCue


TargetRedirectDistance[edit]

Type: float

This holds the distance to which the camera will redirect avril shots to the SPMA

Default value: 512.0

Default values[edit]

Property Value
bAlwaysRelevant True
bCollideComplex False
bNetTemporary False
bProjTarget True
bRotationFollowsVelocity True
bSwitchToZeroCollision False
bUpdateSimulatedPosition True
Damage 250.0
DamageRadius 660.0
LifeSpan 0.0
MaxSpeed 4000.0
MessageClass Class'UTGame.UTSPMAMessage'
MomentumTransfer 175000.0
Physics PHYS_Falling
Speed 4000.0
TerminalVelocity 4500.0

Subobjects[edit]

CollisionCylinder[edit]

Class: Engine.CylinderComponent

Inherits from: UTProjectile.CollisionCylinder

No new values.

Functions[edit]

Native functions[edit]

GetCurrentTargetLocation[edit]

native final function Object.Vector GetCurrentTargetLocation (Controller C)


KillTrajectory[edit]

native simulated function KillTrajectory ()


SetTargetIndicator[edit]

native function SetTargetIndicator (bool bCanHit)

This function is also called from the gun. It's used to show the proper cursor.

SimulateTrajectory[edit]

native simulated function SimulateTrajectory (Object.Vector TossVelocity)


Events[edit]

Destroyed[edit]

simulated event Destroyed ()

Overrides: UTProjectile.Destroyed


GetHomingTarget[edit]

event Actor GetHomingTarget (UTProjectile Seeker, Controller InstigatedBy)

Overrides: UTProjectile.GetHomingTarget


PhysicsVolumeChange[edit]

event PhysicsVolumeChange (PhysicsVolume NewVolume)

Overrides: Actor.PhysicsVolumeChange


PostBeginPlay[edit]

simulated event PostBeginPlay ()

Overrides: UTProjectile.PostBeginPlay

When this actor begins its life, play any ambient sounds attached to it

ReplicatedEvent[edit]

simulated event ReplicatedEvent (name VarName)

Overrides: Actor.ReplicatedEvent

We use RepNotify to make sure on remote clients, that we get the deploy right

SetUpSimulation[edit]

simulated event SetUpSimulation ()

This is the function that will create all of the particle systems and emitters needed to draw the grenade aiming arc.

This is called each time we through and we cache the emitters and particle systems so we do not have to recreate them each time.

We want to call this set up function as we can get into the state where the last tick our emitters were valid or our virtual projectile was valid but now this tick it is not (the projectile falling out of the world will cause this to occur).

ShutDown[edit]

simulated event ShutDown ()

Overrides: UTProjectile.Shutdown

Make sure when we shut down or get destroyed, that we disconnect

TakeDamage[edit]

event TakeDamage (int DamageAmount, Controller EventInstigator, Object.Vector HitLocation, Object.Vector Momentum, class<DamageTypeDamageType, optional Actor.TraceHitInfo HitInfo, optional Actor DamageCauser)

Overrides: Actor.TakeDamage

(Description copied from Actor.TakeDamage)
apply some amount of damage to this actor

Parameters:

  • Damage - the base damage to apply
  • EventInstigator - the Controller responsible for the damage
  • HitLocation - world location where the hit occurred
  • Momentum - force caused by this hit
  • DamageType - class describing the damage that was done
  • HitInfo - additional info about where the hit occurred
  • DamageCauser - the Actor that directly caused the damage (i.e. the Projectile that exploded, the Weapon that fired, etc)

Other instance functions[edit]

CalcCamera[edit]

simulated function bool CalcCamera (float fDeltaTime, out Object.Vector out_CamLoc, out Object.Rotator out_CamRot, out float out_FOV)

Overrides: UTProjectile.CalcCamera

Handle the Camera

CheckAIDeploy[edit]

function CheckAIDeploy ()

AI function that deploys the camera when it can see the AI's target

Deploy[edit]

function Deploy ()

This function server side function notifies the client and then tells the camera to deploy.

Network: ServerOnly

DeployCamera[edit]

simulated function DeployCamera ()

Deploy the camera

Network: All

Disconnect[edit]

simulated function Disconnect ()

This camera has been disconnected by the host SPMA

GetPawnOwner[edit]

simulated function Pawn GetPawnOwner ()

Overrides: UTProjectile.GetPawnOwner

(Description copied from UTProjectile.GetPawnOwner)
called when this Projectile is the ViewTarget of a local player

Returns:

the Pawn to use for rendering HUD displays

IsStationary[edit]

function bool IsStationary ()

Overrides: Projectile.IsStationary


ProcessTouch[edit]

simulated function ProcessTouch (Actor Other, Object.Vector HitLocation, Object.Vector HitNormal)

Overrides: UTProjectile.ProcessTouch


ResetAimEffects[edit]

simulated function ResetAimEffects ()


SendDeployMessage[edit]

simulated function SendDeployMessage ()

Look to see if any ONS SPMA Messages need to be displayed

ShowSelf[edit]

function ShowSelf (bool bCheckFOV)

reveals camera to AI, giving them an opportunity to target us

ShowSelfTimed[edit]

function ShowSelfTimed ()


StopsProjectile[edit]

simulated function bool StopsProjectile (Projectile P)

Overrides: Actor.StopsProjectile