This page is under construction
Archives/bf1942/levels/GC_Lok.rfa
bf1942/levels/GC_Lok/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 938/1424
ai.setSmoothing 0 20
rem 938/1424, 938/1424, 1333/1587, 1333/1587, 955/1636, 955/1636, 1197/1208, 1197/1208, 813/1249, 813/1249, 952/287, 952/287

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 1334/1603
ai.setSmoothing 1 10
rem 1334/1603, 1012/252, 799/1253, 1006/1440, 1248/1164, 815/1207, 783/1232, 938/1440, 918/1457, 976/1627, 976/1692, 1008/1670, 1366/1563, 1396/1576, 1346/1587, 1033/295, 992/295, 1192/1178, 1236/1196


rem *** Car ***
ai.addSearchMap Car4 0 0 25 3.0 0.3 2.5 0
ai.addSearchType Car 4 0
rem ai.setMapSpawnPoints 4 961/295
ai.setSmoothing 4 6
rem 961/295, 961/295, 799/1214, 799/1214, 1213/1203, 1213/1203, 1007/1427, 1007/1427, 954/1689, 954/1689, 1344/1596, 1344/1596, 1412/1586, 1412/1586

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