Data Realms Fan Forums
http://45.55.195.193/

Support hand offset?
http://45.55.195.193/viewtopic.php?f=1&t=18595
Page 1 of 1

Author:  mbbird [ Sun Apr 25, 2010 8:49 am ]
Post subject:  Support hand offset?

Is this supposed to tell CC where the secondary hand goes? I know the primary hand is governed by JointOffset = Vector...right? So I have a gun, and it's currently being held like a pistol. Both of my hands are holding the pistol grip, instead of the secondary hand holding the handguard.

Could someone tell me what each of the HDFirearm offsets do? That'd be even more helpful. The wiki doesn't explain them all, and I thought there was a offsets tutorial somewhere but the search said otherwise.

Sorry, I know there's a bazillion threads on this (according to Opera bazillion is a word...?) but I'd like all the info in one place, and not mix it all up with actor offset threads and definitions. I've searched, and they all say support hand is where the secondary hand goes but it so far hasn't done anything.

Author:  adasx10 [ Sun Apr 25, 2010 11:05 am ]
Post subject:  Re: Support hand offset?

JointOffset, StanceOffset, SharpStanceOffset and SupportOffset are tricky.
first you should fix SpriteOffset.
Image

JointOffset - its primary hand. starts from SpriteOffset.
Image

SupportOffset - 2nd hand. so I messed up.

I don't know how to explain StanceOffset and SharpStanceOffset, but they starts from JointOffset.

Author:  matty406 [ Sun Apr 25, 2010 11:56 am ]
Post subject:  Re: Support hand offset?

If I've been studying the gun tutorial correctly, then StanceOffset and SharpStanceOffset should be where the butt of the weapon is positioned. StanceOffset being when shooting from the hip, and SharpStanceOffset being when looking through the sights.

Author:  Lizardheim [ Sun Apr 25, 2010 12:02 pm ]
Post subject:  Re: Support hand offset?

They are taking the values of the spriteoffset and the position of the actor's shoulder.

Author:  mbbird [ Sun Apr 25, 2010 12:05 pm ]
Post subject:  Re: Support hand offset?

I figured out, for the most part, how they work. Only took 3 hours :???:

I still have to use trial and error to get it right. As for stance offset/sharp offset, yeah I don't get how it works but I got it working after about 8 CC start ups. Started it at some random number, worked around until it looked right.

But now I think I know what was wrong. The handguard was too far away, so it didn't even bother trying to reach for it.

By the way, I don't think support offset starts at joint offset, I have it at (0, 1) right now and it works great (had to shorten the sprite) but when I tried (11, -1) which if my memory serves me right was what it would've been if it had needed to start from joint offset, and it was way off (as in it didn't even try to reach it was so far off).

Author:  Shook [ Sun Apr 25, 2010 1:04 pm ]
Post subject:  Re: Support hand offset?

Most offsets start at the SpriteOffset, including SupportOffset. It's just the hand that is a bit weird. Exceptions include StanceOffset and SharpStanceOffset, both starting at the JointOffset of the foreground arm, as well as ParentOffset, which starts at the object's parent's (meaning the object that it is attached to) SpriteOffset.

With the gun facing right, positive X goes to the right, and positive Y goes downwards.

To clarify a bit on StanceOffset and SharpStanceOffset, they state where the gun's JointOffset is positioned in relation to the JointOffset of the arm. This means that a StanceOffset of (5,1) places the gun's JointOffset 5 pixels in front of the arm's JointOffset and 1 pixel below it.

Pardon me if i'm not being coherent, i'm not fully awake yet.

Author:  LowestFormOfWit [ Mon Apr 26, 2010 2:44 am ]
Post subject:  Re: Support hand offset?

Shook wrote:
Pardon me if i'm not being coherent, i'm not fully awake yet.

Trust me, coherency is something that's just naturally devoid of any sentence regarding offsets.

Data really needs to give us a draggable offset editor.

Author:  dragonxp [ Mon Apr 26, 2010 4:48 am ]
Post subject:  Re: Support hand offset?

LowestFormOfWit wrote:
Data really needs to give us a draggable offset editor.


This.
He also needs to post more in his dev log.

Author:  matty406 [ Mon Apr 26, 2010 3:50 pm ]
Post subject:  Re: Support hand offset?

dragonxp wrote:
LowestFormOfWit wrote:
Data really needs to give us a draggable offset editor.


This.
He also needs to post more in his dev log.

I am in favour of this.

Author:  Shook [ Mon Apr 26, 2010 4:03 pm ]
Post subject:  Re: Support hand offset?

Knowing Data, this is unlikely to be anywhere near the top of his priority list. >.>
Meanwhile, the best we could do would be a thorough guide to offsets. Pretty sure there is a good one somewhere, but i don't see any links in the sticky. Perhaps i'll make one when i'm not so damned busy, which would be when i get home at wednesday.

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