This page is under construction
Archives/Bf1942/Levels/Aberdeen_Sandstorm.rfa
bf1942/levels/Aberdeen_Sandstorm/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 3.0 0.3 2.5 0
ai.addSearchType Tank 0 0
rem ai.setMapSpawnPoints 0 375/426
ai.setSmoothing 0 20
rem 375/426, 375/426, 361/426, 361/426, 636/585, 636/585, 650/576, 650/576

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 387/441
ai.setSmoothing 1 10
rem 387/441, 378/437, 378/443, 365/415, 373/413, 379/441, 362/438, 649/549, 642/563, 645/559, 650/556, 636/573, 644/553, 637/556, 511/511, 529/478, 529/476, 530/480, 487/431, 539/428, 555/425

beginrem
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
endrem

rem *** Load maps ***
ai.loadMaps

endIf