This page is under construction
Archives/bf1942/levels/maps - with documentation/Wake/Wake_003.rfa
Bf1942/Levels/Wake/AI.con
if v_arg1 == host
rem ----- Host
rem ----------------------------------------------------------------------------
rem ************** LEVEL SPECIFIC AI SETTINGS ***************************
aiSettings.setWorldMapSize 2048 2048
aiSettings.setViewDistance 300
aiSettings.setInformationGridDimension 32
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
game.showAiStats 1
ai.showBotStats 0
ai.showStrategicAreas 0
rem *** Enabled or disabled as default ***
ai.saiEnable 1
game.showAIstats 0
rem *** Bot statistic ***
ai.botStatisticUpdateSpeed 3
rem ----------------------------------------------------------------------------
endIf
run AIPathFinding.con v_arg1
rem *** Create strategically important areas ***
run ai/StrategicAreas v_arg1
rem *** 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 cleanUp
ai.addSAIStrategy 1 centreStep1
ai.addSAIStrategy 1 centreStep2
ai.addSAIStrategy 1 singleSpread
ai.addSAIStrategy 1 doubleSpread
ai.addSAIStrategy 1 crossroadsLanding
rem ai.addSAIStrategy 1 firstNorhternLanding
ai.addSAIStrategy 1 multipleLanding
ai.addSAIStrategy 2 noFront
ai.addSAIStrategy 2 singleFront
ai.addSAIStrategy 2 multipleFront
ai.addSAIStrategy 2 maxOneCP
rem ----------------------------------------------------------------------------
endIf
run singleplayers/bots v_arg1
rem ----- Host
rem ----------------------------------------------------------------------------
rem ************** LEVEL SPECIFIC AI SETTINGS ***************************
aiSettings.setWorldMapSize 2048 2048
aiSettings.setViewDistance 300
aiSettings.setInformationGridDimension 32
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
game.showAiStats 1
ai.showBotStats 0
ai.showStrategicAreas 0
rem *** Enabled or disabled as default ***
ai.saiEnable 1
game.showAIstats 0
rem *** Bot statistic ***
ai.botStatisticUpdateSpeed 3
rem ----------------------------------------------------------------------------
endIf
run AIPathFinding.con v_arg1
rem *** Create strategically important areas ***
run ai/StrategicAreas v_arg1
rem *** 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 cleanUp
ai.addSAIStrategy 1 centreStep1
ai.addSAIStrategy 1 centreStep2
ai.addSAIStrategy 1 singleSpread
ai.addSAIStrategy 1 doubleSpread
ai.addSAIStrategy 1 crossroadsLanding
rem ai.addSAIStrategy 1 firstNorhternLanding
ai.addSAIStrategy 1 multipleLanding
ai.addSAIStrategy 2 noFront
ai.addSAIStrategy 2 singleFront
ai.addSAIStrategy 2 multipleFront
ai.addSAIStrategy 2 maxOneCP
rem ----------------------------------------------------------------------------
endIf
run singleplayers/bots v_arg1