This page is under construction
Archives/bf1942/levels/A_SmackVillage.rfa
bf1942/levels/A_SmackVillage/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 871/689
ai.setSmoothing 0 20
rem 871/689, 871/689, 861/701, 861/701, 1208/940, 1208/940, 841/681, 1188/917, 1188/917

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 1236/923
ai.setSmoothing 1 10
rem 1236/923, 1231/893, 1216/887, 1212/912, 1222/935, 1198/895, 878/691, 865/697, 859/685, 841/693, 852/685, 850/698, 845/697, 862/688, 868/683, 854/703, 1206/930, 1237/932, 1226/921, 1244/901, 971/1052, 974/1053, 975/1045, 970/1062, 970/1096, 976/1064, 1006/1003, 1007/1021, 1023/1023, 1030/1009, 1036/990, 1019/1015, 902/885, 934/914, 914/917, 910/914, 912/921, 905/921, 816/858, 827/880, 828/860, 818/866, 823/874, 851/863, 1177/1052, 1186/1033, 1186/1048, 1188/1010, 1177/1045, 1193/1055

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