This page is under construction
Archives/bf1942/levels/TF_Iacon.rfa
bf1942/levels/TF_Iacon/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 0/0
ai.setSmoothing 0 20
rem 0/0,

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 1073/915
ai.setSmoothing 1 10
rem 1073/915, 971/1080, 1069/924, 1079/904, 1079/929, 1075/943, 985/1116, 949/1075, 991/1121, 958/1092, 1145/1069, 1138/1062, 1139/1101, 1099/1131, 1092/1127, 1130/1117, 1122/1000, 1114/1002, 1115/989, 906/918, 897/932, 894/923, 1056/1035, 1062/1045, 1053/1042, 1045/1050

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