Announcement

Collapse
No announcement yet.

Emitters -> Code [Emitter n00b]

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

    Emitters -> Code [Emitter n00b]

    i was wondering if there is a way to change custom made emitters, made in UnrealEd with the PartlicleSystem Editor, into a code, so they could be used such as for trails for projectiles.

    the only emitter code i have seen is xEmitter code, but i still dont under stand how they are coded, but when i look at such as the xEffects.Spiral(Child of Emitter) it shows me this:

    Code:
    class Spiral extends Emitter;
    
    defaultproperties
    {
        Emitters=
        CullDistance=2000.00
        bNoDelete=False
    }
    where i only kno 'Emitters=' is where the actuall info on it goes, BUT its empty

    if someone could tell me how its done that would be great

    #2
    If you copy the emitter in the map, and then past it into the default properties of a class extended off of emmiter

    Delete the bold parts and it should work and change the italic parts so that it no longer points to mylevel (so mylevel.SpriteEmitter14 becomes spriteEmitter14):
    defaultproperites
    {
    Begin Map
    Begin Actor Class=Emitter Name=Emitter4

    Begin Object Class=SpriteEmitter Name=SpriteEmitter14
    UseDirectionAs=PTDU_Scale
    UseColorScale=True
    SpinParticles=True
    UniformSize=True
    ColorScale(0)=(Color=(B=100,G=255,R=100))
    ColorScale(1)=(RelativeTime=0.800000,Color=(B=100, G=250,R=100))
    ColorScale(2)=(RelativeTime=1.000000,Color=(B=100, G=255,R=100))
    CoordinateSystem=PTCS_Relative
    MaxParticles=2
    StartLocationOffset=(X=92.500000)
    StartSpinRange=(X=(Max=1.000000))
    StartSizeRange=(X=(Min=35.000000,Max=50.000000))
    InitialParticlesPerSecond=8000.000000
    Texture=Texture'AW-2004Particles.Weapons.PlasmaStar'
    LifetimeRange=(Min=0.200000,Max=0.200000)
    WarmupTicksPerSecond=2.000000
    RelativeWarmupTime=2.000000
    End Object
    Emitters(0)=SpriteEmitter'myLevel.SpriteEmitter14'

    Level=LevelInfo'myLevel.LevelInfo0'
    Region=(Zone=LevelInfo'myLevel.LevelInfo0',iLeaf=2 ,ZoneNumber=1)
    Tag="Emitter"
    PhysicsVolume=DefaultPhysicsVolume'myLevel.Default PhysicsVolume0'
    Location=(X=-152.516541,Y=-17.610193,Z=5.000000)
    bDirectional=True
    bSelected=True
    End Actor
    Begin Surface
    End Surface
    End Map
    }

    Comment


      #3
      Ok, i see where ur gettin at, but, nother happens when its summoned... :sulk:

      i did wat u sed, ==>

      Code:
      //-----------------------------------------------------------
      //
      //-----------------------------------------------------------
      class TTT_TestEmitter extends Emitter;
      
      #exec OBJ LOAD FILE=EmitterTextures.utx
      
      DefaultProperties
      {
      Begin Object Class=SpriteEmitter Name=SpriteEmitter0
      UseColorScale=True
      FadeOut=True
      FadeIn=True
      Disabled=True
      Backup_Disabled=True
      SpinParticles=True
      UseRegularSizeScale=False
      UniformSize=True
      ColorScale(0)=(Color=(B=255,G=127,A=255))
      ColorScale(1)=(RelativeTime=1.000000,Color=(B=255,A=255))
      FadeOutStartTime=0.500000
      FadeInEndTime=0.250000
      CoordinateSystem=PTCS_Relative
      MaxParticles=75
      Name="SpriteEmitter0"
      StartLocationShape=PTLS_Sphere
      SphereRadiusRange=(Min=48.000000,Max=48.000000)
      SpinsPerSecondRange=(X=(Max=5.000000),Y=(Min=0.500000,Max=1.000000),Z=(Min=0.500000,Max=1.000000))
      StartSpinRange=(X=(Max=0.500000),Y=(Max=1.000000),Z=(Max=1.000000))
      StartSizeRange=(X=(Min=35.000000,Max=35.000000),Y=(Min=35.000000,Max=35.000000),Z=(Min=35.000000,Max=35.000000))
      Texture=Texture'EmitterTextures.Flares.EFlareOY2'
      LifetimeRange=(Min=1.000000,Max=1.000000)
      StartVelocityRadialRange=(Min=-48.000000,Max=-48.000000)
      GetVelocityDirectionFrom=PTVD_AddRadial
      End Object
      Emitters(0)=SpriteEmitter'SpriteEmitter0'
      }
      Now, if u could tell me wat i did wrong, that would be great

      Tanks for ur help!

      Comment


        #4
        Your UT2004.log will tell you why it wasnt created

        Comment


          #5
          Nope, sry but i looked and it gave me this: Warning: SpawnActor failed because class TTT_TestEmitter has bStatic or bNoDelete

          And i set bStatic=False and bNoDelete=False, so i summoned and all log sed was: ScriptLog: Fabricate tictactoe.ttt_testemitter
          BUT, nothing shows up, heres wat i did to make this happen:
          Code:
          //-----------------------------------------------------------
          //
          //-----------------------------------------------------------
          class TTT_TestEmitter extends Emitter;
          
          #exec OBJ LOAD FILE=EmitterTextures.utx
          
          DefaultProperties
          {
          Begin Object Class=SpriteEmitter Name=SpriteEmitter0
          UseColorScale=True
          FadeOut=True
          FadeIn=True
          Disabled=True
          Backup_Disabled=True
          SpinParticles=True
          UseRegularSizeScale=False
          UniformSize=True
          ColorScale(0)=(Color=(B=255,G=127,A=255))
          ColorScale(1)=(RelativeTime=1.000000,Color=(B=255,A=255))
          FadeOutStartTime=0.500000
          FadeInEndTime=0.250000
          CoordinateSystem=PTCS_Relative
          MaxParticles=75
          Name="SpriteEmitter0"
          StartLocationShape=PTLS_Sphere
          SphereRadiusRange=(Min=48.000000,Max=48.000000)
          SpinsPerSecondRange=(X=(Max=5.000000),Y=(Min=0.500000,Max=1.000000),Z=(Min=0.500000,Max=1.000000))
          StartSpinRange=(X=(Max=0.500000),Y=(Max=1.000000),Z=(Max=1.000000))
          StartSizeRange=(X=(Min=35.000000,Max=35.000000),Y=(Min=35.000000,Max=35.000000),Z=(Min=35.000000,Max=35.000000))
          Texture=Texture'EmitterTextures.Flares.EFlareOY2'
          LifetimeRange=(Min=1.000000,Max=1.000000)
          StartVelocityRadialRange=(Min=-48.000000,Max=-48.000000)
          GetVelocityDirectionFrom=PTVD_AddRadial
          End Object
          Emitters(0)=SpriteEmitter'SpriteEmitter0'
          
          bStatic=False
          bNoDelete=False
          }
          so then i tried makin one true and one false, then vise versa, still i get the first error

          why?

          Comment


            #6
            Your emitter is disabled

            Comment


              #7
              OMG IM SO STUPID!!!

              I never even thought of checking that haha

              Comment

              Working...
              X