This page is under construction
Archives/bf1942/levels/maps - with documentation/Take the Island/Take_the_Island.rfa
bf1942/levels/Take_the_Island/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 0/0
ai.setSmoothing 0 20
rem 0/0,
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 418/579
ai.setSmoothing 1 10
rem 418/579, 389/571, 411/592, 404/591, 405/563, 581/533, 571/522, 591/516, 590/537, 556/537, 854/902, 861/905, 856/887, 162/113, 146/126, 150/118
rem *** Boat ***
ai.addSearchMap Boat2 1 8 30 4.0 0.3 2.5 0 2 5
ai.addSearchType Boat 2 2
rem ai.setMapSpawnPoints 2 145/714
ai.setSmoothing 2 20
rem 145/714, 882/419, 845/863, 845/863, 856/861, 856/861, 186/160, 186/160, 193/152, 193/152
rem *** LandingCraft ***
ai.addSearchMap LandingCraft3 1 1.4 30 4.0 0.3 2.5 0 2 5
ai.addSearchType LandingCraft 3 2
rem ai.setMapSpawnPoints 3 404/648
ai.setSmoothing 3 20
rem 404/648, 404/648, 529/486, 470/432, 343/349, 820/861, 821/146, 142/163, 148/382
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
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 0/0
ai.setSmoothing 0 20
rem 0/0,
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 418/579
ai.setSmoothing 1 10
rem 418/579, 389/571, 411/592, 404/591, 405/563, 581/533, 571/522, 591/516, 590/537, 556/537, 854/902, 861/905, 856/887, 162/113, 146/126, 150/118
rem *** Boat ***
ai.addSearchMap Boat2 1 8 30 4.0 0.3 2.5 0 2 5
ai.addSearchType Boat 2 2
rem ai.setMapSpawnPoints 2 145/714
ai.setSmoothing 2 20
rem 145/714, 882/419, 845/863, 845/863, 856/861, 856/861, 186/160, 186/160, 193/152, 193/152
rem *** LandingCraft ***
ai.addSearchMap LandingCraft3 1 1.4 30 4.0 0.3 2.5 0 2 5
ai.addSearchType LandingCraft 3 2
rem ai.setMapSpawnPoints 3 404/648
ai.setSmoothing 3 20
rem 404/648, 404/648, 529/486, 470/432, 343/349, 820/861, 821/146, 142/163, 148/382
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