There is no spoon
UE2:TracerStreak (U2XMP)
From Unreal Wiki, The Unreal Engine Documentation Site
Contents |
- Package:
- Legend
- Direct subclasses:
- LineStreakVert, LineStreak
- This class in other games:
- RTNP
| This is an auto-generated page and may need human attention. Please remove this tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
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.
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.
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
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
If bUseLifeSpan is set to true, streaks aren't faded out -- their LifeSpan
will determine how long they last (e.g. 0.0 ==> forever).
[edit] Constants
[edit] MaxSegmentTypes
Value: 16
[edit] Properties
[edit] Property group 'TracerStreak'
[edit] End
Type: Object.Vector
[edit] SegmentTypes
Array size: 16 (MaxSegmentTypes)
[edit] SkinToUseForSegments
Type: Texture
[edit] Start
Type: Object.Vector
[edit] Internal variables
[edit] bUseLifeSpan
Type: bool
if true don't fade out streaks
[edit] CurrentSegment
Type: TracerSeg
[edit] Default values
| Property | Value |
|---|---|
| bHidden | True |
[edit] Functions
[edit] Events
[edit] Tick
simulated event Tick (float DeltaTime)
Overrides: Actor.Tick
[edit] Other instance functions
[edit] FinishedFading
simulated function FinishedFading ()
[edit] SetEndpoints
function SetEndpoints (Object.Vector StartPoint, Object.Vector EndPoint)
[edit] SetSkin
function SetSkin (Texture NewSkin)
[edit] States
[edit] Fading
Modifiers: simulated
[edit] Fading.BeginState
simulated event BeginState ()
Overrides: Object.BeginState (global)
[edit] Fading.FinishedFading
simulated function FinishedFading ()
Overrides: FinishedFading (global)
