This page is under construction
Archives/BF1942/levels/Midway.rfa
bf1942/levels/Midway/AI.con
if v_arg1 == host
rem ----- Host
rem ----------------------------------------------------------------------------
rem ************** LEVEL SPECIFIC AI SETTINGS ***************************
aiSettings.setWorldMapSize 4096 4096
aiSettings.setViewDistance 300
aiSettings.setInformationGridDimension 64
rem ********************** START THE AI *********************************
rem *** Init AI using current settings ****
ai.init 2
rem *** init Botmanager ***
AIBotManager.setLodLevelTicks 6 6 6
AIBotManager.setLodLevelPriority 3 3 3
AIBotManager.setPlannedDecisionMakingThreshold 0.5 0.5 0.5
AIBotManager.setUnplannedDecisionMakingThreshold 0.3 0.4 0.4
AIBotManager.setDecisionMakingInterleave 2 2
AIBotManager.setSensingQuotient 1 1
AIBotManager.setSystemQuotient 40 40 20
rem *** Strategic map dimension, MUST BE DONE BEFORE CREATING SAI! ***
ai.saiMapXDimension 64
ai.saiMapYDimension 64
rem *** Create Strategic AI ***
ai.createSAI
rem *** Bot statistic ***
ai.botStatisticUpdateSpeed 3
rem *** Enabled or disabled as default ***
ai.saiEnable 1
game.showAIstats 0
rem ----------------------------------------------------------------------------
endIf
run AIPathFinding.con v_arg1
run ai/StrategicAreas.con v_arg1
rem *** Load and set strategies for each side ***
run ai/conditions.con v_arg1
run ai/prerequisites.con v_arg1
run ai/Strategies.con v_arg1
if v_arg1 == host
rem ----- Host
rem ----------------------------------------------------------------------------
ai.addSAIStrategy 1 OutPost
ai.addSAIStrategy 1 Base
ai.addSAIStrategy 1 Both
ai.addSAIStrategy 1 NavyDestroy
ai.addSAIStrategy 2 OutPost
ai.addSAIStrategy 2 Base
ai.addSAIStrategy 2 Both
ai.addSAIStrategy 2 NavyDestroy
beginrem old midway
ai.addSAIStrategy 1 rush
ai.addSAIStrategy 1 rushed
ai.addSAIStrategy 1 seaSingle
ai.addSAIStrategy 1 seaDouble
ai.addSAIStrategy 1 land
ai.addSAIStrategy 2 rush
ai.addSAIStrategy 2 rushed
ai.addSAIStrategy 2 seaSingle
ai.addSAIStrategy 2 seaDouble
ai.addSAIStrategy 2 land
endrem
rem ----------------------------------------------------------------------------
endIf
rem ----- Host
rem ----------------------------------------------------------------------------
rem ************** LEVEL SPECIFIC AI SETTINGS ***************************
aiSettings.setWorldMapSize 4096 4096
aiSettings.setViewDistance 300
aiSettings.setInformationGridDimension 64
rem ********************** START THE AI *********************************
rem *** Init AI using current settings ****
ai.init 2
rem *** init Botmanager ***
AIBotManager.setLodLevelTicks 6 6 6
AIBotManager.setLodLevelPriority 3 3 3
AIBotManager.setPlannedDecisionMakingThreshold 0.5 0.5 0.5
AIBotManager.setUnplannedDecisionMakingThreshold 0.3 0.4 0.4
AIBotManager.setDecisionMakingInterleave 2 2
AIBotManager.setSensingQuotient 1 1
AIBotManager.setSystemQuotient 40 40 20
rem *** Strategic map dimension, MUST BE DONE BEFORE CREATING SAI! ***
ai.saiMapXDimension 64
ai.saiMapYDimension 64
rem *** Create Strategic AI ***
ai.createSAI
rem *** Bot statistic ***
ai.botStatisticUpdateSpeed 3
rem *** Enabled or disabled as default ***
ai.saiEnable 1
game.showAIstats 0
rem ----------------------------------------------------------------------------
endIf
run AIPathFinding.con v_arg1
run ai/StrategicAreas.con v_arg1
rem *** Load and set strategies for each side ***
run ai/conditions.con v_arg1
run ai/prerequisites.con v_arg1
run ai/Strategies.con v_arg1
if v_arg1 == host
rem ----- Host
rem ----------------------------------------------------------------------------
ai.addSAIStrategy 1 OutPost
ai.addSAIStrategy 1 Base
ai.addSAIStrategy 1 Both
ai.addSAIStrategy 1 NavyDestroy
ai.addSAIStrategy 2 OutPost
ai.addSAIStrategy 2 Base
ai.addSAIStrategy 2 Both
ai.addSAIStrategy 2 NavyDestroy
beginrem old midway
ai.addSAIStrategy 1 rush
ai.addSAIStrategy 1 rushed
ai.addSAIStrategy 1 seaSingle
ai.addSAIStrategy 1 seaDouble
ai.addSAIStrategy 1 land
ai.addSAIStrategy 2 rush
ai.addSAIStrategy 2 rushed
ai.addSAIStrategy 2 seaSingle
ai.addSAIStrategy 2 seaDouble
ai.addSAIStrategy 2 land
endrem
rem ----------------------------------------------------------------------------
endIf