This page is under construction
Archives/bf1942/levels/SG_Fighting_Chance.rfa
bf1942/levels/SG_Fighting_Chance/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 1.0 0.3 2.5 0
ai.addSearchType Tank 0 0
rem ai.setMapSpawnPoints 0 1105/1580
ai.setSmoothing 0 20
rem 1105/1580, 1105/1572, 1062/1149, 1069/1188, 1073/1004, 1105/1563, 1385/549, 1377/549, 1380/564, 1568/437, 1665/398, 1710/581, 1702/581, 1803/606, 1870/423, 1863/424, 1811/745, 1732/805, 1732/797, 513/400, 508/400, 1088/1002, 1103/1003, 1075/1040, 1088/1042, 1101/1040, 1230/879, 1003/1109, 1027/1133, 1026/1129, 1807/759, 1680/592, 1381/676, 1382/673, 1381/670, 1098/1577, 1098/1567, 1097/1572
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 1116/1570
ai.setSmoothing 1 10
rem 1116/1570, 1126/1587, 1062/1588, 1117/1638, 1018/1111, 1026/1140, 998/1135, 996/1123, 1064/1158, 1097/1046, 1079/1049, 1089/1021, 1064/1006, 1106/994, 1425/673, 1403/653, 1393/684, 1409/668, 1381/547, 1686/629, 1706/586, 1683/620, 1720/633
rem *** Boat ***
ai.addSearchMap Boat2 1 8 30 4.0 0.3 2.5 0 2 5
ai.addSearchType Boat 2 2
rem ai.setMapSpawnPoints 2 1105/1580
ai.setSmoothing 2 20
rem 1105/1580, 1105/1572, 1062/1149, 1069/1188, 1073/1004, 1105/1563, 1385/549, 1377/549, 1380/564, 1568/437, 1665/398, 1710/581, 1702/581, 1803/606, 1870/423, 1863/424, 1811/745, 1732/805, 1732/797, 513/400, 508/400, 1759/831, 1759/831, 1759/808, 1759/808, 1366/600, 1366/600, 1381/600, 1381/600, 1112/1032, 1112/1032, 1054/1268, 1054/1268, 1064/1283, 1064/1283, 1057/1418, 1057/1418
rem *** LandingCraft ***
ai.addSearchMap LandingCraft3 1 1.4 30 4.0 0.3 2.5 0 2 5
ai.addSearchType LandingCraft 3 2
rem ai.setMapSpawnPoints 3 989/1706
ai.setSmoothing 3 20
rem 989/1706, 977/1717, 1096/1198, 1116/1198, 1080/1192, 1116/1184, 1096/1184, 1776/880, 1784/893, 1782/876, 1790/889, 1116/1170, 1096/1169, 1014/1511
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
rem *** Load maps ***
ai.loadMaps
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 ***
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 1.0 0.3 2.5 0
ai.addSearchType Tank 0 0
rem ai.setMapSpawnPoints 0 1105/1580
ai.setSmoothing 0 20
rem 1105/1580, 1105/1572, 1062/1149, 1069/1188, 1073/1004, 1105/1563, 1385/549, 1377/549, 1380/564, 1568/437, 1665/398, 1710/581, 1702/581, 1803/606, 1870/423, 1863/424, 1811/745, 1732/805, 1732/797, 513/400, 508/400, 1088/1002, 1103/1003, 1075/1040, 1088/1042, 1101/1040, 1230/879, 1003/1109, 1027/1133, 1026/1129, 1807/759, 1680/592, 1381/676, 1382/673, 1381/670, 1098/1577, 1098/1567, 1097/1572
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 1116/1570
ai.setSmoothing 1 10
rem 1116/1570, 1126/1587, 1062/1588, 1117/1638, 1018/1111, 1026/1140, 998/1135, 996/1123, 1064/1158, 1097/1046, 1079/1049, 1089/1021, 1064/1006, 1106/994, 1425/673, 1403/653, 1393/684, 1409/668, 1381/547, 1686/629, 1706/586, 1683/620, 1720/633
rem *** Boat ***
ai.addSearchMap Boat2 1 8 30 4.0 0.3 2.5 0 2 5
ai.addSearchType Boat 2 2
rem ai.setMapSpawnPoints 2 1105/1580
ai.setSmoothing 2 20
rem 1105/1580, 1105/1572, 1062/1149, 1069/1188, 1073/1004, 1105/1563, 1385/549, 1377/549, 1380/564, 1568/437, 1665/398, 1710/581, 1702/581, 1803/606, 1870/423, 1863/424, 1811/745, 1732/805, 1732/797, 513/400, 508/400, 1759/831, 1759/831, 1759/808, 1759/808, 1366/600, 1366/600, 1381/600, 1381/600, 1112/1032, 1112/1032, 1054/1268, 1054/1268, 1064/1283, 1064/1283, 1057/1418, 1057/1418
rem *** LandingCraft ***
ai.addSearchMap LandingCraft3 1 1.4 30 4.0 0.3 2.5 0 2 5
ai.addSearchType LandingCraft 3 2
rem ai.setMapSpawnPoints 3 989/1706
ai.setSmoothing 3 20
rem 989/1706, 977/1717, 1096/1198, 1116/1198, 1080/1192, 1116/1184, 1096/1184, 1776/880, 1784/893, 1782/876, 1790/889, 1116/1170, 1096/1169, 1014/1511
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
rem *** Load maps ***
ai.loadMaps
endIf