This page is under construction
Archives/bf1942/levels/SG_Pacific_Invasion.rfa
bf1942/levels/SG_Pacific_Invasion/AIPathFinding.con
if v_arg1 == host
rem *** Pathfinding debug mode
rem game.aiPathfindingDebuggingActive 1
rem *** Set number of maps ***
rem ai.setNSearchMaps 2 *** DEPRICATED ***
rem ai.setNSearchTypes 2 *** DEPRICATED ***
rem *** Set number of AStar resources ***
rem ai.numAStarResources 12
rem *** Setup map parameters ***
rem *** searchMap name/waterHeight/waterDepth/maxSlope/brush/lowClipLevel/hiClipLevel/considerAITypes
rem *** searchType name/mapNum/minSearchLevel
rem *** Tank ***
ai.addSearchMap Tank0 0 0 25 1.0 0.3 2.5 0
ai.addSearchType Tank 0 0
rem ai.setMapSpawnPoints 0 1456/415
ai.setSmoothing 0 20
rem 1456/415, 1455/407, 1566/1541, 1594/1385
rem *** Infantry ***
ai.addSearchMap Infantry1 0 1.5 30 1.0 0.4 2.0 1
ai.addSearchType Infantry 1 0
rem ai.setMapSpawnPoints 1 1469/415
ai.setSmoothing 1 10
rem 1469/415, 1387/325, 1351/542, 1353/557, 1392/725, 1468/722, 1500/372, 1522/402, 1451/425, 563/833, 536/662, 526/692, 528/726, 634/716, 609/715, 657/787, 524/778, 1521/1569, 1558/1550, 1562/1459, 1526/1441, 1456/1421, 1456/1390, 1514/1407, 1601/1292, 1421/1538, 1460/1561, 1485/1566, 1509/1571
rem *** Boat ***
ai.addSearchMap Boat2 1 8 30 4.0 0.3 2.5 0 2 5
ai.addSearchType Boat 2 2
rem ai.setMapSpawnPoints 2 1480/727
ai.setSmoothing 2 20
rem 1480/727, 1380/728, 1289/647, 1371/338, 1388/320, 715/673, 656/793, 558/840, 1630/1674, 1607/1291, 1233/1395, 1311/1638
rem *** LandingCraft ***
ai.addSearchMap LandingCraft3 1 1.4 30 4.0 0.3 2.5 0 2 5
ai.addSearchType LandingCraft 3 2
rem ai.setMapSpawnPoints 3 1513/403
ai.setSmoothing 3 20
rem 1513/403, 1514/387, 1543/1565, 1557/1570
rem *** Amphibius ***
ai.addSearchMap Amphibius4 0 1000 30 4.0 0.3 2.5 0
ai.addSearchType Amphibius 4 0
ai.setMapSpawnPoints 4 0/0
ai.setSmoothing 4 20
ai.setWaterCutOffDepth 1
rem *** Load maps ***
ai.loadMaps
endIf
rem *** Pathfinding debug mode
rem game.aiPathfindingDebuggingActive 1
rem *** Set number of maps ***
rem ai.setNSearchMaps 2 *** DEPRICATED ***
rem ai.setNSearchTypes 2 *** DEPRICATED ***
rem *** Set number of AStar resources ***
rem ai.numAStarResources 12
rem *** Setup map parameters ***
rem *** searchMap name/waterHeight/waterDepth/maxSlope/brush/lowClipLevel/hiClipLevel/considerAITypes
rem *** searchType name/mapNum/minSearchLevel
rem *** Tank ***
ai.addSearchMap Tank0 0 0 25 1.0 0.3 2.5 0
ai.addSearchType Tank 0 0
rem ai.setMapSpawnPoints 0 1456/415
ai.setSmoothing 0 20
rem 1456/415, 1455/407, 1566/1541, 1594/1385
rem *** Infantry ***
ai.addSearchMap Infantry1 0 1.5 30 1.0 0.4 2.0 1
ai.addSearchType Infantry 1 0
rem ai.setMapSpawnPoints 1 1469/415
ai.setSmoothing 1 10
rem 1469/415, 1387/325, 1351/542, 1353/557, 1392/725, 1468/722, 1500/372, 1522/402, 1451/425, 563/833, 536/662, 526/692, 528/726, 634/716, 609/715, 657/787, 524/778, 1521/1569, 1558/1550, 1562/1459, 1526/1441, 1456/1421, 1456/1390, 1514/1407, 1601/1292, 1421/1538, 1460/1561, 1485/1566, 1509/1571
rem *** Boat ***
ai.addSearchMap Boat2 1 8 30 4.0 0.3 2.5 0 2 5
ai.addSearchType Boat 2 2
rem ai.setMapSpawnPoints 2 1480/727
ai.setSmoothing 2 20
rem 1480/727, 1380/728, 1289/647, 1371/338, 1388/320, 715/673, 656/793, 558/840, 1630/1674, 1607/1291, 1233/1395, 1311/1638
rem *** LandingCraft ***
ai.addSearchMap LandingCraft3 1 1.4 30 4.0 0.3 2.5 0 2 5
ai.addSearchType LandingCraft 3 2
rem ai.setMapSpawnPoints 3 1513/403
ai.setSmoothing 3 20
rem 1513/403, 1514/387, 1543/1565, 1557/1570
rem *** Amphibius ***
ai.addSearchMap Amphibius4 0 1000 30 4.0 0.3 2.5 0
ai.addSearchType Amphibius 4 0
ai.setMapSpawnPoints 4 0/0
ai.setSmoothing 4 20
ai.setWaterCutOffDepth 1
rem *** Load maps ***
ai.loadMaps
endIf