home *** CD-ROM | disk | FTP | other *** search
/ Game Level Design / GLDesign.bin / Software / UnrealEngine2Runtime / UE2Runtime-22262001_Demo.exe / Engine / Classes / BeamEmitter.uc < prev    next >
Text File  |  2003-06-23  |  3KB  |  86 lines

  1. //=============================================================================
  2. // BeamEmitter: An Unreal Beam Particle Emitter.
  3. //=============================================================================
  4. class BeamEmitter extends ParticleEmitter
  5.     native;
  6.  
  7.  
  8. enum EBeamEndPointType
  9. {
  10.     PTEP_Velocity,
  11.     PTEP_Distance,
  12.     PTEP_Offset,
  13.     PTEP_Actor,
  14.     PTEP_TraceOffset,
  15.     PTEP_OffsetAsAbsolute
  16. };
  17.  
  18. struct ParticleBeamData
  19. {
  20.     var vector    Location;
  21.     var float    t;
  22. };
  23.  
  24. struct ParticleBeamEndPoint
  25. {
  26.     var () name            ActorTag;
  27.     var () rangevector    Offset;
  28.     var () float        Weight;
  29. };
  30.  
  31. struct ParticleBeamScale
  32. {
  33.     var () vector        FrequencyScale;
  34.     var () float        RelativeLength;
  35. };
  36.  
  37. var (Beam)            range                        BeamDistanceRange;    
  38. var (Beam)            array<ParticleBeamEndPoint>    BeamEndPoints;
  39. var (Beam)            EBeamEndPointType            DetermineEndPointBy;        
  40. var (Beam)            float                        BeamTextureUScale;
  41. var (Beam)            float                        BeamTextureVScale;
  42. var (Beam)            int                            RotatingSheets;
  43. var (Beam)            bool                        TriggerEndpoint;
  44.  
  45. var (BeamNoise)        rangevector                    LowFrequencyNoiseRange;
  46. var (BeamNoise)        int                            LowFrequencyPoints;
  47. var (BeamNoise)        rangevector                    HighFrequencyNoiseRange;
  48. var (BeamNoise)        int                            HighFrequencyPoints;
  49. var (BeamNoise)        array<ParticleBeamScale>    LFScaleFactors;
  50. var (BeamNoise)        array<ParticleBeamScale>    HFScaleFactors;
  51. var (BeamNoise)        float                        LFScaleRepeats;
  52. var (BeamNoise)        float                        HFScaleRepeats;
  53. var (BeamNoise)        bool                        UseHighFrequencyScale;
  54. var (BeamNoise)        bool                        UseLowFrequencyScale;
  55. var (BeamNoise)        bool                        NoiseDeterminesEndPoint;
  56. var (BeamNoise)        rangevector                    DynamicHFNoiseRange;
  57. var (BeamNoise)        range                        DynamicHFNoisePointsRange;
  58. var (BeamNoise)        range                        DynamicTimeBetweenNoiseRange;
  59.  
  60. var (BeamBranching) bool                        UseBranching;
  61. var (BeamBranching)    range                        BranchProbability;
  62. var    (BeamBranching) range                        BranchHFPointsRange;
  63. var (BeamBranching)    int                            BranchEmitter;
  64. var (BeamBranching) range                        BranchSpawnAmountRange;
  65. var (BeamBranching) bool                        LinkupLifetime;
  66.  
  67. var    transient        int                            SheetsUsed;
  68. var transient        int                            VerticesPerParticle;
  69. var transient        int                            IndicesPerParticle;
  70. var transient        int                            PrimitivesPerParticle;
  71. var transient        float                        BeamValueSum;
  72. var transient        array<ParticleBeamData>        HFPoints;
  73. var transient        array<vector>                LFPoints;
  74. var transient        array<actor>                HitActors;
  75. var transient        float                        TimeSinceLastDynamicNoise;
  76.  
  77. defaultproperties
  78. {
  79.     HighFrequencyPoints=10
  80.     LowFrequencyPoints=3
  81.     BeamTextureUScale=1
  82.     BeamTextureVScale=1
  83.     BranchEmitter=-1
  84.     BranchHFPointsRange=(Min=0,Max=1000)
  85. }
  86.