View unanswered posts | View active topics It is currently Tue Jan 07, 2025 1:58 am



Reply to topic  [ 10 posts ] 
 Support hand offset? 
Author Message
User avatar

Joined: Thu Feb 12, 2009 8:14 am
Posts: 110
Reply with quote
Post 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.


Sun Apr 25, 2010 8:49 am
Profile
User avatar

Joined: Tue Aug 21, 2007 6:50 pm
Posts: 93
Location: Lithuania.
Reply with quote
Post 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.


Last edited by adasx10 on Sun Apr 25, 2010 1:41 pm, edited 1 time in total.



Sun Apr 25, 2010 11:05 am
Profile
User avatar

Joined: Tue Oct 13, 2009 4:23 pm
Posts: 915
Location: Blighty
Reply with quote
Post 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.


Sun Apr 25, 2010 11:56 am
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: Support hand offset?
They are taking the values of the spriteoffset and the position of the actor's shoulder.


Sun Apr 25, 2010 12:02 pm
Profile
User avatar

Joined: Thu Feb 12, 2009 8:14 am
Posts: 110
Reply with quote
Post 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).


Sun Apr 25, 2010 12:05 pm
Profile
User avatar

Joined: Fri Feb 16, 2007 8:43 pm
Posts: 1695
Location: AH SHIT FUCK AUGH
Reply with quote
Post 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.


Sun Apr 25, 2010 1:04 pm
Profile WWW
User avatar

Joined: Mon Oct 06, 2008 2:04 am
Posts: 1559
Reply with quote
Post 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.


Mon Apr 26, 2010 2:44 am
Profile
User avatar

Joined: Wed Sep 09, 2009 3:16 am
Posts: 3032
Location: Somewhere in the universe
Reply with quote
Post 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.


Mon Apr 26, 2010 4:48 am
Profile
User avatar

Joined: Tue Oct 13, 2009 4:23 pm
Posts: 915
Location: Blighty
Reply with quote
Post 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.


Mon Apr 26, 2010 3:50 pm
Profile
User avatar

Joined: Fri Feb 16, 2007 8:43 pm
Posts: 1695
Location: AH SHIT FUCK AUGH
Reply with quote
Post 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.


Mon Apr 26, 2010 4:03 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: Google [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.033s | 14 Queries | GZIP : Off ]