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



Reply to topic  [ 5 posts ] 
 Attachable (helmet) shifting down with time 
Author Message
User avatar

Joined: Tue Nov 11, 2008 8:26 am
Posts: 202
Location: Near Aloha
Reply with quote
Post Attachable (helmet) shifting down with time
I am working on a new actor (based on the coalition heavy) that also happens to have a helmet. It's added the exact same way, by an AddAttachable to the head code. It looks fine initially, but as a match wears on, many of the helmets start to move, to a point where the hair of the head is sticking through the top of the helmet. I don't think the vanilla helmets move this much, and I pretty much mimicked their settings with the exception of a nudge here and there to align things.

Another question is: what is the difference between spriteoffset and jointoffset? And for things like heads, there's a spriteoffset for the head itself, and another spriteoffset when the head is attached to the main actor. Is there a reason for using two sets of numbers for what is essentially the same thing?


Wed Nov 26, 2008 8:39 am
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Attachable (helmet) shifting down with time
there shouldnt be another spriteoffset.
the spriteoffset moves the sprite itself around, basically so its centered on the axis, which is what it will rotate on. jointoffset is a point on the axis that joins the sprite to something.
attachables should not shift down.. ever. can we have some gifs?


Wed Nov 26, 2008 8:56 am
Profile WWW
User avatar

Joined: Mon Aug 18, 2008 5:29 pm
Posts: 607
Location: Ukraine,Odessa in the ASC bunker-base
Reply with quote
Post Re: Attachable (helmet) shifting down with time
They do shift down . Look in ASC at my basicsoldier's helmet . Every 3-4 seconds its shifting down and left (that way /)
...............v


Wed Nov 26, 2008 9:22 am
Profile
User avatar

Joined: Tue Nov 11, 2008 8:26 am
Posts: 202
Location: Near Aloha
Reply with quote
Post Re: Attachable (helmet) shifting down with time
I would post a gif, but it is something that tends to happen over a long period of time. Maybe a time lapse gif? I'm fiddling around with it some more, the helmet design was really thin (like a biker skullcap) and didn't allow much room for error so I made the helmet a bit bigger. (the shift was maybe 1-2 pixels at the most.) I think that should help.
Thanks for the info on the offsets. They are pretty confusing; I thought they'd be more straightforward.


Wed Nov 26, 2008 9:55 am
Profile
User avatar

Joined: Sun Dec 09, 2007 3:08 pm
Posts: 481
Location: Islamic Republic of Bradistan, Yorkshire, England
Reply with quote
Post Re: Attachable (helmet) shifting down with time
It's the sprites. Depending on the angle it might look right or wrong. The Coalition guys get around this by having thick, black borders on the top of the goggles and the bottom of the helmet. Try that. And make the sprite a bit bigger so the top of the head doesn't show through.


Wed Nov 26, 2008 5:35 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 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.044s | 14 Queries | GZIP : Off ]