This page is under construction
Archives/bf1942/levels/mughar_ridge.rfa
bf1942/levels/mughar_ridge/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
ai.setSmoothing 0 20
rem 1424/50, 424/1974, 624/1974, 1824/50

rem *** Infantry ***
ai.addSearchMap Infantry1 0 1.5 30 1.0 0.4 2.0 1
ai.addSearchType Infantry 1 0
ai.setSmoothing 1 10
rem 0/0


rem *** Boat ***
ai.addSearchMap Boat2 1 8 30 4.0 0.3 2.5 0 2 5
ai.addSearchType Boat 2 2
ai.setSmoothing 2 20
rem 1624/50, 1324/50, 324/1974, 288/1713


rem *** LandingCraft ***
ai.addSearchMap LandingCraft3 1 1.4 30 4.0 0.3 2.5 0 2 5
ai.addSearchType LandingCraft 3 2
ai.setSmoothing 3 20
rem 1624/50, 1724/50, 324/1974, 524/1974


rem *** Car ***
ai.addSearchMap Car4 0 0 25 3.0 0.3 2.5 0
ai.addSearchType Car 4 0
ai.setSmoothing 4 6
rem 1524/50, 224/1974, 1724/50, 524/1974, 1044/1336, 669/1114, 1256/1278, 1254/1263, 809/1026

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
rem run StaticObjects.con
rem ai.createAllMaps

endIf