This page is under construction
archives/bf1942/levels/DC_LostVillage_Brit.rfa
bf1942/levels/DC_LostVillage_Brit/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 12
rem *** Setup map parameters ***
rem *** Tank ***
rem *** searchMap name/ waterHeight/ waterDepth/maxSlope/brush/lowClipLevel/hiClipLevel/
rem considerAITypes/createSecondLayerMap/ firstLevel-secondlevel-thirdlevel (for second layer map)
rem *** searchType name/mapNum/minSearchLevel
rem *** Tank ***
ai.addSearchMap Tank0 0 0 30 3.0 0.3 2.5 0
ai.addSearchType Tank 0 0
rem ai.setMapSpawnPoints 0
ai.setSmoothing 0 20
rem *** Infantry ***
ai.addSearchMap Infantry1 0 1.5 40 1.0 0.4 2.0 1
ai.addSearchType Infantry 1 0
rem ai.setMapSpawnPoints 1 1261/903 , 1223/904 , 1216/887 , 1212/912 , 1228/929 , 1196/908 , 1151/906 , 1180/842 , 924/962 , 1007/929 , 1248/990 , 910/966 , 1035/1225 , 1200/935 , 1244/950 , 1230/923 , 1242/913 , 984/1157 , 1003/1166 , 1060/1170 , 1010/1147 , 998/1154 , 984/1140 , 1006/983 , 1028/967 , 1010/1002 , 1027/1004 , 1043/990 , 995/1008 , 1106/940 , 1141/948 , 1109/947 , 1112/985 , 1119/983 , 1128/944 , 1097/1056 , 1098/1064 , 1111/1065 , 1111/1074 , 1099/1042 , 1112/1059 , 1172/1043 , 1182/1028 , 1200/1041 , 1198/1014 , 1152/1026 , 1193/1055
ai.setSmoothing 1 10
rem *** Boat ***
ai.addSearchMap Boat2 1 1.4 30 4.0 0.3 2.5 0
ai.addSearchType Boat 2 2
rem ai.setMapSpawnPoints 2
ai.setSmoothing 2 20
rem *** Landingcraft ***
ai.addSearchMap LandingCraft3 1 1.4 30 4.0 0.3 2.5 0
ai.addSearchType LandingCraft 3 2
rem ai.setMapSpawnPoints 3
ai.setSmoothing 3 20
rem *** Car ***
ai.addSearchMap Car4 0 0 35 3.0 0.3 2.5 0
ai.addSearchType Car 4 0
rem ai.setMapSpawnPoints 4
ai.setSmoothing 4 6
rem *** Load maps ***
ai.loadMaps
rem run StaticObjects.con
rem ai.createAllMaps
endif
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 12
rem *** Setup map parameters ***
rem *** Tank ***
rem *** searchMap name/ waterHeight/ waterDepth/maxSlope/brush/lowClipLevel/hiClipLevel/
rem considerAITypes/createSecondLayerMap/ firstLevel-secondlevel-thirdlevel (for second layer map)
rem *** searchType name/mapNum/minSearchLevel
rem *** Tank ***
ai.addSearchMap Tank0 0 0 30 3.0 0.3 2.5 0
ai.addSearchType Tank 0 0
rem ai.setMapSpawnPoints 0
ai.setSmoothing 0 20
rem *** Infantry ***
ai.addSearchMap Infantry1 0 1.5 40 1.0 0.4 2.0 1
ai.addSearchType Infantry 1 0
rem ai.setMapSpawnPoints 1 1261/903 , 1223/904 , 1216/887 , 1212/912 , 1228/929 , 1196/908 , 1151/906 , 1180/842 , 924/962 , 1007/929 , 1248/990 , 910/966 , 1035/1225 , 1200/935 , 1244/950 , 1230/923 , 1242/913 , 984/1157 , 1003/1166 , 1060/1170 , 1010/1147 , 998/1154 , 984/1140 , 1006/983 , 1028/967 , 1010/1002 , 1027/1004 , 1043/990 , 995/1008 , 1106/940 , 1141/948 , 1109/947 , 1112/985 , 1119/983 , 1128/944 , 1097/1056 , 1098/1064 , 1111/1065 , 1111/1074 , 1099/1042 , 1112/1059 , 1172/1043 , 1182/1028 , 1200/1041 , 1198/1014 , 1152/1026 , 1193/1055
ai.setSmoothing 1 10
rem *** Boat ***
ai.addSearchMap Boat2 1 1.4 30 4.0 0.3 2.5 0
ai.addSearchType Boat 2 2
rem ai.setMapSpawnPoints 2
ai.setSmoothing 2 20
rem *** Landingcraft ***
ai.addSearchMap LandingCraft3 1 1.4 30 4.0 0.3 2.5 0
ai.addSearchType LandingCraft 3 2
rem ai.setMapSpawnPoints 3
ai.setSmoothing 3 20
rem *** Car ***
ai.addSearchMap Car4 0 0 35 3.0 0.3 2.5 0
ai.addSearchType Car 4 0
rem ai.setMapSpawnPoints 4
ai.setSmoothing 4 6
rem *** Load maps ***
ai.loadMaps
rem run StaticObjects.con
rem ai.createAllMaps
endif