Data Realms Fan Forums
http://45.55.195.193/

Grenades
http://45.55.195.193/viewtopic.php?f=1&t=14369
Page 1 of 1

Author:  Mind [ Tue Apr 21, 2009 12:31 am ]
Post subject:  Grenades

Last question of the day.....

I have a grenade thats sposed to explode into other grenades, but they keep exploding when the original one gibs.

Tried ImpulseLimit and such.

Any other ideas?

Author:  Grif [ Tue Apr 21, 2009 1:16 am ]
Post subject:  Re: Grenades

GetsHitByMOs = 0.

Probably colliding with each other.

Author:  Mind [ Tue Apr 21, 2009 1:32 am ]
Post subject:  Re: Grenades

Tried that, but they still dont work :/

Could you make them of a different material that has super high structure and gibimpulseperVL?

Edit: want me to post the code?

Author:  zalo [ Tue Apr 21, 2009 3:22 am ]
Post subject:  Re: Grenades

When one explodes, it is probbaly setting the other ones to explode.
Make it so the gibbed grenades can't be gibbed by particles (Remove
the line that has GibWoundLimit =...)

Edit: Post code.

Author:  Mind [ Tue Apr 21, 2009 9:44 pm ]
Post subject:  Re: Grenades

Code:
AddDevice = TDExplosive
   PresetName = Explody
   Mass = 2
   HitsMOs = 1
   GetsHitByMOs = 0
   SpriteFile = ContentFile
      FilePath = Glowy.rte/Images/FragGrenade.bmp
   FrameCount = 1
   SpriteOffset = Vector
      X = -3
      Y = -4
   EntryWound = None
   ExitWound = None
   GoldValue = 5
   AddEmitter = AEmitter
      CopyOf = Trail Green
   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 = 5000000
   JointStiffness = 0.5
   DrawAfterParent = 1
   DetonationSound = Sound
      AddSample = ContentFile
         Path = Glowy.rte/Sounds/Explode2.wav
   StanceOffset = Vector
      X = -12
      Y = -5
   StartThrowOffset = Vector
      X = -12
      Y = -5
   EndThrowOffset = Vector
      X = -12
      Y = -5
   TriggerDelay = 10000
   ParticleNumberToAdd = 1
   AddParticles = AEmitter
      CopyOf = Glow Emitter


AddDevice = TDExplosive
   PresetName = Explody2
   AddToGroup = Bombs
   Mass = 2
   PinStrength = 99999999
   RestThreshold = -500
   HitsMOs = 1
   GetsHitByMOs = 0
   SpriteFile = ContentFile
      FilePath = Glowy.rte/Images/FragGrenade.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
   DetonationSound = Sound
      AddSample = ContentFile
         Path = Glowy.rte/Sounds/Explode2.wav
   StanceOffset = Vector
      X = -12
      Y = -5
   StartThrowOffset = Vector
      X = -12
      Y = -5
   EndThrowOffset = Vector
      X = -12
      Y = -5
   TriggerDelay = 3000
   AddGib = Gib
      GibParticle = TDExplosive
         CopyOf = Explody
      Count = 10
      Spread = 360
      MaxVelocity = 0
      MinVelocity = 0
      InheritsVel = 0


Hope this helps

Author:  Grif [ Wed Apr 22, 2009 12:23 am ]
Post subject:  Re: Grenades

Spread is in radians, max is 3.14.

MaxVelocity of 0 is not allowed, set it to 1 (pinstrength will keep it stationary anyways).

Author:  Mind [ Wed Apr 22, 2009 11:42 pm ]
Post subject:  Re: Grenades

K, ill try that when i can. Thanks :)

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