Announcement

Collapse
No announcement yet.

Need help with flaky emitter.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need help with flaky emitter.

    Code:
    class WarWingRepulsor extends Emitter
    	placeable;
    
    #exec OBJ LOAD FILE="..\Textures\AW-2004Particles.utx"
    
    simulated function SetThrust(float Amount)
    {
    	Emitters[0].StartSizeRange.X.Min = 1.0;
    	Emitters[0].StartSizeRange.X.Max = 1.0;
                    Emitters[0].StartSizeRange.Y.Min = 1.0;
    	Emitters[0].StartSizeRange.Y.Max = 1.0;
                    Emitters[0].StartSizeRange.Z.Min = 12.0;
    	Emitters[0].StartSizeRange.Z.Max = 25.9;
    }
    
    simulated function SetThrustEnabled(bool bDoThrust)
    {
    	if(bDoThrust)
    	{
    		Emitters[0].Disabled = false;
    	}
    	else
    	{
    		Emitters[0].Disabled = true;
    	}
    }
    
    defaultproperties
    {
         Begin Object Class=MeshEmitter Name=RepulsorEmitter2
             StaticMesh=StaticMesh'WarWingSM.UnderWings'
             UseMeshBlendMode=False
             UseParticleColor=True
             UseColorScale=True
             SpinParticles=True
             UniformSize=True
             ColorScale(1)=(RelativeTime=0.330000,Color=(B=32,G=112,R=255))
             ColorScale(2)=(RelativeTime=0.660000,Color=(B=32,G=112,R=255))
             ColorScale(3)=(RelativeTime=1.000000)
             CoordinateSystem=PTCS_Relative
             MaxParticles=3
             StartSpinRange=(Z=(Max=0.000000))
             //StartSizeRange=(Z=(Min=1.200000,Max=1.20000))
             LifetimeRange=(Min=0.100000,Max=0.200000)
         End Object
         Emitters(0)=MeshEmitter'WarWing.WarWingRepulsor.RepulsorEmitter2'
    
    
    
         DrawScale=1.2
         AutoDestroy=True
         CullDistance=12000.000000
         bNoDelete=False
         AmbientGlow=140
         bHardAttach=True
    }
    Here's the problem: In the first function (SetThrust which I have verified as being called), StartSizeRange min and max only seem to be working for the X axis. If I set min and max for X to, say, 1.0 and 5.0, ir works and the emitter's X dimension is effected. But, If I do the same for Y or Z, it seems to have no effect. As you see, I have set Z min and max to fairly insane value, ver there is no variation of the emitter's Z dimension. Anyone have any isea of what is happening? Thanks All.

    #2
    You have this: UniformSize=True

    It keeps all dimensions equal, and I bet it just uses dimension X for all three.

    Comment


      #3
      Bwaaah! That was a retarded one for me to miss. Thanks Xyz

      Comment

      Working...
      X