This page is under construction
Archives/bf1942/levels/maps - with documentation/Crossfire/Crossfire.rfa
bf1942/levels/Crossfire/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 211/733
ai.setSmoothing 0 20
rem 211/733, 352/545, 352/545, 347/779, 347/779, 544/543, 544/543, 244/739, 244/739

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 506/816
ai.setSmoothing 1 10
rem 506/816, 511/812, 515/816, 532/779, 533/784, 538/780, 534/753, 535/763, 524/759, 525/753, 529/808, 251/768, 255/758, 236/780, 247/753, 233/704, 229/696, 223/712, 236/693, 218/694, 223/698, 389/821, 399/822, 395/821, 331/761, 333/760, 334/762, 382/787, 380/786, 328/821, 373/821, 340/699, 336/703, 342/703, 343/667, 346/666, 343/669, 365/675, 364/679, 365/672, 347/669, 518/698, 522/702, 522/695, 515/702, 516/694, 478/676, 497/681, 474/684, 534/657, 528/674, 467/564, 436/565, 484/600, 442/564, 446/564, 475/601, 479/592, 493/601, 423/572, 425/578, 431/574, 469/571, 387/511, 387/519, 363/511, 584/574, 574/583, 584/594, 584/607, 585/585, 577/601, 523/565, 522/555, 542/569, 529/566, 393/480, 403/495, 410/483, 400/479, 438/497, 437/503

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