Secondary Operations Manager – Arma 2
Lou Montana (talk | contribs) m (Text replacement - "Category:Arma 2:_Editor_Modules" to "{{GameCategory|arma2|Editor Modules}}") |
Lou Montana (talk | contribs) m (Text replacement - "[[Image:" to "[[File:") |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 8: | Line 8: | ||
# Add Sec-Op Manager: Create a ''Radio Alpha'' trigger, name it BrokenArrow, whilst putting "Broken Arrow" in the text box. | # 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: | # In the "on act" field put: <sqf>[["transport", "aerial_reconnaissance", "supply_drop", "tactical_airstrike", "artillery_barrage", "gunship_run"], player] call BIS_SOM_addSupportRequestFunc;</sqf> | ||
This allow you to call support from "Broken Arrow" by simply pushing the 0 radio option. | This allow you to call support from "Broken Arrow" by simply pushing the 0 radio option. | ||
Line 18: | Line 17: | ||
=== Replacing the Default Vehicles === | === 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 | 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 {{hl|SOM/init.SQF}}: | ||
* '''Transport Helo:''' | * '''Transport Helo:''' | ||
< | |||
{{ | <sqf>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</sqf> | ||
{{Feature|informative|The helo of your choice must be manned and present on the map (it is not spawned).}} | |||
Line 29: | Line 29: | ||
Request a SecOp from the manager: | Request a SecOp from the manager: | ||
<sqf>[secop, priority, SOMreference] call BIS_SOM_requestSecOpFunc;</sqf> | |||
* ''secop'': [[String]] - Name of the SecOp as String ("ambush", "attack_location", "trap", "rescue", "patrol", "escort", "defend_location", "destroy", "search"). See class names in CfgSecOps. | * ''secop'': [[String]] - Name of the SecOp as String ("ambush", "attack_location", "trap", "rescue", "patrol", "escort", "defend_location", "destroy", "search"). See class names in CfgSecOps. | ||
Line 37: | Line 37: | ||
==== Example ==== | ==== Example ==== | ||
Starts Ambush SecOp at once. BIS_SOM is module name: | Starts Ambush SecOp at once. BIS_SOM is module name: | ||
<sqf>["ambush", true, BIS_SOM] call BIS_SOM_requestSecOpFunc;</sqf> | |||
Line 44: | Line 44: | ||
=== New SecOps === | === New SecOps === | ||
{{ | {{Wiki|stub}} | ||
=== SecOp parameters === | === SecOp parameters === | ||
SecOp does [[getVariable]] "settings" when it initializes. Values are: | SecOp does [[getVariable]] "settings" when it initializes. Values are: | ||
* pool (default: | * pool (default: <sqf inline>["ambush", "attack_location", "trap", "rescue", "patrol", "escort", "defend_location", "destroy", "search"]</sqf>) | ||
* HQ toggle (true) | * HQ toggle (true) | ||
* callsigns (leader of group, leader speech used, hq, hq speech: ["ALPHA", ["Alpha"], "H.Q.", ["HQ"]]) | * callsigns (leader of group, leader speech used, hq, hq speech: ["ALPHA", ["Alpha"], "H.Q.", ["HQ"]]) | ||
Line 59: | Line 59: | ||
==== Example ==== | ==== Example ==== | ||
<sqf>this setVariable ["settings", [[], true, ["Razor", ["Razor"], "H.Q.", ["H.Q."]], 120, false]];</sqf> | |||
''Taken from the War Welcome Mission'' | ''Taken from the War Welcome Mission'' | ||
For "leader speech", you can use multiple keywords to make a unique callsign, | For "leader speech", you can use multiple keywords to make a unique callsign, e.g | ||
<sqf>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 | |||
]];</sqf> | |||
=== SecOp phasescripts === | === SecOp phasescripts === | ||
{{ | {{Wiki|stub}} | ||
=== Using ARTY with the Secop Manager === | === Using ARTY with the Secop Manager === | ||
[[ | [[File:Arty_somlink.png|Artillery with SOM]] | ||
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. | 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. | ||
Line 89: | Line 100: | ||
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: | 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: | ||
<sqf>[["artillery_barrage"], player, [[RIPPER, [7,8,9]]], [true]] call BIS_SOM_addSupportRequestFunc;</sqf> | |||
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. | 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. | ||
Line 95: | Line 106: | ||
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: | 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: | ||
<sqf>[["artillery_barrage"], player, [[]], [true]] call BIS_SOM_addSupportRequestFunc;</sqf> | |||
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.) | 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.) | ||
Line 103: | Line 114: | ||
# Place a '''SOM''' module on the map | # Place a '''SOM''' module on the map | ||
# in its init field copy this: < | # in its init field copy this: <sqf inline>this setVariable ["settings", [[], true, nil, nil, false]];</sqf> to stop custom missions | ||
# link it to your soldier (using '''F5''') | # link it to your soldier (using '''F5''') | ||
# create a trigger and in it copy this: < | # create a trigger and in it copy this: <sqf>[["artillery_barrage"], player, [[]]] call BIS_SOM_addSupportRequestFunc;</sqf> 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) | (I advise creating the trigger as a repeated trigger to add artilley when you need it) |
Latest revision as of 23:09, 20 November 2023
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:
- 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.
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
- Transport Helo:
Functions
Request SecOp
Request a SecOp from the manager:
- 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:
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
Taken from the War Welcome Mission
For "leader speech", you can use multiple keywords to make a unique callsign, e.g
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:
- 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:
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:
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: 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)