From 4e92a51cf88402c718b4ad199eb5e287f8d5b754 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Thu, 21 May 2015 17:47:54 -0500 Subject: [PATCH 1/4] Create Defuse Helpers for spawned Explosives --- addons/explosives/XEH_postInit.sqf | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/addons/explosives/XEH_postInit.sqf b/addons/explosives/XEH_postInit.sqf index 998f73ccaf..ea403a7f20 100644 --- a/addons/explosives/XEH_postInit.sqf +++ b/addons/explosives/XEH_postInit.sqf @@ -14,6 +14,28 @@ * Public: No */ #include "script_component.hpp" + +//Start up a PFEH that scans all mines/explosives without defuseObjects attached and adds them +//Handles Editor Placed / Zeus / Scripted +if (isServer) then { + [{ + { + _explosive = _x; + _helpers = { + ((typeOf _x) == "ACE_DefuseObject") && {(_x getVariable [QGVAR(Explosive), objNull]) == _explosive} + } count (attachedObjects _explosive); + + if (_helpers == 0) then { + systemChat "Missing Helper"; + TRACE_3("Explosive without helper",_explosive,(getPosAsl _explosive),(typeOf _explosive)); + _defuseHelper = createVehicle ["ACE_DefuseObject", (getPos _explosive), [], 0, "NONE"]; + _defuseHelper attachTo [_explosive, [0,0,0], ""]; + _defuseHelper setVariable [QGVAR(Explosive),_explosive,true]; + }; + } forEach allMines; + }, 5, []] call CBA_fnc_addPerFrameHandler; +}; + if !(hasInterface) exitWith {}; GVAR(PlacedCount) = 0; GVAR(Setup) = objNull; From 72020a43f134924fad259746884fa4123fdf8b97 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Thu, 21 May 2015 17:53:15 -0500 Subject: [PATCH 2/4] Privates / Remove Debug --- addons/explosives/XEH_postInit.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/explosives/XEH_postInit.sqf b/addons/explosives/XEH_postInit.sqf index ea403a7f20..88a7bbba95 100644 --- a/addons/explosives/XEH_postInit.sqf +++ b/addons/explosives/XEH_postInit.sqf @@ -19,6 +19,7 @@ //Handles Editor Placed / Zeus / Scripted if (isServer) then { [{ + private ["_explosive", "_helpers", "_defuseHelper"]; { _explosive = _x; _helpers = { @@ -26,7 +27,6 @@ if (isServer) then { } count (attachedObjects _explosive); if (_helpers == 0) then { - systemChat "Missing Helper"; TRACE_3("Explosive without helper",_explosive,(getPosAsl _explosive),(typeOf _explosive)); _defuseHelper = createVehicle ["ACE_DefuseObject", (getPos _explosive), [], 0, "NONE"]; _defuseHelper attachTo [_explosive, [0,0,0], ""]; From c208bb3fce9c58b38d691f23fd9dd0f8167a7e0a Mon Sep 17 00:00:00 2001 From: BullHorn Date: Fri, 22 May 2015 12:54:00 +0300 Subject: [PATCH 3/4] Doc: Installation-guide - improve Divide Installation process from Launch process --- documentation/user/installation-guide.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/documentation/user/installation-guide.md b/documentation/user/installation-guide.md index f662b7c746..44eefe7cba 100644 --- a/documentation/user/installation-guide.md +++ b/documentation/user/installation-guide.md @@ -15,24 +15,27 @@ This guide will explain how to get ACE3 up and running faster than you can say b - Download [ACE3](https://github.com/acemod/ACE3/releases/latest). - Know how to extract .zip files. Use [Google](https://www.google.com) if not sure. -## 3. Installation Guide -- Extract both CBA and ACE3 into your Arma 3 folder. By default this is located in:
+## 3. Install ACE3 +- Extract both CBA and ACE3 .zip files into your Arma 3 folder. By default this is located in:
32-Bit - `C:/Program Files/Steam/Steamapps/Common/Arma 3/`
64-Bit - `C:/Program Files (x86)/Steam/Steamapps/Common/Arma 3/` - After extraction you should have the `@ace` and `@CBA_A3` folders inside your Arma 3 folder. + +## 4. Launch Arma 3 with ACE3 - Launch Arma 3 to start the official game Launcher. - Click `Mods` and make sure the checkboxes next to `ace` and `CBA_A3` are ticked. - Click `Play` -## 4. Alternative launch methods +## 5. Alternative launch methods -### 4.1 Steam Launch Parameters +### 5.1 Steam Launch Parameters - Not supported with the new Arma 3 Launcher -### 4.2 Arma3Sync +### 5.2 Arma3Sync - Inspect `Addon Options` and verify the `Addon Search Directories` are leading to your Arma 3 folder. - Return to the `Addons` tab and click `Refresh`. -- Drag and drop `@ace` and `@CBA_A3` from `Available Addons` into the `Addon Groups` list and make sure the checkboxes are ticked. +- Right-click inside `Addon Groups`, click `Create Group` and give it a name. +- Drag and drop `@ace` and `@CBA_A3` from `Available Addons` into the new Group you created inside `Addon Groups` and make sure the checkboxes are ticked. - Click `Start Game` -### 4.3 Play withSIX +### 5.3 Play withSIX From c7f77a610f4e0c3844494b7637cd83c3d2ce6d4e Mon Sep 17 00:00:00 2001 From: BullHorn Date: Fri, 22 May 2015 13:42:13 +0300 Subject: [PATCH 4/4] Update installation-guide.md - add images Add images for Vanilla and A3S launchers --- documentation/user/installation-guide.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/documentation/user/installation-guide.md b/documentation/user/installation-guide.md index 44eefe7cba..317042e574 100644 --- a/documentation/user/installation-guide.md +++ b/documentation/user/installation-guide.md @@ -24,6 +24,7 @@ This guide will explain how to get ACE3 up and running faster than you can say b ## 4. Launch Arma 3 with ACE3 - Launch Arma 3 to start the official game Launcher. - Click `Mods` and make sure the checkboxes next to `ace` and `CBA_A3` are ticked. +Arma 3 Vanilla Launcher - Click `Play` ## 5. Alternative launch methods @@ -36,6 +37,7 @@ This guide will explain how to get ACE3 up and running faster than you can say b - Return to the `Addons` tab and click `Refresh`. - Right-click inside `Addon Groups`, click `Create Group` and give it a name. - Drag and drop `@ace` and `@CBA_A3` from `Available Addons` into the new Group you created inside `Addon Groups` and make sure the checkboxes are ticked. +Arma3Sync Launcher - Click `Start Game` ### 5.3 Play withSIX