Data Realms Fan Forums
http://45.55.195.193/

Help! My MOSRotating keeps disappearing! (SodaBomb Release!)
http://45.55.195.193/viewtopic.php?f=1&t=9693
Page 1 of 1

Author:  NickFury666 [ Sun Jan 13, 2008 10:40 pm ]
Post subject:  Help! My MOSRotating keeps disappearing! (SodaBomb Release!)

I'm having a serious problem with my mod. I think I've tried just about everything, but I can't fix it.

The mod is a soda bomb, where you throw the can and when it hits, it is supposed to shoot out soda and fly around. The problem is that when it hits, the soda might spray anywhere from 1 millisecond to 5 seconds. Then the can disappears.

Here is the code:
Code:
AddEffect = MOPixel
   InstanceName = Soda
   Mass = 0.1
   LifeTime = 3250
   Sharpness = 4
   HitsMOs = 0
   GetsHitByMOs = 0
   Color = Color
      R = 72
      G = 36
      B = 0
   Atom = Atom
      Material = Material
         CopyOf = Water
      TrailColor = Color
         R = 72
         G = 36
         B = 0
      TrailLength = 5

AddEffect = AEmitter
   InstanceName = Soda Emitter
   Mass = 0.0001
   LifeTime = 5000
   HitsMOs = 0
   GetsHitByMOs = 0
   SpriteFile = ContentFile
      FilePath = Base.rte/Null.bmp
   FrameCount = 1
   SpriteOffset = Vector
      X = -2
      Y = -2
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 2
      Depth = 5
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 3
      Depth = 5
   DeepCheck = 1
   JointStrength = 99999
   JointStiffness = 0.5
   DrawAfterParent = 1
   AddEmission = Emission
      EmittedParticle = MOPixel
         CopyOf = Soda
      ParticlesPerMinute = 1000
      Spread = 5
      MaxVelocity = 90
      MinVelocity = 50
   BurstSound = Sound
      AddSample = ContentFile
         FilePath = SodaBomb.rte/Open.wav
   EmissionSound = Sound
      AddSample = ContentFile
         FilePath = SodaBomb.rte/SodaFizz.wav
      LoopSetting = -1
   EmissionEnabled = 1
   EmissionCountLimit = 99999
   EmissionsIgnoreThis = 1
   ParticlesPerMinute = 1000
   BurstSize = 0
   BurstScale = 1
   BurstDamage = 0
   BurstTriggered = 1
   EmissionDamage = 0

AddEffect = MOSRotating
   InstanceName = SodaBomb
   Mass = 1
   LifeTime = 0
   Sharpness = 1
   HitsMOs = 1
   GetsHitByMOs = 0
   SpriteFile = ContentFile
      FilePath = SodaBomb.rte/SodaBomb.bmp
   FrameCount = 1
   AddEmitter = AEmitter
      CopyOf = Soda Emitter
      ParentOffset = Vector
         X = -3
         Y = -2
   SpriteOffset = Vector
      X = -3
      Y = -4
   AngularVel = 8
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Mega Metal
      Resolution = 4
      Depth = 0
   DeepCheck = 1
   GibImpulseLimit = 99999999999

AddDevice = TDExplosive
   InstanceName = Soda
   Mass = 1
   AddToGroup = Bombs
   RestThreshold = -500
   HitsMOs = 1
   GetsHitByMOs = 0
   SpriteFile = ContentFile
      FilePath = SodaBomb.rte/SodaBomb.bmp
   FrameCount = 1
   SpriteOffset = Vector
      X = -3
      Y = -4
   EntryWound = AEmitter
      CopyOf = Dent Metal
   ExitWound = AEmitter
      CopyOf = Dent Metal
   GoldValue = 5
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 2
      Depth = 0
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 4
      Depth = 10
   DeepCheck = 1
   JointStrength = 75
   JointStiffness = 0.5
   DrawAfterParent = 1
   StanceOffset = Vector
      X = -12
      Y = -5
   StartThrowOffset = Vector
      X = -12
      Y = -5
   EndThrowOffset = Vector
      X = -12
      Y = -5
   TriggerDelay = 999999
   AddGib = Gib
      GibParticle = MOSRotating
         CopyOf = SodaBomb
      Count = 1
      Spread = 0
      MaxVelocity = 0
      MinVelocity = 0
   GibImpulseLimit = 2


The way it works is it's a grenade that gibs on impact, rather than explodes, because an explosion would send it flying. That works fine, it turns into the MOSRotating on impact. The MOSRotating is the same sprite as the HDExplosive, but with an emitter parented to it. The emitter shoots brown water. Does anyone know why the MOSRotating just disappears randomly right after appearing?

Author:  Deadlyaim656 [ Sun Jan 13, 2008 11:28 pm ]
Post subject:  Re: Help! My MOSRotating keeps disappearing!

I'm not entirely sure but try this.
change
Code:
   EmissionCountLimit = 99999

to 0

It might work it might not *thinking it over it probably won't*

Also change the sharpness of the soda to 0, It's possible that the soda is coming out, landing on the can, and causing enough damage to destroy it.

Change whatever "Mega Metal" is. Make a new material and make it invulnerable might help.

Try making the particles come out slower, i think that if a rotating travels too fast and hits something it gibs. I had that problem with my mass cannon, at speeds of 100+ it would just disappear when it hit anything, had to make it go slower like 60.

Author:  NickFury666 [ Mon Jan 14, 2008 12:25 am ]
Post subject:  Re: Help! My MOSRotating keeps disappearing!

It's not working... :/

Any other suggestions?

Author:  Deadlyaim656 [ Mon Jan 14, 2008 3:37 am ]
Post subject:  Re: Help! My MOSRotating keeps disappearing!

Code:
AddEffect = MOSRotating
   InstanceName = SodaBomb
   Mass = 1
   LifeTime = 0


What if you increased the lifetime there, I'm just shooting in the dark here though, i honestly have no clue.

Author:  NickFury666 [ Mon Jan 14, 2008 5:23 am ]
Post subject:  Re: Help! My MOSRotating keeps disappearing!

Yeah, I tried 9999999 as well. Nothing. Maybe I'll just use the infinite replication trick from the fleagun.

Author:  Shook [ Mon Jan 14, 2008 7:16 pm ]
Post subject:  Re: Help! My MOSRotating keeps disappearing!

Edit: Wait, nevermind... Damn, i failed. Imma look closer...
My best bet would be to remove the LifeTime line entirely.
Or else you could use an Actor instead of an MOSRotating...

Author:  NickFury666 [ Tue Jan 15, 2008 1:31 am ]
Post subject:  Re: Help! My MOSRotating keeps disappearing!

Shook wrote:
Edit: Wait, nevermind... Damn, i failed. Imma look closer...
My best bet would be to remove the LifeTime line entirely.
Or else you could use an Actor instead of an MOSRotating...

I'll try the actor.

Author:  NickFury666 [ Tue Jan 15, 2008 2:23 am ]
Post subject:  Re: Help! My MOSRotating keeps disappearing!

Well, it works sometimes, so I'll post it here. I've pretty much done all I can.

Sorry, double post.

Attachments:
SodaBomb.rte.rar [52.83 KiB]
Downloaded 140 times

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/