This page is under construction
Archives/bf1942/levels/Invasion_of_the_Philippines.rfa
bf1942/levels/Invasion_of_the_Philippines/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 ***
ai.numAStarResources 12
rem *** Setup map parameters ***
rem *** Tank ***
rem *** searchMap name/ waterHeight/ waterDepth/maxSlope/brush/lowClipLevel/hiClipLevel/
rem considerAITypes/createSecondLayerMap/ firstLevel-secondlevel-thirdlevel (for second layer map)
rem *** searchType name/mapNum/minSearchLevel
rem *** Tank ***
ai.addSearchMap Tank0 0 0 30 2.0 0.3 2.5 0 0 2
ai.addSearchType Tank 0 0
ai.setMapSpawnPoints 0 558/1256, 497/758
ai.setSmoothing 0 15
rem *** Infantry ***
ai.addSearchMap Infantry1 0 1.3 40 1.0 0.4 2.0 1 0 2
ai.addSearchType Infantry 1 0
ai.setMapSpawnPoints 1 525/1239, 1084/1133, 1147/1343, 1663/1585
ai.setSmoothing 1 10
rem *** Boat ***
ai.addSearchMap Boat2 1 0.8 30 1.0 0.3 2.5 0 0 5
ai.addSearchType Boat 2 2
ai.setMapSpawnPoints 2 1409/1797, 394/1186, 394/1175, 655/763, 655/776, 1051/1372, 1039/1371, 1107/969, 1096/969, 1527/1380, 1516/1389
ai.setSmoothing 2 10
rem *** Landingcraft ***
ai.addSearchMap LandingCraft3 1 1.0 30 1.0 0.3 2.5 0 0 5
ai.addSearchType LandingCraft 3 2
ai.setMapSpawnPoints 3 1409/1797, 1050/1371
ai.setSmoothing 3 10
rem *** Car ***
ai.addSearchMap Car4 0 0 25 2.5 0.3 2.5 0
ai.addSearchType Car 4 0
ai.setMapSpawnPoints 4 567/1220, 496/747, 1094/1142, 1551/1503, 558/778
ai.setSmoothing 4 10
rem *** Load maps ***
ai.loadMaps
rem run StaticObjects.con
rem ai.createAllMaps
rem ai.createAllSearchTypes
endif