Samb,

I guess that one of the benefits in helping test out is that you get your wish! I've added the ability to turn off the "line of sight" portion of the pathfinding. I can't imagine many times you'd want to turn this off, but a pacman game is a good example!

Here's how to turn it off:

pf_use_los(0);

Here's an example:

Code:

function main()
{
warn_level = 0; // This is necessary!

// Open the pathfinding .dll. Do this before the level loads so that entities
// can reference the pathfinding .dll in their actions. Otherwise, the entity
// actions can start running before the pathfinding .dll has loaded, resulting
// in an error.

pathfind_handle = dll_open("pathfind.dll");

wait(3);
level_load(level_str);
wait(2);

pf_use_los(0); // turn off LOS pathfinding step

// Initialized pathfinding nodes. Do this after the level loads. The
// .dll function pf_initialized() returns 1 when the pathfinding has completed
// initialization.

pf_init_nodes();

}



Also, I updated ez_path.wdl to contain the new .dll function prototypes.
You can get the new package at
http://www.gamebeep.com/freebies/ez_path_src.zip

Enjoy!
- Bret