humordwarf
15.04.2006, 22:52
Geodata Fall Analyser
http://img87.imageshack.us/img87/429/hdgfashot1ko.th.jpg (http://img87.imageshack.us/my.php?image=hdgfashot1ko.jpg)
logic:
app check each cell by algorithm 4 times (for N, S, W, and E):
1. if player can not move to target cell - no problems
2. else if number of layers in target cell = 1 - no problems
3. else if closest Z in target cell < MinDZ - no problems
4. else if (coord below closest Z) - (current Z) < FlyZ - no problems
5. else we have problem: we possible fall down not into closest Z
example:
Problem Cell: Layer 0 98+1 212+2 (45328 191008) DIR=S DZ=96 FZ=1064
you stay in 45328 191008
if you go to South, you may fall down by 1064, because closest cell is too high than you (DZ=96)
link below
http://img87.imageshack.us/img87/429/hdgfashot1ko.th.jpg (http://img87.imageshack.us/my.php?image=hdgfashot1ko.jpg)
logic:
app check each cell by algorithm 4 times (for N, S, W, and E):
1. if player can not move to target cell - no problems
2. else if number of layers in target cell = 1 - no problems
3. else if closest Z in target cell < MinDZ - no problems
4. else if (coord below closest Z) - (current Z) < FlyZ - no problems
5. else we have problem: we possible fall down not into closest Z
example:
Problem Cell: Layer 0 98+1 212+2 (45328 191008) DIR=S DZ=96 FZ=1064
you stay in 45328 191008
if you go to South, you may fall down by 1064, because closest cell is too high than you (DZ=96)
link below