UE2:ONSPRV (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to navigation Jump to search
UT2004 Object >> Actor >> Pawn >> Vehicle >> SVehicle >> ONSVehicle >> ONSWheeledCraft >> ONSPRV
Package: 
Onslaught

The Hellbender.

Properties

See ONSPRV properties.

Functions

Static functions

StaticPrecache

static function StaticPrecache (LevelInfo L)

Overrides: ONSVehicle.StaticPrecache

Precaches all StaticMeshes and Materials related to the Hellbender itself, its weapons and projectiles.

Events

Destroyed

simulated event Destroyed ()

Overrides: ONSWheeledCraft.Destroyed

Releases the LicensePlate to the global ObjectPool.

DrivingStatusChanged

simulated event DrivingStatusChanged ()

Overrides: ONSWheeledCraft.DrivingStatusChanged

Updates the license plate if a new driver entered. If the driver's name is longer than 8 characters, it is stripped of all (round, square, curly and angle) brackets. If it is still longer than 8 chars, all characters outside the range A-Z are removed from right to left until only 8 chars are left. If that didn't help either, vowels are removed from right to left in the same fashion. And finally if the name still consists of more than 8 consonants, it is cut off to only contain the first 8 of them.

PostBeginPlay

simulated event PostBeginPlay ()

Overrides: ONSWheeledCraft.PostBeginPlay

Allocates a ScriptedTexture for the license plate from the global ObjectPool.

RenderTexture

simulated event RenderTexture (ScriptedTexture Tex)

Overrides: Actor.RenderTexture

Draws the reduced driver name while driven or "HELLBNDR" while not driven on the license plate.

Other instance functions

BotDesireability

function float BotDesireability (Actor S, int TeamIndex, Actor Objective)

Overrides: Vehicle.BotDesireability

Only makes the Hellbender interesting for bots at match startup or if at least two bots are nearby.

FindEntryVehicle

function Vehicle FindEntryVehicle (Pawn P)

Overrides: ONSVehicle.FindEntryVehicle


UpdatePrecacheMaterials

simulated function UpdatePrecacheMaterials ()

Overrides: ONSVehicle.UpdatePrecacheMaterials

Precaches all Materials related to the Hellbender itself, its weapons and projectiles.

UpdatePrecacheStaticMeshes

simulated function UpdatePrecacheStaticMeshes ()

Overrides: ONSVehicle.UpdatePrecacheStaticMeshes

Precaches all StaticMeshes related to the Hellbender itself, its weapons and projectiles.

VehicleFire

function VehicleFire (bool bWasAltFire)

Overrides: Vehicle.VehicleFire

Plays the vehicle horn, since the driver doesn't control any weapons.