Help - Search - Members - Calendar
Full Version: unclimbable terrain...
AC Tools Everything Macro > Other Scripting Tools > Skunkworks
therkyn
I was curious, you seem to have figured out how to send a flag about unpassable terrain to your plugin... is that info passed to skunkworks? By landblock?

Thanks,
-t
GKusnick
Not directly. Maploc.lbt.rgz has been in there for quite a while and gives access to the grid of altitude samples that defines a landblock's terrain. Using that info, it's possible to get a rough idea of where the terrain becomes impassable by checking neighboring gird samples for big changes in altitude.

However to get an exact reading of passability/impassability, there's one more bit of info you need, which is how each grid cell folds into triangles. Knowing that, it's possible to test each triangle to see if it's too steep to climb (which is how the game itself decides). I have code that does this, but it's not part of SkunkWorks, it's a separate COM component (and therefore in principle callable from a SkunkWorks script).

What's your application? Do you need exact per-triangle info, or is a rough estimate of terrain steepness good enough?
therkyn
To be honest, I've just been using the height comparison method, though I never for some reason thought of joining distance with it to get a steepness consideration. That in itself will probably solve my problem.

Thanks for making me think a bit differently.
-t
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.