Data Realms Fan Forums
http://45.55.195.193/

CFG Pulse Emitter
http://45.55.195.193/viewtopic.php?f=1&t=14247
Page 1 of 1

Author:  Squeegy [ Sat Apr 11, 2009 9:43 pm ]
Post subject:  CFG Pulse Emitter

I was trying to make a gun that only hurt robots. Right now it only works on humans and makes them explode. I'd like it to only work on robots and leave them intact.

Code:

AddEffect = MOPixel
   InstanceName = Particle CFG
   Mass = 0.00025
   RestThreshold = 500
   LifeTime = 20
   Sharpness = 500
   HitsMOs = 1
   GetsHitByMOs = 0
   Color = Color
      R = 255
      G = 0
      B = 255
   Atom = Atom
      Material = Material
         CopyOf = Bullet Metal
      TrailColor = Color
         R = 255
         G = 0
         B = 255
      TrailLength = 100000



AddAmmo = Round
   InstanceName = Round CFG
   ParticleCount = 200
   Particle = MOPixel
      CopyOf = Particle CFG
   FireVelocity = 275
   ShellVelocity = 10
   Separation = 5

AddAmmo = Magazine
   InstanceName = Magazine CFG
   Mass = 0.1
   HitsMOs = 0
   GetsHitByMOs = 0
   SpriteFile = ContentFile
      FilePath = Base.rte/Null.bmp
   FrameCount = 1
   SpriteOffset = Vector
      X = -1
      Y = -1
   EntryWound = AEmitter
      CopyOf = Dent Metal
   ExitWound = AEmitter
      CopyOf = Dent Metal
   AtomGroup = AtomGroup
      InstanceName = Atom Group Null
      AutoGenerate = 1
      Material = Material
         CopyOf = Air
      Resolution = 0
      Depth = 0
   DeepGroup = AtomGroup
      InstanceName = Atom Group Null
      AutoGenerate = 1
      Material = Material
         CopyOf = Air
      Resolution = 0
      Depth = 0
   DeepCheck = 0
   JointStrength = 200
   JointStiffness = 1
   JointOffset = Vector
      X = 0
      Y = -3
   DrawAfterParent = 0
   RoundCount = 1
   RTTRatio = 0
   RegularRound = Round
      CopyOf = Round CFG
   TracerRound = None
   Discardable = 0


AddDevice = HDFirearm
   InstanceName = CFG
   AddToGroup = Weapons
   Mass = 6
   HitsMOs = 0
   GetsHitByMOs = 1
   SpriteFile = ContentFile
      FilePath = New Weapons.rte/CFG/CFG.bmp
   FrameCount = 2
   SpriteOffset = Vector
      X = -9
      Y = -7
   EntryWound = AEmitter
      CopyOf = Dent Metal
   ExitWound = AEmitter
      CopyOf = Dent Metal
   GoldValue = 40
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 4
      Depth = 0
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 4
      Depth = 10
   DeepCheck = 1
   JointStrength = 75
   JointStiffness = 0.5
   JointOffset = Vector
      X = -5
      Y = 2
   DrawAfterParent = 0
   StanceOffset = Vector
      X = 3
      Y = 7
   SharpStanceOffset = Vector
      X = 5
      Y = -2
   SupportOffset = Vector
      X = 2
      Y = 3
   SharpLength = 150
   Magazine = Magazine
      CopyOf = Magazine CFG
   FireSound = Sound
      AddSample = ContentFile
         FilePath = New Weapons.rte/CFG/CFG.wav
   ReloadStartSound = Sound
      AddSample = ContentFile
         FilePath = New Weapons.rte/CFG/charge.wav
   RateOfFire = 100
   ReloadTime = 1000
   FullAuto = 0
   FireIgnoresThis = 1
   ShakeRange = 1
   SharpShakeRange = 1
   NoSupportFactor = 1
   ParticleSpreadRange = 25
   ShellSpreadRange = 8
   ShellAngVelRange = 2
   MuzzleOffset = Vector
      X = 11
      Y = -4
   EjectionOffset = Vector
      X = -4
      Y = -2
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = Spark Yellow 1
      Count = 6
      Spread = 2.25
      MaxVelocity = 20
      MinVelocity = 8
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = Spark Yellow 2
      Count = 5
      Spread = 2.25
      MaxVelocity = 20
      MinVelocity = 8
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = Drop Oil
      Count = 4
      Spread = 2.25
      MaxVelocity = 10
      MinVelocity = 1
   AddGib = Gib
      GibParticle = MOSParticle
         CopyOf = Gib Metal Rust Micro A
      Count = 6
      Spread = 2.25
      MaxVelocity = 15
      MinVelocity = 5
   AddGib = Gib
      GibParticle = MOSParticle
         CopyOf = Gib Metal Grey Micro A
      Count = 5
      Spread = 2.25
      MaxVelocity = 15
      MinVelocity = 5
   AddGib = Gib
      GibParticle = MOSRotating
         CopyOf = Gib Device Small H
      Count = 1
      Spread = 2.25
      MaxVelocity = 10
      MinVelocity = 1
   AddGib = Gib
      GibParticle = MOSRotating
         CopyOf = Gib Device Small J
      Count = 1
      Spread = 2.25
      MaxVelocity = 10


Any ideas? (yes, it's copied off the H-43)

Author:  Bladecat4 [ Sat Apr 11, 2009 9:47 pm ]
Post subject:  Re: CFG Pulse Emitter

You can't only hurt robots. Try it with lua in the next build, or make a scene especially for it now.

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