From 84ef6d7570d61117a18641ba1f7a0dd43c08f5ac Mon Sep 17 00:00:00 2001 From: Eero af Heurlin Date: Sun, 31 Jul 2016 20:06:14 +0300 Subject: [PATCH] configure squad linger time --- helotraining_mp.Altis/createDropoffLZ.sqf | 2 ++ helotraining_mp.Altis/createPickupLZ.sqf | 2 ++ helotraining_mp.Altis/description.ext | 10 +++++++++- helotraining_mp.Altis/readparams.sqf | 3 +++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/helotraining_mp.Altis/createDropoffLZ.sqf b/helotraining_mp.Altis/createDropoffLZ.sqf index 050deac..ff3bdf2 100644 --- a/helotraining_mp.Altis/createDropoffLZ.sqf +++ b/helotraining_mp.Altis/createDropoffLZ.sqf @@ -93,5 +93,7 @@ while {true} do }; deleteVehicle _trg; + +sleep squadsLinger; // Make sure there are no lingering enemy or own units [_enemies + [_bindToSquad]] call deleteSquads; diff --git a/helotraining_mp.Altis/createPickupLZ.sqf b/helotraining_mp.Altis/createPickupLZ.sqf index daf2dc5..25bbf5a 100644 --- a/helotraining_mp.Altis/createPickupLZ.sqf +++ b/helotraining_mp.Altis/createPickupLZ.sqf @@ -121,5 +121,7 @@ while {true} do }; deleteVehicle _trg; + +sleep squadsLinger; // Make sure there are no lingering enemy or own units [_enemies + [_squad]] call deleteSquads; diff --git a/helotraining_mp.Altis/description.ext b/helotraining_mp.Altis/description.ext index 0dfa7f3..7dced9c 100644 --- a/helotraining_mp.Altis/description.ext +++ b/helotraining_mp.Altis/description.ext @@ -70,5 +70,13 @@ class Params texts[] = {"1 km", "1.5 km", "2 km", "5 km", "10 km"}; default = 1000; }; - + + class SquadsLinger + { + //paramsArray[6] + title = "How long squads linger on map after task completetion"; + values[] = {0, 60, 90, 120, 300, 600}; + texts[] = {"Not at all", 1 min", "1.5 min", "2 min", "5 min", "10 min"}; + default = 60; + }; }; diff --git a/helotraining_mp.Altis/readparams.sqf b/helotraining_mp.Altis/readparams.sqf index 0c1ccd6..a6a5280 100644 --- a/helotraining_mp.Altis/readparams.sqf +++ b/helotraining_mp.Altis/readparams.sqf @@ -38,3 +38,6 @@ while {_x < LZCOUNT} do LZMinDistace = paramsArray select 5; publicVariable "LZMinDistace"; + +squadsLinger = paramsArray select 6; +publicVariable "squadsLinger";