Mostly Harmless

UE2:TracerStreak (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> Effects >> TracerStreak
Package: 
Legend
Direct subclasses:
LineStreakVert, LineStreak
This class in other games:
RTNP

TracerStreak.uc $Author: Mfox $ $Date: 4/30/02 12:22p $ $Revision: 3 $ Description: Effect for simulating a tracer bullet. How to use this class:

Spawn it.
Set the endpoints for where the streak will be drawn from/to in the same tick.
The fading process is automatically started on the next tick.

How this class works:

Connects the two endpoints with large segments.
Starting with the first segment, it is broken into two parts.
Then of those two new segments, the first one is broken into two parts.
Then of those two new segments, the first one is faded out.

(Using ScaleGlow/Translucency).

Once the first segment is completely faded away, the second is faded out.
Then the second (next larger) segment is broken in two and those are

faded out.

This continues until all the segments are faded out.
If bUseLifeSpan is set to true, streaks aren't faded out -- their LifeSpan

will determine how long they last (e.g. 0.0 ==> forever).

Constants[edit]

MaxSegmentTypes[edit]

Value: 16


Properties[edit]

Property group 'TracerStreak'[edit]

End[edit]

Type: Object.Vector


SegmentTypes[edit]

Type: class<TracerSeg>

Array size: 16 (MaxSegmentTypes)


SkinToUseForSegments[edit]

Type: Texture


Start[edit]

Type: Object.Vector


Internal variables[edit]

bUseLifeSpan[edit]

Type: bool

if true don't fade out streaks

CurrentSegment[edit]

Type: TracerSeg


Default values[edit]

Property Value
bHidden True

Functions[edit]

Events[edit]

Tick[edit]

simulated event Tick (float DeltaTime)

Overrides: Actor.Tick


Other instance functions[edit]

FinishedFading[edit]

simulated function FinishedFading ()


SetEndpoints[edit]

function SetEndpoints (Object.Vector StartPoint, Object.Vector EndPoint)


SetSkin[edit]

function SetSkin (Texture NewSkin)


States[edit]

Fading[edit]

Modifiers: simulated

Fading.BeginState[edit]

simulated event BeginState ()

Overrides: Object.BeginState (global)


Fading.FinishedFading[edit]

simulated function FinishedFading ()

Overrides: FinishedFading (global)