I wonder, is it possible using something similar to the dodgeball or something, if you can make a bouncy ball just randomly choose a number/waypoint, then it will head to it going from point to point to get here, then once it reaches it it will choose another random one and just randomly roam the map...hmmm.

...So..if I understand this right this lets you, or will let you make new or better ai paths in the maps? *shrugs* or make paths within the map so they can get around the contraptions you make, or run along them? *shrugs* I'm mixed up.

I'll just explain this...
Imagine a bunch of points scattered around the map.
Now, between those points are paths, or lines (If there's nothing between those two points ofcourse).
You're going to set up those points yourself.

Now imagine a Z-formed corridor. This corridor is filled with points.
There's an NPC at the start of the corridor that have to reach the other end by going from point to point.
Ofcourse it'll have to choose the shortest path through those points,
'cause we can't have it make a random zig-zag through the corridor.
This program takes those points and calculates the shortest possible path.
That's useful if you want an NPC to, for example, find it's way through a maze or another set of obstacles.

You are awesome. I am so going to use this, eventually. I like the idea of a roaming bouncy ball... I also have ideas in mind for assisting simple Strider, Gunship, and Apache AI (as well as other ground enemies).

What kind of lua created NPCs can there be that can't simply inherit from an existing Source NPC? You shouldn't be having to reinvent the wheel here.

Yes in the case of NPCs you will. Let's say you wanna script an murderous box, in that case, creating a npc_rebel (for example) and setting his model to a box and a bunch of other stuff isn't really the optimal way of doing it. That NPC is made to behave like a rebel, which probably will do, unless you set a shitload of modifiers, and that will probably still present problems.

If you had the real sourcecode you could easily derive the base NPC, add stuff to it and more or less there wouldn't be a limit to what you could do. But we just have Lua and the NPCs that are already there doesn't work in every scenario.