This page is under construction
Archives/bf1942/levels/maps - with documentation/Winter Storm/Winter_Storm.rfa
bf1942/levels/Winter_Storm/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 553/234
ai.setSmoothing 0 20
rem 553/234, 553/234, 532/222, 532/222, 528/252, 528/252, 480/695, 480/695, 504/704, 504/704, 517/719, 517/719, 543/244, 543/239, 494/707, 489/707, 481/685, 481/685, 524/222, 524/222, 553/238, 553/238, 480/691, 480/691

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 535/237
ai.setSmoothing 1 10
rem 535/237, 526/243, 543/231, 653/331, 653/315, 663/614, 686/621, 491/693, 515/702, 492/686, 471/702, 464/695, 501/717, 519/254, 679/643, 635/323, 554/246, 518/223, 551/222

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