NATO Documentation - rekterakathom/Overthrow GitHub Wiki
NATO faction
This is an explanation of fn_factionNATO.sqf and how it works.
Might not entirely be up-to-date
Main loop
Every 10 seconds the main loop gets run. At the start of every loop, there are several variables that carry over:
_abandoned
contains a list of towns to ignore, essentially. These are the towns that you control
_resources
is the main component in the way NATO operates. These are gained over time and expended when NATO does stuff.
_diff
unknown
_nextTurn
unknown
_count
gets increased by 1 with every loop (so +1 every 10 seconds)
_lastMin
unknown
_lastSched
unknown
NATO resource gain
Upon starting the mission, NATO will have 2000 resources and they can have a maximum of 2500.
NATO will get additional resources every loop(?), according to this formula:
_resources = _resources + _gain + _resourceGain + ((round (_popControl * 0.01)) * _mul)
_resources
is the amount of resources NATO currently has
_gain
is difficulty based: 0 on easy, 75 on medium and 150 on hard
_resourceGain
is interesting. Every time a BLUFOR unit gets killed, 1 is added to _resourceGain
. It gets reset every time NATO fails a QRF.
_popControl
is the amount of population in resistance towns and cities.
_mul
is also difficulty based. 15 on easy, 25 on medium and 50 on hard.
NATO order of actions
This is the list of actions NATO will try to use their resources on (with cost in parenthesis), in order:
Note: NATO will also spend extra if available upon sending a QRF, which is not included in this list. This covers only spending in fn_factionNato.sqf
First up is the "reactive phase" where NATO reacts to what is happening
-
Objective QRF (cost * population multiplier)
-
Town QRF (population * population multiplier)
-
Send patrol to low stability towns (75 to 250)
-
Abandon towers (100)
-
Scramble jets and helos (500 for jet, 350 for heli)
-
NATO gain resources (see formula above)
Next is the "active phase" where NATO will spend the resources left over from the reactive phase to do stuff
-
Counter towns (population * population multiplier)
-
Counter objectives (cost * population multiplier)
-
Send a drone (10)
-
Deploy a FOB (500)
-
Reinforce gendarmerie (20)
-
Send a ground patrol (150)
-
Schedule a convoy (500)
-
Send an air patrol (250)
-
Upgrade garrisons (150)
-
Upgrade FOBs (150 + upgrades: 300 for mortar, 50 for barrier, 150 for HMG)