Data Realms Fan Forums
http://45.55.195.193/

Shotgun not shooting straight
http://45.55.195.193/viewtopic.php?f=1&t=19005
Page 1 of 1

Author:  Crow [ Wed Jun 16, 2010 8:13 pm ]
Post subject:  Shotgun not shooting straight

Hi, I have a shotgun in a mod of mine, which often, when fired downward or upward at a somewhat extreme angle, fires its particles at a random angle that can be anywhere from 10 to almost 80 degrees off of the correct trajectory.

Why does this happen?

Author:  Petethegoat [ Wed Jun 16, 2010 8:21 pm ]
Post subject:  Re: Shotgun not shooting straight

It is hard to say without more info.
Does it fire an AEmitter that then fires the round? Anything like that?

Author:  Crow [ Wed Jun 16, 2010 8:26 pm ]
Post subject:  Re: Shotgun not shooting straight

No, it doesn't.

Here's the .ini file that contains it -- it's the shotgun at the very bottom.

Attachments:
Shotguns.ini [20.64 KiB]
Downloaded 192 times

Author:  CaveCricket48 [ Wed Jun 16, 2010 8:29 pm ]
Post subject:  Re: Shotgun not shooting straight

"NoSupportFactor" is the spread amount when the weapon is only held with one hand. When you look directly up or directly down, usually the offhand is not holding the weapon. Sonce you have the value set to 100 degrees, that's pretty inaccurate one-handed.

Author:  Crow [ Wed Jun 16, 2010 8:31 pm ]
Post subject:  Re: Shotgun not shooting straight

Aha! Thanks a lot!

Author:  Shook [ Wed Jun 16, 2010 8:59 pm ]
Post subject:  Re: Shotgun not shooting straight

Actually, NoSupportFactor is the number that ShakeRange/SharpShakeRange is multiplied by when the support hand isn't holding the gun. This means you'll be twice as inaccurate with a NoSupportFactor of 2, and 100 times as inaccurate(!!!) with a value of 100. Which is quite a bit.

Author:  CaveCricket48 [ Wed Jun 16, 2010 9:04 pm ]
Post subject:  Re: Shotgun not shooting straight

I want a CC variable dictionary to stop all of this confusion.

Author:  Petethegoat [ Wed Jun 16, 2010 10:21 pm ]
Post subject:  Re: Shotgun not shooting straight

There is a page on the wiki that needs filling out.

Author:  Crow [ Thu Jun 17, 2010 12:17 am ]
Post subject:  Re: Shotgun not shooting straight

Another quick question: is JointStrength the only variable that effects whether an actor will explode because he bumped into somebody like a Coalition Soldier, or whether he will not explode, like a Dummy? (I know about GibImpulseLimit -- I don't think that effects this so much)

What is JointStiffness?

Author:  Petethegoat [ Thu Jun 17, 2010 12:24 am ]
Post subject:  Re: Shotgun not shooting straight

I believe JointStrength is how strongly a weapon, for example, is attached to the actors arms.
So low JointStrength will mean that it can be easily knocked out an actors hands.
I could be horribly wrong here, but I'm reasonably confident.

JointStiffness determines the amount of impulse damage something will take from a collision.
For example, something with a JointStiffness of 0.5 will take half of the full impulse damage.

Author:  Crow [ Thu Jun 17, 2010 12:40 am ]
Post subject:  Re: Shotgun not shooting straight

I think you're wrong, actually. I just increased the JointStrength values for my soldiers and now only the un-edited troops explode like cute little meat grenades when they get patted on the back.

Author:  Petethegoat [ Thu Jun 17, 2010 12:50 am ]
Post subject:  Re: Shotgun not shooting straight

Yep, here are definitions of both from the wiki:
JointStrength: The impulse strength of a joint to breakage. Likely is measured in Mass X Velocity of the object colliding.
JointStiffness: A multiplier for how much impulse is transferred through the joint to the parent object.
If 0.5 and an attachment recieves 100 impulse, the parent would experience 50 impulse in the same direction.

I'm sure there was a variable that did what I described, though. Ah well.

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