View unanswered posts | View active topics It is currently Mon Dec 30, 2024 9:40 pm



Reply to topic  [ 8 posts ] 
 Help! My MOSRotating keeps disappearing! (SodaBomb Release!) 
Author Message
User avatar

Joined: Wed Nov 21, 2007 7:49 pm
Posts: 189
Reply with quote
Post 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?


Last edited by NickFury666 on Tue Jan 15, 2008 2:30 am, edited 1 time in total.



Sun Jan 13, 2008 10:40 pm
Profile

Joined: Mon Jan 08, 2007 3:35 am
Posts: 52
Reply with quote
Post 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.


Sun Jan 13, 2008 11:28 pm
Profile WWW
User avatar

Joined: Wed Nov 21, 2007 7:49 pm
Posts: 189
Reply with quote
Post Re: Help! My MOSRotating keeps disappearing!
It's not working... :/

Any other suggestions?


Mon Jan 14, 2008 12:25 am
Profile

Joined: Mon Jan 08, 2007 3:35 am
Posts: 52
Reply with quote
Post 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.


Mon Jan 14, 2008 3:37 am
Profile WWW
User avatar

Joined: Wed Nov 21, 2007 7:49 pm
Posts: 189
Reply with quote
Post 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.


Mon Jan 14, 2008 5:23 am
Profile
User avatar

Joined: Fri Feb 16, 2007 8:43 pm
Posts: 1695
Location: AH SHIT FUCK AUGH
Reply with quote
Post 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...


Mon Jan 14, 2008 7:16 pm
Profile WWW
User avatar

Joined: Wed Nov 21, 2007 7:49 pm
Posts: 189
Reply with quote
Post 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.


Tue Jan 15, 2008 1:31 am
Profile
User avatar

Joined: Wed Nov 21, 2007 7:49 pm
Posts: 189
Reply with quote
Post 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
Tue Jan 15, 2008 2:23 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.037s | 18 Queries | GZIP : Off ]