This page is under construction
Archives/bf1942/Levels/Essen.rfa
bf1942/Levels/Essen/AIpathFinding.con
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

if v_arg1 == host

rem *** Tank ***
ai.addSearchMap Tank0 0 0 30 3.0 0.3 2.5 0
ai.addSearchType Tank 0 0
ai.setMapSpawnPoints 0 495.075/856.881
ai.setSmoothing 0 20

rem *** Infantry ***
ai.addSearchMap Infantry1 0 1.5 40 1.0 0.4 2.0 1
ai.addSearchType Infantry 1 0
ai.setMapSpawnPoints 1 495.075/856.881
ai.setSmoothing 1 10

rem *** Boat ***
ai.addSearchMap Boat2 1 8 30 4.0 0.3 2.5 0 4 5
ai.addSearchType Boat 2 4
ai.setMapSpawnPoints 2 1007.65/373.649
ai.setSmoothing 2 20

rem *** LandingCraft ***
ai.addSearchMap LandingCraft3 1 1.4 30 4.0 0.3 2.5 0 2 3
ai.addSearchType LandingCraft 3 2
ai.setMapSpawnPoints 3 1010.84/1010.1
ai.setSmoothing 3 20

rem *** Amphibius ***
ai.addSearchMap Amphibius4 0 1000 30 4.0 0.3 2.5 0
ai.addSearchType Amphibius 4 0
ai.setMapSpawnPoints 4 611/555
ai.setSmoothing 4 20
ai.setWaterCutOffDepth 1

beginrem
rem *** Boat ***
ai.addSearchMap Boat2 1 8 30 4.0 0.3 2.5 0 2 5
ai.addSearchType Boat 2 2
ai.setMapSpawnPoints 2 855.821/705.578
ai.setSmoothing 2 20

rem *** LandingCraft ***
ai.addSearchMap LandingCraft3 1 1.4 30 4.0 0.3 2.5 0 2 5
ai.addSearchType LandingCraft 3 2
ai.setMapSpawnPoints 3 965.427/779.672
ai.setSmoothing 3 20

rem *** Car ***
ai.addSearchMap Car4 0 0 35 3.0 0.3 2.5 0
ai.addSearchType Car 4 0
ai.setMapSpawnPoints 4 989/1064
ai.setSmoothin 4 6
endrem

rem *** Load maps ***


ai.loadMaps

endIf