From d1ce532388b63abb1decdc2ffe2e5679b41ef3e8 Mon Sep 17 00:00:00 2001 From: Taggerung Date: Tue, 20 Feb 2024 20:05:42 +1030 Subject: [PATCH] Teleport Boats Addaction on alpha boatk --- init.sqf | 23 +++++- mission.sqm | 198 +++++++++++++++++++++++++++++++++++++++++++--- teleportBoats.sqf | 2 + 3 files changed, 211 insertions(+), 12 deletions(-) create mode 100644 teleportBoats.sqf diff --git a/init.sqf b/init.sqf index ea0b117..be66a35 100644 --- a/init.sqf +++ b/init.sqf @@ -1 +1,22 @@ -null = execVM "briefing.sqf"; \ No newline at end of file +null = execVM "briefing.sqf"; + +busterTele = { + if (driver vehicle player isEqualTo player) then { + if ((vehicle player)==LCA_Alpha) then { + LCA_Alpha setDir 90; + LCA_Alpha setPos [8259.05,11675.7,5]; + + LCA_Bravo setDir 90; + LCA_Bravo setPos [8249.38,11702,5]; + + LCA_Charlie setDir 90; + LCA_Charlie setPos [8242.38,11655.3,5]; + + LCA_Delta setDir 90; + LCA_Delta setPos [8227.13,11718.6,5]; + + LCA_Echo setDir 90; + LCA_Echo setPos [8222.25,11638.6,5]; + }; + }; +}; \ No newline at end of file diff --git a/mission.sqm b/mission.sqm index 662db44..c2e7169 100644 --- a/mission.sqm +++ b/mission.sqm @@ -12,7 +12,7 @@ class EditorData }; class ItemIDProvider { - nextID=1462; + nextID=1467; }; class MarkerIDProvider { @@ -20,18 +20,18 @@ class EditorData }; class LayerIndexProvider { - nextID=89; + nextID=96; }; class Camera { - pos[]={4929.3174,70.899078,15487.494}; - dir[]={-0.73259795,-0.4798204,-0.48285744}; - up[]={-0.40064159,0.87735468,-0.26406303}; - aside[]={-0.5503422,5.0946255e-007,0.83498883}; + pos[]={4924.1611,70.899078,15467.983}; + dir[]={0.20405398,-0.75637412,-0.62156379}; + up[]={0.23592076,0.65414006,-0.71863508}; + aside[]={-0.95015186,9.0553658e-007,-0.31192532}; }; }; binarizationWanted=0; -sourceName="Sahrani-M1-FlownTheCoup"; +sourceName="BusterSahrani01Git"; addons[]= { "A3_Modules_F", @@ -421,7 +421,7 @@ class ScenarioData }; class CustomAttributes { - class Category1 + class Category0 { name="Multiplayer"; class Attribute0 @@ -450,7 +450,7 @@ class CustomAttributes }; nAttributes=1; }; - class Category2 + class Category1 { name="Scenario"; class Attribute0 @@ -579,7 +579,7 @@ class Mission }; class Entities { - items=205; + items=210; class Item0 { dataType="Logic"; @@ -14415,7 +14415,7 @@ class Mission text="Republican Guard reserve"; type="hd_warning"; colorName="ColorWEST"; - angle=357.04535; + angle=357.04532; id=1444; }; class Item195 @@ -14535,6 +14535,182 @@ class Mission type="Land_SPE_FX_light_300"; atlOffset=10.154999; }; + class Item205 + { + dataType="Object"; + class PositionInfo + { + position[]={4931.375,57.853855,15454.172}; + angles[]={6.2202659,5.9696016,0}; + }; + side="Empty"; + flags=4; + class Attributes + { + init="this addAction [("""" + (""Begin Assault!"") + """"),""teleportBoats.sqf"",[1],0,false,true,"""","" driver _target == _this""];"; + name="LCA_Alpha"; + }; + id=1462; + type="PN_B_NACS_Assault_Boat"; + atlOffset=0.0050010681; + class CustomAttributes + { + class Attribute0 + { + property="ammoBox"; + expression="[_this,_value] call bis_fnc_initAmmoBox;"; + class Value + { + class data + { + singleType="STRING"; + value="[[[[""FirstAidKit""],[2]],[[],[]],[[],[]],[[],[]]],false]"; + }; + }; + }; + nAttributes=1; + }; + }; + class Item206 + { + dataType="Object"; + class PositionInfo + { + position[]={4928.5889,57.795559,15453.247}; + angles[]={6.2202659,5.9696016,0}; + }; + side="Empty"; + flags=4; + class Attributes + { + name="LCA_Bravo"; + }; + id=1463; + type="PN_B_NACS_Assault_Boat"; + atlOffset=0.0049972534; + class CustomAttributes + { + class Attribute0 + { + property="ammoBox"; + expression="[_this,_value] call bis_fnc_initAmmoBox;"; + class Value + { + class data + { + singleType="STRING"; + value="[[[[""FirstAidKit""],[2]],[[],[]],[[],[]],[[],[]]],false]"; + }; + }; + }; + nAttributes=1; + }; + }; + class Item207 + { + dataType="Object"; + class PositionInfo + { + position[]={4922.312,57.375027,15451.277}; + angles[]={6.1733871,5.9696016,0.047211155}; + }; + side="Empty"; + flags=4; + class Attributes + { + name="LCA_Delta"; + }; + id=1464; + type="PN_B_NACS_Assault_Boat"; + atlOffset=0.0050010681; + class CustomAttributes + { + class Attribute0 + { + property="ammoBox"; + expression="[_this,_value] call bis_fnc_initAmmoBox;"; + class Value + { + class data + { + singleType="STRING"; + value="[[[[""FirstAidKit""],[2]],[[],[]],[[],[]],[[],[]]],false]"; + }; + }; + }; + nAttributes=1; + }; + }; + class Item208 + { + dataType="Object"; + class PositionInfo + { + position[]={4925.415,57.642231,15452.371}; + angles[]={6.1733871,5.9696016,0.047211155}; + }; + side="Empty"; + flags=4; + class Attributes + { + name="LCA_Charlie"; + }; + id=1465; + type="PN_B_NACS_Assault_Boat"; + atlOffset=0.0050010681; + class CustomAttributes + { + class Attribute0 + { + property="ammoBox"; + expression="[_this,_value] call bis_fnc_initAmmoBox;"; + class Value + { + class data + { + singleType="STRING"; + value="[[[[""FirstAidKit""],[2]],[[],[]],[[],[]],[[],[]]],false]"; + }; + }; + }; + nAttributes=1; + }; + }; + class Item209 + { + dataType="Object"; + class PositionInfo + { + position[]={4920.0488,57.088158,15449.646}; + angles[]={6.1733871,5.9696016,0.047211155}; + }; + side="Empty"; + flags=4; + class Attributes + { + name="LCA_Echo"; + }; + id=1466; + type="PN_B_NACS_Assault_Boat"; + atlOffset=0.0050010681; + class CustomAttributes + { + class Attribute0 + { + property="ammoBox"; + expression="[_this,_value] call bis_fnc_initAmmoBox;"; + class Value + { + class data + { + singleType="STRING"; + value="[[[[""FirstAidKit""],[2]],[[],[]],[[],[]],[[],[]]],false]"; + }; + }; + }; + nAttributes=1; + }; + }; }; class Connections { diff --git a/teleportBoats.sqf b/teleportBoats.sqf new file mode 100644 index 0000000..bfd637d --- /dev/null +++ b/teleportBoats.sqf @@ -0,0 +1,2 @@ +[] remoteExec ["busterTele", [0,2]]; +removeAllActions LCA_Alpha; \ No newline at end of file