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 1.0 0 4.0 0.3 2.5 0 2 5
ai.addSearchType Boat 2 2
ai.setMapSpawnPoints 2 394/1186, 1050/1371, 1107/972, 1526/1382
ai.setSmoothing 2 20
rem *** Landingcraft ***
ai.addSearchMap LandingCraft3 1 1.0 0 4.0 0.3 2.5 0 2 5
ai.addSearchType LandingCraft 3 2
ai.setMapSpawnPoints 3 1409/1797
ai.setSmoothing 3 20
rem *** Car ***
ai.addSearchMap Car4 0 0 25 2.0 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
run StaticObjects.con
rem ai.createAllMaps
endif