![]() |
|
|
#1 |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
Geodata Fall Analyser
![]() 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 |
|
|
|
|