OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Pr0ph3t on 25 Oct 2009, 20:42:43

Title: Turning off ACM during Secop missions
Post by: Pr0ph3t on 25 Oct 2009, 20:42:43
Hi again,

SO I'm adding some finishing touches and also while playing the secops scenario over and over again I noticed that when the combat environment is too intense they basically finish most of the mission for you.. Especially the ambush one

Therefore, what if we turn off the ACM every time a mission is called? Now I'll have to resolve this script on the other thread first, but the concept is there (so do this make sense?):
note the " [0, BIS_ACM] call BIS_ACM_setIntensityFunc;" entry

manual_secops.sqs
~~~~~~~~~~~~

_nowtime = 430
_timeofday = daytime
_timeleft = (daytime - 430)

for _timeleft > 4 do

{
_timeofday = daytime
_timeleft = (daytime - 430)

waitUntil {!isNil {nomin_SOM1 getVariable "initDone"}};
waitUntil {nomin_SOM1 getVariable "initDone"};

    [0, BIS_ACM] call BIS_ACM_setIntensityFunc;

_randomMission = random 8
? _randomMission <= 1: ["destroy", true, nomin_SOM1] call BIS_SOM_requestSecOpFunc; 
? _randomMission > 1 AND _randomMission <= 2: ["ambush", true, nomin_SOM1] call BIS_SOM_requestSecOpFunc;
? _randomMission > 2 AND _randomMission <= 3: ["attack_location", true, nomin_SOM1] call BIS_SOM_requestSecOpFunc; 
? _randomMission > 3 AND _randomMission <= 4: ["trap", true, nomin_SOM1] call BIS_SOM_requestSecOpFunc; 
? _randomMission > 4 AND _randomMission <= 5: ["rescue", true, nomin_SOM1] call BIS_SOM_requestSecOpFunc; 
? _randomMission > 5 AND _randomMission <= 6: ["defend_location", true, nomin_SOM1] call BIS_SOM_requestSecOpFunc; 
? _randomMission > 6 AND _randomMission <= 7: ["search", true, nomin_SOM1] call BIS_SOM_requestSecOpFunc; 
? _randomMission > 7 AND _randomMission <= 8: ["escort", true, nomin_SOM1] call BIS_SOM_requestSecOpFunc;
? _randomMission > 8: ["patrol", true, nomin_SOM1] call BIS_SOM_requestSecOpFunc;

            [1, BIS_ACM] call BIS_ACM_setIntensityFunc;
};
sleep (random 90)+30