Does anyone know how transparency egg works?

iSage

First time out of the vault
Subj. (Well, atleast authors of fonline should know, because it works there)
I know that it's based on wall orientation, and checks are done by tile_in_front_of/tile_to_the_right_of, which uses tile_coord, which returns hex coords.
And it kinda works, but there's some scenery, like billboard near first building on klamall map, which doesn't.
Because it's hex actually in lower right corner of the FRM, and dude will always be to the left of it.
If i offset object coords by half object width, then egg transparency starts to work on billboard, but not only when dude behind it, but also when he's in front of it.
And i'm kinda stuck here. I'm not even really sure that tile_coord returns x/y of hex. I've made some screenshots and compared with values in debugger, but maybe there's some special cases.
 
Oh, nevermind, i'm just stupid and forgot to read/set/check orientation of scenery objects.
So yeah, texture offsets are ignored (they just checked later for intersection with egg texture), and tile_coord returns screen coords of *hex*
 
Back
Top