‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
navmesh_debug.gsc
Go to the documentation of this file.
1 #insert scripts\shared\shared.gsh;
2 
3 function ‪AiPathingTest()
4 {
5  level.pathNodeHints = GetNodeArray( "path_hint", "targetname" );
6 
7  foreach ( pathnode in level.pathNodeHints )
8  {
9  pathnode.connectionLinks = [];
10 
11  for( i=0; i<level.pathNodeHints.size; i++ )
12  {
13  if( pathnode != level.pathNodeHints[i] )
14  {
15  if( self FindPath( pathnode.origin, level.pathnodeHints[i].origin, true ) )
16  {
17  pathnode.connectionLinks[i] = true;
18  }
19  else
20  {
21  pathnode.connectionLinks[i] = false;
22  }
23  }
24  }
25  }
26 
27  while(1)
28  {
29  foreach ( pathnode in level.pathNodeHints )
30  {
31  for( i=0; i<level.pathNodeHints.size; i++ )
32  {
33  if( pathnode != level.pathNodeHints[i] )
34  {
35  if( pathnode.connectionLinks[i] )
36  {
37  /# recordLine( pathnode.origin, level.pathNodeHints[i].origin, ‪GREEN, "Script" ); #/
38  }
39  else
40  {
41  /# recordLine( pathnode.origin, level.pathNodeHints[i].origin, ‪RED, "Script" ); #/
42  }
43  }
44  }
45  }
46 
48  }
49 }
‪GREEN
‪#define GREEN
Definition: shared.gsh:176
‪RED
‪#define RED
Definition: shared.gsh:175
‪AiPathingTest
‪function AiPathingTest()
Definition: navmesh_debug.gsc:3
‪WAIT_SERVER_FRAME
‪#define WAIT_SERVER_FRAME
Definition: shared.gsh:265