Data Realms Fan Forums
http://45.55.195.193/

Fixed ,actor gets killed by own bullet
http://45.55.195.193/viewtopic.php?f=1&t=16983
Page 1 of 1

Author:  dutchsmoker [ Tue Oct 27, 2009 9:31 pm ]
Post subject:  Fixed ,actor gets killed by own bullet

basicly the projectile i shoot crushes the actor that shoots it(projectile is being spawned inside the actor), ive been trying to fiddle with:
Code:
   EjectionOffset = Vector
      X = 20
      Y = -1


but so far no luck , might just be the wrong thing i'm editing , any help is greatly apriciated
ive added the mod just in case

Edit: thanks for the info , that made most things clear

Attachments:
BallLauncher.rte.rar [1.54 KiB]
Downloaded 176 times

Author:  Metal Meltdown [ Tue Oct 27, 2009 9:55 pm ]
Post subject:  Re: EjectionOffset Prob,actor gets killed by own bullet

Well, that either means the barreloffset is too far behind, or the recoil is more than the actor can handle.

Author:  Duh102 [ Tue Oct 27, 2009 9:58 pm ]
Post subject:  Re: EjectionOffset Prob,actor gets killed by own bullet

It is the mass of the ball. The ball is 300 KG, too heavy for normal actors to handle the recoil of.
Also, the EjectionOffset is where the shell of a round comes out, MuzzleOffset is what you want to change for where the round comes out.

Author:  Grif [ Wed Oct 28, 2009 12:05 am ]
Post subject:  Re: EjectionOffset Prob,actor gets killed by own bullet

PS with FireIgnoresThis = 1 the rounds won't hit the gun or the parent actor anyways

Author:  411570N3 [ Wed Oct 28, 2009 5:54 am ]
Post subject:  Re: EjectionOffset Prob,actor gets killed by own bullet

But the recoil will crush them anyway.
You could add a Lua script to increase the weight of the bullet after it leaves the barrel though; look at Shook's Serious Cannon in his Hueg Pack'o'Mods.

Author:  lafe [ Thu Oct 29, 2009 8:41 pm ]
Post subject:  Re: Fixed ,actor gets killed by own bullet

or spawn a light aemitter that shoots the bullet (if your lua-phobic)

Author:  Duh102 [ Thu Oct 29, 2009 8:50 pm ]
Post subject:  Re: Fixed ,actor gets killed by own bullet

It is actually more difficult to do it with AEmitters than with Lua. Here's the Lua script:
Code:
function Create(self)
   self.Mass = (insert mass you want here)
end

With the AEmitter method, you would have to make two objects instead of one.
  • Requested MOSRotating with 3000KG mass
  • Fired AEmitter with ~1KG mass
Approximately 20-some extra lines of ini code, most of which is just setting up the basic properties of your AEmitter.

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