mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-02-18 22:23:51 +00:00
Initial commit
This commit is contained in:
parent
2211ed7650
commit
ebb3dc9cdd
10121 changed files with 801 additions and 4 deletions
39
docs/base/@vl2/scripts.vl2/scripts/graphBuild.cs
Normal file
39
docs/base/@vl2/scripts.vl2/scripts/graphBuild.cs
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
// offline graph building
|
||||
|
||||
$MAXNODECOUNT = 5000;
|
||||
|
||||
function makeJettableGraphOffline(%NAVorSPAWN)
|
||||
{
|
||||
if (%NAVorSPAWN $= "Spawn")
|
||||
echo("--> Building Spawn Graph");
|
||||
else
|
||||
echo("--> Building Nav Graph");
|
||||
|
||||
// Inform what we're generating-
|
||||
navGraph.setGenMode(%NAVorSPAWN);
|
||||
|
||||
// Upload ground and floor data-
|
||||
navGraph::exteriorInspect();
|
||||
navGraph::generateInterior();
|
||||
|
||||
// navGraph.makeGraph();
|
||||
// navGraph.findBridges();
|
||||
// navGraph.pushBridges();
|
||||
|
||||
navGraph.assemble();
|
||||
navGraph.cullIslands();
|
||||
|
||||
navGraph.makeGraph();
|
||||
navGraph.pushBridges();
|
||||
navGraph.makeTables();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function doTablebuildOffline()
|
||||
{
|
||||
navGraph.prepLOS("0 0 0");
|
||||
while(navGraph.makeLOS())
|
||||
%percent++;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue