Data Realms Fan Forums
http://45.55.195.193/

Darn gun offsets
http://45.55.195.193/viewtopic.php?f=1&t=13832
Page 1 of 1

Author:  Roon3 [ Sat Feb 28, 2009 11:13 am ]
Post subject:  Darn gun offsets

I've been making this gun, I'm pretty sure my offsets are right, but the gun seems to fire awkwardly:
Image

Both ejection and muzzle offsets are the same, but for some reason the bullets start where the red dot is. I keep thinking I missed some variable, please help.

Code for the gun

(I can't believe I'm asking an offset related question...)

Author:  411570N3 [ Sat Feb 28, 2009 12:24 pm ]
Post subject:  Re: Darn gun offsets

Try setting the offsets to 0 and seeing what happens....

Author:  Miles_T3hR4t [ Sat Feb 28, 2009 3:28 pm ]
Post subject:  Re: Darn gun offsets

after you define the guns offset, X reverses.

Offset, Right is -x, afterwords, Right is +x All the tutorials in the wiki have this backwards and everyone in charge of it refuses to change it.

Invert the Muzzle Offset for X (-12 to 12, or whatever)

That should put it in the right area.

Author:  capnbubs [ Sat Feb 28, 2009 3:52 pm ]
Post subject:  Re: Darn gun offsets

Your problem is the separation variable.

The separation variable defines how far backwards from the muzzle of the gun the bullets can appear. They will appear spread out along a line as long in pixels as the separation variable, in your case 75 pixels.

This is useful for shotguns when you want to get a horizontal spread in the shot.

If you change the separation variable under 'addammo = round' to 0 or atleast less than the length of the gun then your code should work how you want.

Author:  Roon3 [ Sat Feb 28, 2009 4:10 pm ]
Post subject:  Re: Darn gun offsets

Thanks a lot bubs, it works

Author:  capnbubs [ Sat Feb 28, 2009 4:13 pm ]
Post subject:  Re: Darn gun offsets

Roon3 wrote:
Thanks a lot bubs, it works


Glad to be of service

Author:  Miles_T3hR4t [ Sun Mar 01, 2009 5:34 pm ]
Post subject:  Re: Darn gun offsets

capnbubs wrote:
Your problem is the separation variable.

The separation variable defines how far backwards from the muzzle of the gun the bullets can appear. They will appear spread out along a line as long in pixels as the separation variable, in your case 75 pixels.

This is useful for shotguns when you want to get a horizontal spread in the shot.

If you change the separation variable under 'addammo = round' to 0 or atleast less than the length of the gun then your code should work how you want.


Holy Crap!

I have thought separation was vertical separation since B13! Crap! (I always just set it to 0.....)

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