View Single Post
Old 09.09.2005, 06:29   #23
red
Архивный участник
 
Join Date: Sep 2005
Posts: 15
Default

Quote:
Originally Posted by elcapo
red: ((ingame_height*2)/16-1)=> remove after point number and do this -> *16+1

works great when u have ingame_heights, but, my idea is convert the 64+'s floors type height into 1:1, to make modifications, and merge it again.

i use h/2 but obviously it has a little convertion error, but, i think this LITTLE difference are making that every 64+'s floor type been unwalkeable. Just enter in the 64+'s type floor, and u will stuck.

I check it with //worlddebug, and the heigth is quite the same, with "may be", 10z of error.
I dont know what happends.
i know, thats why you need this formula
flors seems to have "thickness" (its fflam idea) the height is the very top pixel of subgrid, exmaple:
-3440 is the first pixel of the 215subgrid, its range is -3440-3455 as you can see its the bridge itself and the range is not accessible for player, so to fix it put 215-1 subgrid into geodata

((ingame_height*2)/16-1)=> remove after point number and do this -> *16+1
((-3440*2)/16-1)=-6880/16-1=-429 and now *16+1
-429*16+1=-6863
-6863 its the height to put into geodata, you should be able to make backwards formula, but for what purpose...
red is offline