Data Realms Fan Forums
http://45.55.195.193/

Martyrdom?
http://45.55.195.193/viewtopic.php?f=1&t=9016
Page 1 of 3

Author:  KnightD [ Wed Dec 12, 2007 12:20 am ]
Post subject:  Martyrdom?

Has anyone played Call of Duty 4?
The idea of dropping a live grenade when you die is pretty awesome.
I'm not sure how to make the clone gib so that he drops a live grenade. : [

Author:  Sixteen [ Wed Dec 12, 2007 12:56 am ]
Post subject:  Re: Martyrdom?

Well... I don't really think you can, but I made it so that an actor gibbed a mega-map-wipe form shook's pack in B18 by inserting
Code:
   AddGib = Gib
      GibParticle = TDExplosive
         CopyOf = Mega map Wipe
      Count = 1
      Spread = 2.25
      MaxVelocity = 10
      MinVelocity = 1

into the code. You'll have to change that to make it the frag grenade, but I'm not sure it'll work.

Author:  TrouserDemon [ Wed Dec 12, 2007 1:04 am ]
Post subject:  Re: Martyrdom?

Nope, gibbed TDExplosives won't detonate after their timer expires.

Author:  kamakazibob [ Wed Dec 12, 2007 1:23 am ]
Post subject:  Re: Martyrdom?

Could you make them gib an impact explosive along the lines of an actor (or something) that explodes into mopixels

Author:  TrouserDemon [ Wed Dec 12, 2007 1:24 am ]
Post subject:  Re: Martyrdom?

You could make it gib directly into an explosion, but that would explode instantly.

Author:  KnightD [ Wed Dec 12, 2007 1:44 am ]
Post subject:  Re: Martyrdom?

Ok. What would I change the gib too in order to make an explosion roughly the size of a grenade or C4?

Author:  TrouserDemon [ Wed Dec 12, 2007 1:55 am ]
Post subject:  Re: Martyrdom?

Look at the grenade code, I'm not really sure myself, but I've seen it done.

Author:  KnightD [ Wed Dec 12, 2007 2:07 am ]
Post subject:  Re: Martyrdom?

I apologize for my ineptness..
I tried changing a gib to TDExplosive, like the particles in a grenade and I get an error..

Author:  Lord Tim [ Wed Dec 12, 2007 2:38 am ]
Post subject:  Re: Martyrdom?

It won't be a live grenade. Gibbed grenades don't start their timers.

Author:  KnightD [ Wed Dec 12, 2007 2:42 am ]
Post subject:  Re: Martyrdom?

Ok, I understand that part. What would I change an actor's gib to so that it explodes instead of creating the gib?

Author:  TrouserDemon [ Wed Dec 12, 2007 2:45 am ]
Post subject:  Re: Martyrdom?

Set the gib as the explosion itself, use the explosion code from the grenade.

Author:  KnightD [ Wed Dec 12, 2007 2:49 am ]
Post subject:  Re: Martyrdom?

What part of the grenade is the explosion?

Code:
AddDevice = TDExplosive
   InstanceName = Frag Grenade
   AddToGroup = Bombs
   Mass = 2
   RestThreshold = -500
   HitsMOs = 1
   GetsHitByMOs = 0
   SpriteFile = ContentFile
      FilePath = Base.rte/Devices/Explosives/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 = Base.rte/Sounds/Explode2.wav
   StanceOffset = Vector
      X = -12
      Y = -5
   StartThrowOffset = Vector
      X = -12
      Y = -5
   EndThrowOffset = Vector
      X = -12
      Y = -5
   TriggerDelay = 2500
   ParticleNumberToAdd = 10
   AddParticles = MOSParticle
      CopyOf = Side Thruster Blast Ball 1
   ParticleNumberToAdd = 20
   AddParticles = MOPixel
      CopyOf = Grenade Fragment Gray
   ParticleNumberToAdd = 20
   AddParticles = MOPixel
      CopyOf = Grenade Fragment Yellow
   ParticleNumberToAdd = 30
   AddParticles = MOPixel
      CopyOf = Air Blast

Author:  TrouserDemon [ Wed Dec 12, 2007 2:50 am ]
Post subject:  Re: Martyrdom?

Air Blast is the instance name for one of the explosive effects...

Author:  KnightD [ Wed Dec 12, 2007 3:01 am ]
Post subject:  Re: Martyrdom?

..So if I change the gib to Air Blast it should be set?

Author:  TrouserDemon [ Wed Dec 12, 2007 3:03 am ]
Post subject:  Re: Martyrdom?

Try it, I'm not sure.

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