Arma 2: Secondary Operations Manager
Secondary Operations (SecOps) may be likened to side quests in RPG games. They are simple missions that can take place anywhere in the gameworld. The Secondary Operations Manager (SOM) handles the starting of random SecOps and also manages Support Requests such as artillery.
A quick-start could be as such:
- Add Sec-Op Manager: Create a Radio Alpha trigger, name it BrokenArrow, whilst putting "Broken Arrow" in the text box.
- In the "on act" field put:
[["transport", "aerial_reconnaissance", "supply_drop", "tactical_airstrike", "artillery_barrage", "gunship_run"], player] call BIS_SOM_addSupportRequestFunc;
This allow you to call support from "Broken Arrow" by simply pushing the 0 radio option.
Replacing the Default Vehicles
Should you wish to replace the default support vehicles with your own (such as replacing the transport UH-1Y with a CH-47), use the following in your SOM/init.SQF:
- Transport Helo:
SOM_Name setVariable ["TSS_vehicle_custom", Helo_Name]; // Where SOM_Name is the name of your SOM module, and Helo_Name is the name of your chosen helo
Request a SecOp from the manager:
[secop, priority, SOMreference] call BIS_SOM_requestSecOpFunc
- secop: String - Name of the SecOp as String ("ambush", "attack_location", "trap", "rescue", "patrol", "escort", "defend_location", "destroy", "search"). See class names in CfgSecOps.
- priority: Boolean - true will start the SecOp at once, false will put it in a queue for later.
- SOMreference: Object - the reference to the manager.
Starts Ambush SecOp at once. BIS_SOM is module name:
["ambush", true, BIS_SOM] call BIS_SOM_requestSecOpFunc;
SecOp does getVariable "settings" when it initializes. Values are:
- pool (default:
["ambush", "attack_location", "trap", "rescue", "patrol", "escort", "defend_location", "destroy", "search"])
- HQ toggle (true)
- callsigns (leader of group, leader speech used, hq, hq speech: ["ALPHA", ["Alpha"], "H.Q.", ["HQ"]])
- initialDelay (30)
- autoReinforce (true)
- secOpSpacing (30)
- randomActivation (0.7)
- secOpDistances ([300, 700])
this setVariable ["settings", [, true, ["Razor", ["Razor"], "H.Q.", ["H.Q."]], 120, false]];
Taken from the War Welcome Mission
For "leader speech", you can use multiple keywords to make a unique callsign, eg.
this setVariable ["settings", [, true, ["Romeo and Juliet is behind team blue not far from team red in Nadezhdino", ["Romeo", "and", "Juliet", "is", "behind", "blueTeam", "notFarFrom", "from", "redTeam", "in", "Nadezhdino"], "H.Q.", ["H.Q."]], 120, false]];
Using ARTY with the Secop Manager
The Secop manager is currently the simplest way to take advantage of the artillery system. To use this, you must have a Secop Manager gamelogic synced to the player. If you want to use SOM with a real artillery battery, you must have constructed a battery using either real or virtual artillery.
To add the artillery barrage to the list of Secop requests, you need to decide which ones should be available. As of the time of this writing, there are 9 fire mission templates loaded into the Secop manager which are available as Secop fire missions:
- Immediate suppression, high explosive - Fire 10 rounds as fast as the battery can.
- Immediate smoke - Fire 6 smoke shells.
- Immediate suppression, Willie Pete - Same as Immediate HE, but with WP.
- Illumination mission - One flare munition every 10 seconds for 3 minutes.
- LASER - Fire two laser guided HE shells.
- SADARM – Stagger three SADARMs ten seconds apart.
- HE Fire For Effect - Bombard with continuous HE for one minute.
- WP Fire For Effect – Bombard with continuous WP for one minute.
- Adjust fire - Fire two HE rounds at the target.
When using a physical or virtual artillery battery, a list of one or more of these FM types (by ID) will need to be included. For instance, to have SOM call on an artillery battery (with RIPPER as the Artillery Module logic), run the following:
[["artillery_barrage"], player, [[RIPPER, [7,8,9]]], [true]] call BIS_SOM_addSupportRequestFunc;
The above will allow the two fire for effect missions and the adjust fire mission to be called by the SOM. The last parameter "[true]" means the SOM will not expire if not used within X seconds. Once used, the arty support request needs to be re-added in order to be able to fire artillery again.
However, the SOM will also run fire missions without an artillery battery specified. When this type of support request is added, it will utilize spawned virtual artillery pieces set in spawn mode, so there is no need to worry about the position of the battery—SOM will generate it automatically. Adding this type of support request is accomplished without passing parameters to the SOM as follows:
[["artillery_barrage"], player, [], [true]] call BIS_SOM_addSupportRequestFunc;
The SOM will handle all communications between the player and the HQ entity. Remember to only provide fire missions that are available for that Artillery battery (for instance, don't give the Grad an Illumination mission) or you will get an error.)
Here is a step by step to add your artillery using SOM:
- Place a SOM module on the map
- in its init field copy this:
this setVariable ["settings", [, true, nil, nil, false]];to stop custom missions
- link it to your soldier (using F5)
- create a trigger and in it copy this:
[["artillery_barrage"], player, []] call BIS_SOM_addSupportRequestFunc;this will add the support function Artilley to your comm Menu (default 0)
(I advise creating the trigger as a repeated trigger to add artilley when you need it)