Data Realms Fan Forums
http://45.55.195.193/

Any Way to Judge an Offset?
http://45.55.195.193/viewtopic.php?f=1&t=19045
Page 1 of 1

Author:  CaveCricket48 [ Mon Jun 21, 2010 12:38 am ]
Post subject:  Re: Any Way to Judge an Offset?

Whatever you put the SpriteOffset as, all other offsets are based off of that.

Author:  alphagamer774 [ Mon Jun 21, 2010 12:50 am ]
Post subject:  Re: Any Way to Judge an Offset?

Give the gun to an actor in it's .ini, then go into the actor viewer. That way you can just press "reload actor's data" instead of rebooting the game itself One helluva timesaver.

Author:  Azukki [ Mon Jun 21, 2010 12:56 am ]
Post subject:  Re: Any Way to Judge an Offset?

x is horizontal, y is vertical, the unit is pixels
The sprite offset is the center of mass and the base of most other offsets.
The sprite offset is offset from the top left corner of the image, with up and left being positive.
Thus, the sprite offset is almost always approximately the dimensions of the image, divided by negative 2.
EG, my assault rifle sprite is 30x10 pixels, my sprite offset is probably gonna be about X = -15 Y = -5

Most other offsets are offset from the sprite offset, with right and down being positive.
EG the muzzle of my assault rifle is 14 pixels to the right and 1 pixel above the position I previously made the SpriteOffset, so my muzzle offset will be X = 14, Y = -1


Edit: here's a little guide I whipped up, hopefully explaining my technique for determining offsets.
Chock-full of inconsistency between first, second, and maybe even third person!
Image
Feel free to use this guide however...
Except for editing it to intentionally give false information, and then redistributing it.
Or printing it off, making an origami bag out of it, and smuggling cocaine from mexico across the border in it.
Don't do either of those, those are bad things to do.


Attachments:
File comment: This might be handy, so you can imitate the technique and learn first hand.
WarfighterOffsetDemo.bmp [1.37 KiB]
Not downloaded yet

Author:  Awesomeness [ Mon Jun 21, 2010 3:20 pm ]
Post subject:  Re: Any Way to Judge an Offset?

Azukki wrote:
x is horizontal, y is vertical, the unit is pixels
The sprite offset is the center of mass and the base of most other offsets.
The sprite offset is offset from the top left corner of the image, with up and left being positive.
Thus, the sprite offset is almost always approximately the dimensions of the image, divided by negative 2.
EG, my assault rifle sprite is 30x10 pixels, my sprite offset is probably gonna be about X = -15 Y = -5

Most other offsets are offset from the sprite offset, with right and down being positive.
EG the muzzle of my assault rifle is 14 pixels to the right and 1 pixel above the position I previously made the SpriteOffset, so my muzzle offset will be X = 14, Y = -1


Edit: here's a little guide I whipped up, hopefully explaining my technique for determining offsets.
Chock-full of inconsistency between first, second, and maybe even third person!

<Insert giant, super-helpful image here that I won't quote>

Feel free to use this guide however...
Except for editing it to intentionally give false information, and then redistributing it.
Or printing it off, making an origami bag out of it, and smuggling cocaine from mexico across the border in it.
Don't do either of those, those are bad things to do.


Thanks, Azukki! That's so helpful!

Author:  CCnewplayer [ Wed Jun 23, 2010 7:33 pm ]
Post subject:  Re: Any Way to Judge an Offset?

The magazine offset it's in the magazine's part , his name is "ParentOffset" , sometimes he is below this:

Quote:
Magazine = Magazine
CopyOf = Magazine


in the weapon's part

Author:  Azukki [ Wed Jun 23, 2010 9:13 pm ]
Post subject:  Re: Any Way to Judge an Offset?

Again, I explain best with visuals... And get annoyed by how much photobucket is making itself terrible. But not enough to start using another service. Not quite.
Image
Please redistribute this guide wherever you think it will be most helpful.

Now that I've noticed the set of MSPaint numbers that I used in this guide, I might go back and simplify the other guide...
Edit: aaaannnd it is done

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