This page is under construction
Archives/bf1942/levels/GuadalCanal.rfa
bf1942/levels/GuadalCanal/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 2216/1299
ai.setSmoothing 0 20
rem 2216/1299, 2216/1299, 2410/1216, 2410/1216, 2481/1262, 2481/1262, 2411/1261, 2411/1261, 2411/1252, 2411/1252, 2414/1287, 2414/1287, 2425/1286, 2425/1286, 1304/2446, 1304/2446, 1508/2566, 1508/2566, 1522/2567, 1522/2567, 1551/2533, 1551/2533, 1551/2556, 1551/2556, 1517/2536, 1517/2536, 1510/2536, 1510/2536, 2096/1889, 2096/1889, 2075/1920, 2075/1920, 1732/1728, 1732/1728

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 1433/2451
ai.setSmoothing 1 10
rem 1433/2451, 2209/1638, 2476/1287, 2392/1268, 2406/1244, 2418/1277, 2469/1263, 2399/1223, 2394/1258, 2215/1294, 2214/1309, 2228/1317, 2228/1334, 1477/2550, 1475/2523, 1566/2638, 1515/2566, 1465/2568, 1502/2559, 1484/2546, 1354/2485, 1308/2453, 1304/2440, 1321/2490, 2202/1614, 2202/1615, 2200/1613, 2203/1613, 2202/1614, 2201/1612, 2203/1612, 2075/1894, 2108/1895, 2109/1903, 2096/1922, 2082/1885, 2090/1922, 2092/1922, 1727/2103, 1725/2105, 1718/2102, 1718/2105, 1720/2103, 1727/2102, 1727/2105, 1765/1742, 1774/1724, 1768/1726, 1759/1735, 1762/1739, 1772/1725, 1764/1735


rem *** Car ***
ai.addSearchMap Car4 0 0 25 3.0 0.3 2.5 0
ai.addSearchType Car 4 0
rem ai.setMapSpawnPoints 4 1780/2232
ai.setSmoothing 4 6
rem 1780/2232, 1780/2232, 1576/2332, 1576/2332, 1747/2106, 1747/2106, 2202/1754, 2202/1754, 2103/1656, 2103/1656, 2015/1669, 2015/1669

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