Secondary Operations Manager – Arma 2

From Bohemia Interactive Community
Jump to navigation Jump to search

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.


Quickstart

A quick-start could be as such:

  1. Add Sec-Op Manager: Create a Radio Alpha trigger, name it BrokenArrow, whilst putting "Broken Arrow" in the text box.
  2. 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.


Configuration

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

The helo of your choice must be manned and present on the map (it is not spawned).


Functions

Request SecOp

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.

Example

Starts Ambush SecOp at once. BIS_SOM is module name:

["ambush", true, BIS_SOM] call BIS_SOM_requestSecOpFunc;


Advanced topics

New SecOps

SecOp parameters

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])

Example

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, e.g

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 ]];

SecOp phasescripts

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:

  1. Immediate suppression, high explosive - Fire 10 rounds as fast as the battery can.
  2. Immediate smoke - Fire 6 smoke shells.
  3. Immediate suppression, Willie Pete - Same as Immediate HE, but with WP.
  4. Illumination mission - One flare munition every 10 seconds for 3 minutes.
  5. LASER - Fire two laser guided HE shells.
  6. SADARM – Stagger three SADARMs ten seconds apart.
  7. HE Fire For Effect - Bombard with continuous HE for one minute.
  8. WP Fire For Effect – Bombard with continuous WP for one minute.
  9. 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:

  1. Place a SOM module on the map
  2. in its init field copy this: this setVariable ["settings", [[], true, nil, nil, false]]; to stop custom missions
  3. link it to your soldier (using F5)
  4. 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)