This page is under construction
Archives/bf1942/levels/Battle_for_ortona.rfa
bf1942/levels/Battle_for_ortona/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 ***
ai.numAStarResources 10
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 364/160
ai.setSmoothing 0 20
rem 364/160, 364/160, 376/160, 376/160, 390/160, 390/160, 351/146, 351/146, 430/658, 430/658, 416/606, 416/606, 439/678, 439/678, 428/594, 428/594
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 354/154
ai.setSmoothing 1 10
rem 354/154, 369/168, 383/167, 355/137, 663/196, 634/210, 738/163, 675/457, 638/462, 679/474, 688/510, 480/715, 505/725, 546/690, 440/497, 408/543, 384/578, 452/492
rem *** Car ***
ai.addSearchMap Car4 0 0 25 3.0 0.3 2.5 0
ai.addSearchType Car 4 0
rem ai.setMapSpawnPoints 4 420/166
ai.setSmoothing 4 6
rem 420/166, 420/166, 680/449, 680/449, 666/500, 666/500, 541/675, 541/675, 543/724, 543/724, 442/594, 442/594, 455/538, 455/538, 579/730, 579/730, 645/193, 645/193
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 ***
ai.numAStarResources 10
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 364/160
ai.setSmoothing 0 20
rem 364/160, 364/160, 376/160, 376/160, 390/160, 390/160, 351/146, 351/146, 430/658, 430/658, 416/606, 416/606, 439/678, 439/678, 428/594, 428/594
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 354/154
ai.setSmoothing 1 10
rem 354/154, 369/168, 383/167, 355/137, 663/196, 634/210, 738/163, 675/457, 638/462, 679/474, 688/510, 480/715, 505/725, 546/690, 440/497, 408/543, 384/578, 452/492
rem *** Car ***
ai.addSearchMap Car4 0 0 25 3.0 0.3 2.5 0
ai.addSearchType Car 4 0
rem ai.setMapSpawnPoints 4 420/166
ai.setSmoothing 4 6
rem 420/166, 420/166, 680/449, 680/449, 666/500, 666/500, 541/675, 541/675, 543/724, 543/724, 442/594, 442/594, 455/538, 455/538, 579/730, 579/730, 645/193, 645/193
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