This page is under construction
Archives/bf1942/levels/battle_of_halen.rfa
bf1942/levels/battle_of_halen/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 908/688
ai.setSmoothing 0 5
rem 908/688, 908/688, 924/688, 924/688, 912/696, 912/696, 920/696, 920/696, 300/659, 300/659, 283/634, 283/634, 314/632, 314/632, 282/661, 282/661, 817/636, 817/636, 806/642, 806/642, 780/600, 780/600, 690/686, 690/686, 702/672, 702/672, 702/616, 702/616, 638/606, 638/606, 660/616, 660/616, 572/669, 572/669, 573/686, 573/686, 497/602, 497/602, 455/610, 455/610, 499/582, 499/582, 552/684, 552/684, 675/625, 675/625, 432/658, 432/658, 453/601, 453/601, 703/611, 703/611, 440/677, 440/677, 420/680, 420/680, 316/663, 316/663, 315/625, 315/625, 371/607, 371/607, 323/654, 323/654, 409/598, 409/598, 625/606, 625/606
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 916/702
ai.setSmoothing 1 10
rem 916/702, 814/648, 908/699, 925/700, 916/685, 802/644, 815/634, 797/652, 779/602, 800/636, 674/622, 668/648, 668/666, 695/622, 695/668, 687/686, 706/613, 569/670, 570/684, 556/683, 560/697, 571/691, 503/577, 497/579, 494/601, 491/610, 458/599, 461/609, 423/688, 422/680, 438/688, 437/679, 432/660, 424/656, 280/655, 298/628, 310/647, 301/643, 312/626, 312/662, 487/594
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
run StaticObjects.con
ai.createAllMaps
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 908/688
ai.setSmoothing 0 5
rem 908/688, 908/688, 924/688, 924/688, 912/696, 912/696, 920/696, 920/696, 300/659, 300/659, 283/634, 283/634, 314/632, 314/632, 282/661, 282/661, 817/636, 817/636, 806/642, 806/642, 780/600, 780/600, 690/686, 690/686, 702/672, 702/672, 702/616, 702/616, 638/606, 638/606, 660/616, 660/616, 572/669, 572/669, 573/686, 573/686, 497/602, 497/602, 455/610, 455/610, 499/582, 499/582, 552/684, 552/684, 675/625, 675/625, 432/658, 432/658, 453/601, 453/601, 703/611, 703/611, 440/677, 440/677, 420/680, 420/680, 316/663, 316/663, 315/625, 315/625, 371/607, 371/607, 323/654, 323/654, 409/598, 409/598, 625/606, 625/606
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 916/702
ai.setSmoothing 1 10
rem 916/702, 814/648, 908/699, 925/700, 916/685, 802/644, 815/634, 797/652, 779/602, 800/636, 674/622, 668/648, 668/666, 695/622, 695/668, 687/686, 706/613, 569/670, 570/684, 556/683, 560/697, 571/691, 503/577, 497/579, 494/601, 491/610, 458/599, 461/609, 423/688, 422/680, 438/688, 437/679, 432/660, 424/656, 280/655, 298/628, 310/647, 301/643, 312/626, 312/662, 487/594
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
run StaticObjects.con
ai.createAllMaps
endIf