From ba9a79e72f362dd89368b171ae8be8ed6fe19cac Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Tue, 23 Jan 2018 23:10:39 +0000 Subject: [PATCH 01/72] Added Vehicle Salvage script. --- mpmissions/Exile.Altis/ExAdClient/CfgFunctions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mpmissions/Exile.Altis/ExAdClient/CfgFunctions.cpp b/mpmissions/Exile.Altis/ExAdClient/CfgFunctions.cpp index 2e4edaf..9e01551 100644 --- a/mpmissions/Exile.Altis/ExAdClient/CfgFunctions.cpp +++ b/mpmissions/Exile.Altis/ExAdClient/CfgFunctions.cpp @@ -28,4 +28,5 @@ class ExAd //#include "HaloParachute\CfgFunctions.cpp" //#include "XM8\CfgFunctions.cpp" //#include "StatsBar\CfgFunctions.cpp" -}; \ No newline at end of file + //#include "VehicleSalvage\CfgFunctions.cpp" +}; From 8ffe82a5418eef5b4010cc7e1f2dff2a8b4210cc Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Tue, 23 Jan 2018 23:11:21 +0000 Subject: [PATCH 02/72] Added Vehicle Salvage. --- .../VehicleSalvage/CfgFunctions.cpp | 27 ++++++ .../ExAdClient/VehicleSalvage/customize.sqf | 20 ++++ .../functions/fn_vehicleSalvage.sqf | 97 +++++++++++++++++++ .../ExAdClient/VehicleSalvage/postInit.sqf | 24 +++++ 4 files changed, 168 insertions(+) create mode 100644 mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/CfgFunctions.cpp create mode 100644 mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/customize.sqf create mode 100644 mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/functions/fn_vehicleSalvage.sqf create mode 100644 mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/postInit.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/CfgFunctions.cpp b/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/CfgFunctions.cpp new file mode 100644 index 0000000..c0afae6 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/CfgFunctions.cpp @@ -0,0 +1,27 @@ +/* + CfgFunctions.cpp + + Copyright 2016 Jan Babor + + Added to ExAd by [GADD]Monkeynutz + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + + +class VehicleSalvage +{ + file = "ExAdClient\VehicleSalvage\Functions"; + class vehicleSalvage {}; + class postInitSV {file = "ExAdClient\VehicleSalvage\postInit.sqf"; postInit = 1;}; +}; \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/customize.sqf b/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/customize.sqf new file mode 100644 index 0000000..b37b4f3 --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/customize.sqf @@ -0,0 +1,20 @@ +/* + customize.sqf + + Copyright 2016 Jan Babor + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +ExAd_SV_DISALLOW_DURING_COMBAT = true; //BOOLEAN - Set to true to prevent people salvaging their vehicles during combat. +ExAd_SV_TIME_TAKEN_TO_SALVAGE = 10; //SCALAR - Set in seconds how long you wish for salvaging to take players. (Default = 10) \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/functions/fn_vehicleSalvage.sqf b/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/functions/fn_vehicleSalvage.sqf new file mode 100644 index 0000000..654ce7c --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/functions/fn_vehicleSalvage.sqf @@ -0,0 +1,97 @@ +/** + ExAd Salvage Vehicle Script + Old script found & fixed, edited, optimized and added to by [GADD]Monkeynutz + Written for ExAd by [ExAd]Janski +**/ + +if (ExileClientActionDelayShown) exitWith { false }; +ExileClientActionDelayShown = true; +ExileClientActionDelayAbort = false; + +if (ExileClientPlayerIsInCombat && ExAd_SV_DISALLOW_DURING_COMBAT) exitWith +{ + ["ErrorTitleAndText",["Vehicle Salvage!", "You cannot salvage a vehicle while in combat!"]] call ExileClient_gui_toaster_addTemplateToast; + ExileClientActionDelayShown = false; + ExileClientActionDelayAbort = false; +}; + +["InfoTitleAndText",["Vehicle Salvage!", "Salvaging Vehicle!"]] call ExileClient_gui_toaster_addTemplateToast; + +disableSerialization; +("ExileActionProgressLayer" call BIS_fnc_rscLayer) cutRsc ["RscExileActionProgress", "PLAIN", 1, false]; + +private _duration = ExAd_SV_TIME_TAKEN_TO_SALVAGE; +private _keyDown = (findDisplay 46) displayAddEventHandler ["KeyDown","_this call ExileClient_action_event_onKeyDown"]; +private _mouseDown = (findDisplay 46) displayAddEventHandler ["MouseButtonDown","_this call ExileClient_action_event_onMouseButtonDown"]; +private _startTime = diag_tickTime; +private _sleepTime = _duration / 100; +private _progress = 0; +private _uiControl = uiNamespace getVariable "RscExileActionProgress"; +private _percentage = _uiControl displayCtrl 4002; +private _progressBarBackground = _uiControl displayCtrl 4001; +private _progressBarMaxSize = ctrlPosition _progressBarBackground; +private _progressBar = _uiControl displayCtrl 4000; +private _barColour = []; + +player playAction "Exile_Acts_RepairVehicle01_Animation01"; +["switchMoveRequest", [netId player, "Exile_Acts_RepairVehicle01_Animation01"]] call ExileClient_system_network_send; +_percentage ctrlSetText "0%"; +_progressBar ctrlSetPosition [_progressBarMaxSize select 0, _progressBarMaxSize select 1, 0, _progressBarMaxSize select 3]; +_progressBar ctrlSetBackgroundColor [0, 0.78, 0.93, 1]; +_progressBar ctrlCommit 0; +_progressBar ctrlSetPosition _progressBarMaxSize; +_progressBar ctrlCommit _duration; +try +{ + while {_progress < 1} do + { + if (ExileClientActionDelayAbort) then + { + throw 1; + }; + + uiSleep _sleepDuration; + _progress = ((diag_tickTime - _startTime) / _duration) min 1; + _percentage ctrlSetText format["%1%2", round (_progress * 100), "%"]; + }; + throw 0; +} +catch +{ + + switch (_exception) do + { + case 0: + { + _barColour = [0.7, 0.93, 0, 1]; + deleteVehicle (_this select 0); + + [ + "SuccessTitleAndText", + ["Vehicle Salvage!", "You have successfully Salvaged this Vehicle! Junk Metal fell on the floor!"] + ] call ExileClient_gui_toaster_addTemplateToast; + private _junk = "groundweaponHolder" createVehicle position player; + _junk addMagazineCargo ["Exile_Item_JunkMetal", 1]; + _junk setPosATL getPosATL player; + }; + case 1: + { + [ + "ErrorTitleAndText", + ["Vehicle Salvage!", "Salvaging Canceled!"] + ] call ExileClient_gui_toaster_addTemplateToast; + _barColour = [0.82, 0.82, 0.82, 1]; + }; + }; + player switchMove ""; + ["switchMoveRequest", [netId player, ""]] call ExileClient_system_network_send; + _progressBar ctrlSetBackgroundColor _barColour; + _progressBar ctrlSetPosition _progressBarMaxSize; + _progressBar ctrlCommit 0; +}; + +("ExileActionProgressLayer" call BIS_fnc_rscLayer) cutFadeOut 2; +(findDisplay 46) displayRemoveEventHandler ["KeyDown", _keyDown]; +(findDisplay 46) displayRemoveEventHandler ["MouseButtonDown", _mouseDown]; +ExileClientActionDelayShown = false; +ExileClientActionDelayAbort = false; \ No newline at end of file diff --git a/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/postInit.sqf b/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/postInit.sqf new file mode 100644 index 0000000..4aa968c --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/postInit.sqf @@ -0,0 +1,24 @@ +/* + postInit.sqf + + Copyright 2016 Jan Babor + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ + +_path = "ExAdClient\VehicleSalvage\customize.sqf"; +call compile preprocessFileLineNumbers _path; + +if(isNil "ExAd_SV_DISALLOW_DURING_COMBAT")then{ExAd_SV_DISALLOW_DURING_COMBAT = false;}; +if(isNil "ExAd_SV_TIME_TAKEN_TO_SALVAGE")then{ExAd_SV_TIME_TAKEN_TO_SALVAGE = 10;}; \ No newline at end of file From bc762b9877714971bb9c86e33ffa73df7e39e1d6 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Tue, 23 Jan 2018 23:20:56 +0000 Subject: [PATCH 03/72] install docs to Salvage Vehicle added. --- docs/VehicleSalvage/installation.md | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docs/VehicleSalvage/installation.md diff --git a/docs/VehicleSalvage/installation.md b/docs/VehicleSalvage/installation.md new file mode 100644 index 0000000..55d53c7 --- /dev/null +++ b/docs/VehicleSalvage/installation.md @@ -0,0 +1,38 @@ +# Installation + +Remember for this plugin to work you first need to install +* [Core]((https://github.com/Bjanski/ExAd/blob/master/docs/core/installation.md) + +## Client + +* Make sure the VehicleSalvage folder is present in mpmissions\missionname.mapname\ExAdClient + +* Goto "mpmissions\exile.\ExAdClient\CfgFunctions" and uncomment + +_From_ +```cpp + //#include "VehicleSalvage\CfgFunctions.cpp" +``` +_To_ +```cpp + #include "VehicleSalvage\CfgFunctions.cpp" +``` + +* In "config.cpp" find "CfgInteractionMenus" + +* Under CfgInteractionMenus you will see "class Car" + +* Add to the bottom of "class Car" menus this: + ```cpp + class ExAdSalvage: ExileAbstractAction + { + title = "ExAd Salvage Aircraft"; + condition = "(!(alive (ExileClientInteractionObject)))"; + action = "_this call ExAd_fnc_vehicleSalvage"; + }; + ``` +* Make sure it follows the formatting of the rest of the actions. + +* Repeat this to add it to "class Air", "class Boat" and "class Tank" if you have it. Vanilla servers do not have "class Tank" so you may need to add it yourself. + +ALL DONE! Enjoy :D \ No newline at end of file From c5a371edbdd8ff34169bbab9979f8ce3ea205eeb Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Wed, 24 Jan 2018 00:25:12 +0000 Subject: [PATCH 04/72] Update fn_vehicleSalvage.sqf --- .../ExAdClient/VehicleSalvage/functions/fn_vehicleSalvage.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/functions/fn_vehicleSalvage.sqf b/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/functions/fn_vehicleSalvage.sqf index 654ce7c..b025867 100644 --- a/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/functions/fn_vehicleSalvage.sqf +++ b/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/functions/fn_vehicleSalvage.sqf @@ -50,7 +50,7 @@ try throw 1; }; - uiSleep _sleepDuration; + uiSleep _sleepTime; _progress = ((diag_tickTime - _startTime) / _duration) min 1; _percentage ctrlSetText format["%1%2", round (_progress * 100), "%"]; }; @@ -94,4 +94,4 @@ catch (findDisplay 46) displayRemoveEventHandler ["KeyDown", _keyDown]; (findDisplay 46) displayRemoveEventHandler ["MouseButtonDown", _mouseDown]; ExileClientActionDelayShown = false; -ExileClientActionDelayAbort = false; \ No newline at end of file +ExileClientActionDelayAbort = false; From fa3591d939a3d3e39ca9931466a865f6d86d098d Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Wed, 24 Jan 2018 00:25:40 +0000 Subject: [PATCH 05/72] added vehicle salvage --- .../ExAdClient/VehicleSalvage/functions/fn_vehicleSalvage.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/functions/fn_vehicleSalvage.sqf b/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/functions/fn_vehicleSalvage.sqf index b025867..50abba4 100644 --- a/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/functions/fn_vehicleSalvage.sqf +++ b/mpmissions/Exile.Altis/ExAdClient/VehicleSalvage/functions/fn_vehicleSalvage.sqf @@ -1,7 +1,7 @@ /** ExAd Salvage Vehicle Script Old script found & fixed, edited, optimized and added to by [GADD]Monkeynutz - Written for ExAd by [ExAd]Janski + Written for ExAd by [ExAd]Janski **/ if (ExileClientActionDelayShown) exitWith { false }; From cc1f8cd4ab7a4866f258213f5d8b1e58b1d1b6ac Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Wed, 24 Jan 2018 10:25:14 +0000 Subject: [PATCH 06/72] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0ba9adb..044bb66 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ExAd -[![Arma 1.78](https://img.shields.io/badge/Arma-1.80-blue.svg)](https://dev.arma3.com/post/spotrep-00076) [![Exile 1.0.3 Lemon](https://img.shields.io/badge/Exile-1.0.3%20Lemon-yellow.svg)](http://www.exilemod.com/topic/22940-103-lemon/) [![ExAd Version](https://img.shields.io/badge/ExAd-v0.10.0%20Broccoli-green.svg)](http://bjanski.github.io/ExAd/) +[![Arma 1.78](https://img.shields.io/badge/Arma-1.80-blue.svg)](https://dev.arma3.com/post/spotrep-00076) [![Exile 1.0.4 "Pineapple"](https://img.shields.io/badge/Exile-1.0.4%20"Lemon"-yellow.svg)](http://www.exilemod.com/topic/22940-103-lemon/) [![ExAd Version](https://img.shields.io/badge/ExAd-v0.10.0%20Broccoli-green.svg)](http://bjanski.github.io/ExAd/) Exile Addons - originally small projects developed for the Arma Exile communities EXO and SP4R but now rewritten and collected here for public use. Contributers to the code can be found in the "Contributers" section at the top of the Repo. From 856674dd03e82b047320e71956aace85d8fe9748 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Wed, 24 Jan 2018 10:26:22 +0000 Subject: [PATCH 07/72] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 044bb66..7fe2041 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ExAd -[![Arma 1.78](https://img.shields.io/badge/Arma-1.80-blue.svg)](https://dev.arma3.com/post/spotrep-00076) [![Exile 1.0.4 "Pineapple"](https://img.shields.io/badge/Exile-1.0.4%20"Lemon"-yellow.svg)](http://www.exilemod.com/topic/22940-103-lemon/) [![ExAd Version](https://img.shields.io/badge/ExAd-v0.10.0%20Broccoli-green.svg)](http://bjanski.github.io/ExAd/) +[![Arma 1.78](https://img.shields.io/badge/Arma-1.80-blue.svg)](https://dev.arma3.com/post/spotrep-00076) [![Exile 1.0.4 "Pineapple"](https://img.shields.io/badge/Exile-1.0.4%20"Lemon"-yellow.svg)](http://www.exilemod.com/topic/25026-104-pineapple/) [![ExAd Version](https://img.shields.io/badge/ExAd-v1.0.0%20Kumquat-orange.svg)](http://bjanski.github.io/ExAd/) Exile Addons - originally small projects developed for the Arma Exile communities EXO and SP4R but now rewritten and collected here for public use. Contributers to the code can be found in the "Contributers" section at the top of the Repo. From af897d0503c4df9250b58a8c07dca0b008fb221c Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Wed, 24 Jan 2018 11:19:09 +0000 Subject: [PATCH 08/72] Update installation.md --- docs/VehicleSalvage/installation.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/VehicleSalvage/installation.md b/docs/VehicleSalvage/installation.md index 55d53c7..77e5d26 100644 --- a/docs/VehicleSalvage/installation.md +++ b/docs/VehicleSalvage/installation.md @@ -23,6 +23,7 @@ _To_ * Under CfgInteractionMenus you will see "class Car" * Add to the bottom of "class Car" menus this: + ```cpp class ExAdSalvage: ExileAbstractAction { @@ -31,8 +32,9 @@ _To_ action = "_this call ExAd_fnc_vehicleSalvage"; }; ``` + * Make sure it follows the formatting of the rest of the actions. * Repeat this to add it to "class Air", "class Boat" and "class Tank" if you have it. Vanilla servers do not have "class Tank" so you may need to add it yourself. -ALL DONE! Enjoy :D \ No newline at end of file +ALL DONE! Enjoy :D From 1b371ae88c30832adf2f4f16cb013e0f7204b92b Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Wed, 24 Jan 2018 11:19:50 +0000 Subject: [PATCH 09/72] Update installation.md --- docs/VehicleSalvage/installation.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/VehicleSalvage/installation.md b/docs/VehicleSalvage/installation.md index 77e5d26..6490b14 100644 --- a/docs/VehicleSalvage/installation.md +++ b/docs/VehicleSalvage/installation.md @@ -24,14 +24,14 @@ _To_ * Add to the bottom of "class Car" menus this: - ```cpp - class ExAdSalvage: ExileAbstractAction - { +```cpp + class ExAdSalvage: ExileAbstractAction + { title = "ExAd Salvage Aircraft"; condition = "(!(alive (ExileClientInteractionObject)))"; action = "_this call ExAd_fnc_vehicleSalvage"; - }; - ``` + }; +``` * Make sure it follows the formatting of the rest of the actions. From 3fb6d18dd73f6710f2da2c4758fa9a96c3155a15 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Wed, 24 Jan 2018 11:20:30 +0000 Subject: [PATCH 10/72] Update config.cpp --- mpmissions/Exile.Altis/config.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mpmissions/Exile.Altis/config.cpp b/mpmissions/Exile.Altis/config.cpp index f71b2e8..54c41e5 100644 --- a/mpmissions/Exile.Altis/config.cpp +++ b/mpmissions/Exile.Altis/config.cpp @@ -93,6 +93,12 @@ class CfgInteractionMenus condition = "call ExAd_XM8_DV_fnc_canPack"; action = "call ExAd_XM8_DV_fnc_pack"; }; + class ExAdSalvage: ExileAbstractAction + { + title = "ExAd Salvage Aircraft"; + condition = "(!(alive (ExileClientInteractionObject)))"; + action = "_this call ExAd_fnc_vehicleSalvage"; + }; }; }; class Bikes From 268662309fa889266e97faf3c562b643c3da958d Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Wed, 24 Jan 2018 11:27:09 +0000 Subject: [PATCH 11/72] Updated ready for Updates. --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7fe2041..32a20f8 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ ExAd -[![Arma 1.78](https://img.shields.io/badge/Arma-1.80-blue.svg)](https://dev.arma3.com/post/spotrep-00076) [![Exile 1.0.4 "Pineapple"](https://img.shields.io/badge/Exile-1.0.4%20"Lemon"-yellow.svg)](http://www.exilemod.com/topic/25026-104-pineapple/) [![ExAd Version](https://img.shields.io/badge/ExAd-v1.0.0%20Kumquat-orange.svg)](http://bjanski.github.io/ExAd/) +[![Arma 1.80](https://img.shields.io/badge/Arma-1.80-blue.svg)](https://dev.arma3.com/post/spotrep-00077) [![Exile 1.0.4 "Pineapple"](https://img.shields.io/badge/Exile-1.0.4%20"Lemon"-yellow.svg)](http://www.exilemod.com/topic/25026-104-pineapple/) [![ExAd Version](https://img.shields.io/badge/ExAd-v1.0.0%20Kumquat-orange.svg)](http://bjanski.github.io/ExAd/) -Exile Addons - originally small projects developed for the Arma Exile communities EXO and SP4R but now rewritten and collected here for public use. Contributers to the code can be found in the "Contributers" section at the top of the Repo. +Exile Addons by Janski - originally small projects developed for the Arma Exile communities EXO and SP4R but now rewritten and collected here for public use. Contributers to the code can be found in the "Contributers" section at the top of the Repo. +Repo now looked after by [GADD]Monkeynutz(https://gamingatdeathsdoor.com) -I'll gradually add all features I built, encouragements always helps the project to stay alive a little longer :smirk: | [Donate here](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=jan%2ebabor%2e383%40gmail%2ecom&lc=GB&item_name=ExAd¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) +Janski No longer works on ExAd but you can donate to him here to appreciate his work... :smirk: | [Donate here](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=jan%2ebabor%2e383%40gmail%2ecom&lc=GB&item_name=ExAd¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) ## Installation & Examples Instructions for installation is found under [docs](https://github.com/Bjanski/ExAd/tree/master/docs). From 7c34eea74293b6bd0c63e1a5e7fc06a471a90a0a Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Wed, 24 Jan 2018 11:28:00 +0000 Subject: [PATCH 12/72] Updated ready for updates --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 32a20f8..1428bc6 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Arma 1.80](https://img.shields.io/badge/Arma-1.80-blue.svg)](https://dev.arma3.com/post/spotrep-00077) [![Exile 1.0.4 "Pineapple"](https://img.shields.io/badge/Exile-1.0.4%20"Lemon"-yellow.svg)](http://www.exilemod.com/topic/25026-104-pineapple/) [![ExAd Version](https://img.shields.io/badge/ExAd-v1.0.0%20Kumquat-orange.svg)](http://bjanski.github.io/ExAd/) Exile Addons by Janski - originally small projects developed for the Arma Exile communities EXO and SP4R but now rewritten and collected here for public use. Contributers to the code can be found in the "Contributers" section at the top of the Repo. -Repo now looked after by [GADD]Monkeynutz(https://gamingatdeathsdoor.com) +Repo now looked after and updated by [GADD](https://gamingatdeathsdoor.com)Monkeynutz. Janski No longer works on ExAd but you can donate to him here to appreciate his work... :smirk: | [Donate here](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=jan%2ebabor%2e383%40gmail%2ecom&lc=GB&item_name=ExAd¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) From d1a1e831e748b16e84e14b57f641e502fc487199 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Wed, 24 Jan 2018 11:28:24 +0000 Subject: [PATCH 13/72] Updated for updates --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1428bc6..21eeb42 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Arma 1.80](https://img.shields.io/badge/Arma-1.80-blue.svg)](https://dev.arma3.com/post/spotrep-00077) [![Exile 1.0.4 "Pineapple"](https://img.shields.io/badge/Exile-1.0.4%20"Lemon"-yellow.svg)](http://www.exilemod.com/topic/25026-104-pineapple/) [![ExAd Version](https://img.shields.io/badge/ExAd-v1.0.0%20Kumquat-orange.svg)](http://bjanski.github.io/ExAd/) Exile Addons by Janski - originally small projects developed for the Arma Exile communities EXO and SP4R but now rewritten and collected here for public use. Contributers to the code can be found in the "Contributers" section at the top of the Repo. -Repo now looked after and updated by [GADD](https://gamingatdeathsdoor.com)Monkeynutz. +Repo now looked after and updated by [[GADD]](https://gamingatdeathsdoor.com)Monkeynutz. Janski No longer works on ExAd but you can donate to him here to appreciate his work... :smirk: | [Donate here](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=jan%2ebabor%2e383%40gmail%2ecom&lc=GB&item_name=ExAd¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) From a4653c9db6550ba8aebaa31b6cf5c67804381869 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Wed, 24 Jan 2018 11:30:59 +0000 Subject: [PATCH 14/72] Updated for updates --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 21eeb42..503151e 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Below you can see what dependencies each plugin has. ## Update Instructions After you have installed the entire or parts of the ExAd Package you will easiest update by checking each subproject documentation folder to retrieve the changelog and update instructions. -##Collection +## Collection * Core * Halo & Parachute * Virtual Garage @@ -26,7 +26,7 @@ After you have installed the entire or parts of the ExAd Package you will easies * Admin Events .. *Coming Soon* * VehicleUpgrade -- *Coming Soon* -##Dependencies +## Dependencies * Core * [Exile](http://www.exilemod.com/downloads/) * Virtual Garage @@ -55,11 +55,11 @@ Contributions are allways welcome, please read [Contribution Guidlines](CONTRIBU All contributed code first needs to be rewieved and tested before pushed to master. -##License +## License Apache License -##Contact -For this project I only reply through my [Exile profile](http://www.exilemod.com/profile/7143-janski/) -Contact Monkeynutz Directly for a fast reply: [Exile profile](http://www.exilemod.com/profile/61794-monkeynutz/) +## Contact +Janski doesn't reply as much anymore as he is not in the ArmA scene. But here is his [Exile profile](http://www.exilemod.com/profile/7143-janski/) +Contact Monkeynutz Directly for a fast reply: [Monkey's Profile](http://www.exilemod.com/profile/61794-monkeynutz/) -If you want help with an issue, report a bug or maybe just request a new feature first make sure now one else have had the same issue by searching the [Issue Tracker](https://github.com/Bjanski/ExAd/issues) and the [Exile Forum](http://www.exilemod.com/). +If you want help with an issue, report a bug or maybe just request a new feature first make sure now one else have had the same issue by searching the [Issue Tracker](https://github.com/Bjanski/ExAd/issues) and the [Exile Forum](http://www.exilemod.com/topic/13865-exad-package-of-virtual-garagexm8statsbarhalo-parachuteadmin-eventshackinggrindingvehicle-upgrade/). From 814c80ed8eca8fc922fcf386eef69f90d8e6060a Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Wed, 24 Jan 2018 11:31:34 +0000 Subject: [PATCH 15/72] Updated ready for updates. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 503151e..d26e56c 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ After you have installed the entire or parts of the ExAd Package you will easies * VehicleUpgrade * Core -##Contribute +## Contribute Contributions are allways welcome, please read [Contribution Guidlines](CONTRIBUTING.md) first. All contributed code first needs to be rewieved and tested before pushed to master. From ccdaaee941fd8eb79d94745b69f34e0ecc07dd85 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:15:26 +0000 Subject: [PATCH 16/72] Delete $PREFIX$ --- @ExileServer/addons/exad_grinding/$PREFIX$ | 1 - 1 file changed, 1 deletion(-) delete mode 100644 @ExileServer/addons/exad_grinding/$PREFIX$ diff --git a/@ExileServer/addons/exad_grinding/$PREFIX$ b/@ExileServer/addons/exad_grinding/$PREFIX$ deleted file mode 100644 index 27e2b77..0000000 --- a/@ExileServer/addons/exad_grinding/$PREFIX$ +++ /dev/null @@ -1 +0,0 @@ -exad_grinding \ No newline at end of file From 01a45904d2b5c6f3fb59449c65f45e5ddf317f58 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:16:17 +0000 Subject: [PATCH 17/72] Delete PboPrefix.txt --- @ExileServer/addons/exad_grinding/PboPrefix.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 @ExileServer/addons/exad_grinding/PboPrefix.txt diff --git a/@ExileServer/addons/exad_grinding/PboPrefix.txt b/@ExileServer/addons/exad_grinding/PboPrefix.txt deleted file mode 100644 index 27e2b77..0000000 --- a/@ExileServer/addons/exad_grinding/PboPrefix.txt +++ /dev/null @@ -1 +0,0 @@ -exad_grinding \ No newline at end of file From e34320e6b7f8fbc73469554c5d785bebf0ad1ba0 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:16:23 +0000 Subject: [PATCH 18/72] Delete config.cpp --- @ExileServer/addons/exad_grinding/config.cpp | 46 -------------------- 1 file changed, 46 deletions(-) delete mode 100644 @ExileServer/addons/exad_grinding/config.cpp diff --git a/@ExileServer/addons/exad_grinding/config.cpp b/@ExileServer/addons/exad_grinding/config.cpp deleted file mode 100644 index aaf1932..0000000 --- a/@ExileServer/addons/exad_grinding/config.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/* - config.cpp - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -class CfgPatches { - class ExAd_Grinding { - requiredVersion = 0.1; - requiredAddons[] = {"ExAd_Core"}; - }; -}; - -class CfgFunctions { - class ExAdServer { - class Grinding { - file = "exad_grinding\Functions"; - class grindProgress {}; - class restoreLock {}; - }; - }; -}; - -class CfgNetworkMessages -{ - class grindProgress - { - parameters[] = {"STRING"}; - }; - class restoreLock - { - parameters[] = {"STRING"}; - }; -}; \ No newline at end of file From 5348057ebb16fabc653dae6d92a42c8803c34fd6 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:16:32 +0000 Subject: [PATCH 19/72] Delete fn_grindProgress.sqf --- .../Functions/fn_grindProgress.sqf | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 @ExileServer/addons/exad_grinding/Functions/fn_grindProgress.sqf diff --git a/@ExileServer/addons/exad_grinding/Functions/fn_grindProgress.sqf b/@ExileServer/addons/exad_grinding/Functions/fn_grindProgress.sqf deleted file mode 100644 index 96bba66..0000000 --- a/@ExileServer/addons/exad_grinding/Functions/fn_grindProgress.sqf +++ /dev/null @@ -1,47 +0,0 @@ -/* - fn_grindProgress.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -private ["_object","_databaseID"]; - -_object = objectFromNetId ([_this, 0, "",[""]] call BIS_fnc_param); - -if(isNull _object)exitWith{false}; - -_territory = _object call ExileClient_util_world_getTerritoryAtPosition; -_serverTime = time; -if(_serverTime > ((_territory getVariable ["ExileXM8MobileNotifiedTime",-1800]) + 1800))then -{ - _territory call ExileServer_system_xm8_sendBaseRaid; - _territory setVariable ["ExileXM8MobileNotifiedTime", _serverTime]; -}; - -if((_object getVariable ["ExAd_Grinding_progress", 0]) >= ExAd_GRINDING_OBJECT_MAX)then{ - _object setVariable ["ExileAccessCode", nil]; - _object setVariable ["ExileIsLocked", nil, true]; - - _databaseID = _object getVariable ["ExileDatabaseID",0]; - format ["addDoorLock:%1:%2","000000",_databaseID] call ExileServer_system_database_query_fireAndForget; - - ["Grinding", format["Grind successful: Territory ID - %1|Object ID - %2", _object setVariable ["ExileTerritoryID", -1], _object getVariable ["ExileDatabaseID",0]]] call ExAdServer_fnc_log; -}; - - - -_object setVariable ["ExAd_Grinding_progress", (_object getVariable ["ExAd_Grinding_progress", 0]) + ExAd_GRINDING_PROGRESS, true]; - -true \ No newline at end of file From c6d085ebe42a4a1c81452be61c2f24010ff30441 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:16:38 +0000 Subject: [PATCH 20/72] Delete fn_restoreLock.sqf --- .../Functions/fn_restoreLock.sqf | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 @ExileServer/addons/exad_grinding/Functions/fn_restoreLock.sqf diff --git a/@ExileServer/addons/exad_grinding/Functions/fn_restoreLock.sqf b/@ExileServer/addons/exad_grinding/Functions/fn_restoreLock.sqf deleted file mode 100644 index b465969..0000000 --- a/@ExileServer/addons/exad_grinding/Functions/fn_restoreLock.sqf +++ /dev/null @@ -1,29 +0,0 @@ -/* - fn_restoreLock.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -private ["_object","_databaseID"]; - -_object = objectFromNetId ([_this, 0, "",[""]] call BIS_fnc_param); - -if(isNull _object)exitWith{false}; - -_object setVariable ["ExAd_Grinding_progress", 0, true]; - -["Grinding", format["Lock restored: Territory ID - %1|Object ID - %2", _object setVariable ["ExileTerritoryID", -1], _object getVariable ["ExileDatabaseID",0]]] call ExAdServer_fnc_log; - -true \ No newline at end of file From de75e480e91d74563c5febc6fe32dab164e204a1 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:16:52 +0000 Subject: [PATCH 21/72] Delete fn_startHack.sqf --- .../exad_hacking/Functions/fn_startHack.sqf | 179 ------------------ 1 file changed, 179 deletions(-) delete mode 100644 @ExileServer/addons/exad_hacking/Functions/fn_startHack.sqf diff --git a/@ExileServer/addons/exad_hacking/Functions/fn_startHack.sqf b/@ExileServer/addons/exad_hacking/Functions/fn_startHack.sqf deleted file mode 100644 index 8b2876b..0000000 --- a/@ExileServer/addons/exad_hacking/Functions/fn_startHack.sqf +++ /dev/null @@ -1,179 +0,0 @@ -/* - fn_startHack.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -private ["_object","_player","_laptops","_pos","_laptop"]; - -_object = objectFromNetId ([_this, 0, "",[""]] call BIS_fnc_param); -_player = objectFromNetId ([_this, 1, "",[""]] call BIS_fnc_param); - -if(isNull _object || isNull _player)exitWith{false}; - -_flag = ((getPos _object) nearObjects ["Exile_Construction_Flag_Static", 150]) select 0; - -if(_flag isEqualTo objNull)exitWith{false}; - -if(ExAd_HACKING_PLAYER_ONLINE && !([_flag] call ExAdServer_fnc_territoryPlayerPresent))exitWith{ - [STR_ExAd_HACKING_NOTI_NO_PLAYER_PRESENT ,0,0.6,2,0] remoteExec ["BIS_fnc_dynamicText",owner _player]; -}; - -if(_flag getVariable ["ExAd_HACKS_SUCCEEDED",0] >= ExAd_HACKING_TERRITORY_MAX)exitWith{ - [STR_ExAd_HACKING_NOTI_MAX_TERRITORY_HACKS_REACHED ,0,0.6,2,0] remoteExec ["BIS_fnc_dynamicText",owner _player]; -}; - -_laptops = nearestObjects [getPos _object, ["Exile_Construction_Laptop_Static"], 200]; -if(({(_x getVariable ["ExAd_HACKING_IN_PROGRESS", false])}count _laptops) >= 1)exitWith{ - [STR_ExAd_HACKING_NOTI_TERRITORY_ONE_HACK,0,0.6,2,0] remoteExec ["BIS_fnc_dynamicText",owner _player]; - false -}; - -if(isNil "ExAd_HACKS_IN_PROGRESS")then{ - ExAd_HACKS_IN_PROGRESS = 0; -}; - -["Hacking", format["Hack started: Player - %1(%2)|Territory - %3|Hacks in motion - %4",name _player, getPlayerUID _player, _flag getVariable ["ExileTerritoryName", "Unknown"], ExAd_HACKS_IN_PROGRESS]] call ExAdServer_fnc_log; - -_territory = _flag call ExileClient_util_world_getTerritoryAtPosition; -_serverTime = time; -if(_serverTime > ((_territory getVariable ["ExileXM8MobileNotifiedTime",-1800]) + 1800))then -{ - _territory call ExileServer_system_xm8_sendBaseRaid; - _territory setVariable ["ExileXM8MobileNotifiedTime", _serverTime]; -}; - -_pos = _player modelToWorld [0, +0.5, 0]; -_pos set [2,((getPosATL _player) select 2)]; - -_laptop = createVehicle ["Exile_Construction_Laptop_Static", _pos, [], 0, "CAN_COLLIDE"]; -_laptop setDir ((direction _player) - 90); - -_laptop setVariable ["ExAd_HACKING_IN_PROGRESS", true, true]; -_laptop animate ["LaptopLidRotation", 1]; - -_player removeItem "Exile_Item_Laptop"; - -[_object, _player, _laptop, _flag] spawn { - params ["_object","_player","_laptop","_flag","_markers","_marker","_success","_ticks","_newSize","_destroy","_msg"]; - UISleep 2; - - ["baguetteRequest", ["Hacktivity Detected on the Grid!"]] call ExileServer_system_network_send_broadcast; - - if(ExAd_HACKS_IN_PROGRESS >= ExAd_HACKING_ALLOWED_HACKS)exitWith{ - _laptop setVariable ["ExAd_HACKING_IN_PROGRESS", false, true]; - _laptop setDamage 1; - [format[STR_ExAd_HACKING_NOTI_MAX_SIM_HACKS],0,0.6,2,0] remoteExec ["BIS_fnc_dynamicText",owner _player]; - false - }; - - ExAd_HACKS_IN_PROGRESS = ExAd_HACKS_IN_PROGRESS + 1; - - _markers = [getPos _laptop, ExAd_HACKING_MARKER_COLOR, 200, str (netId _object), ExAd_HACKING_MARKER_TITLE,true] call ExAdServer_fnc_createMarker; - _marker = _markers select 0; - _success = false; - - while {!(_laptop getVariable ["ExAd_HACK_INTERUPTED",false]) && _laptop getVariable ["ExAd_HACK", 0] <= ExAd_HACKING_MAX_TIME} do { - UISleep 1; - _ticks = (_laptop getVariable ["ExAd_HACK", 0]) + 1; - _laptop setVariable ["ExAd_HACK", _ticks]; - - if((_ticks % (ExAd_HACKING_MAX_TIME / 10)) == 0)then{ - _newSize = ((getMarkerSize _marker) select 0) - 20; - _marker setMarkerSize [_newSize,_newSize]; - }; - - if(_ticks >= ExAd_HACKING_MAX_TIME)exitWith{_success = true}; - - waitUntil{{(_x distance (getPosATL _laptop)) < ExAd_HACKING_MAX_DISTANCE}count playableUnits > 0}; - }; - - _laptop setVariable ["ExAd_HACKING_IN_PROGRESS", false, true]; - _laptop animate ["LaptopLidRotation", 0]; - _destroy = false; - - _msg = if(_success && ((random 1) > ExAd_HACKING_FAILED_HACK))then{ - _flag setVariable ["ExAd_HACKS_SUCCEEDED", (_flag getVariable ["ExAd_HACKS_SUCCEEDED",0]) + 1]; - if(_object isKindOf "Exile_Construction_Flag_Static")then{ - if(!isClass(configFile >> "CfgPatches" >> "ExAd_VG"))then{ - ["startHack", "You are missing the ExAd_VG dependenci to run this function.", true] call ExAd_fnc_debugHandler; - "This server isn't using the ExAd Virtual Garage, tell the admins to get a grip!!" - }else{ - private ["_vehList","_objId","_vehObj","_extDB2Message","_pos"]; - _vehList = _object getVariable ["ExAdVGVeh", []]; - if((count _vehList) > 0)then{ - _objId = (_vehList call BIS_fnc_selectRandom) select 0; - { - if((_x select 0) isEqualTo _objId)exitWith{ - _vehList deleteAt _forEachIndex; - } - }forEach _vehList; - _object setVariable ["ExAdVGVeh", _vehList, true]; - - _vehObj = _objId call ExileServer_object_vehicle_database_load; - _extDB2Message = ["loadVehFromVG", [_objId]] call ExileServer_util_extDB2_createMessage; - _extDB2Message call ExileServer_system_database_query_fireAndForget; - - _pos = getPosATL _vehObj; - _pos set [2, (_pos select 2) + 0.1]; - _vehObj setPosATL _pos; - _vehObj lock 0; - - _displayName = getText(ConfigFile >> "CfgVehicles" >> typeOf _vehObj >> "displayName"); - ["Hacking", format["Hack Successful: Territory - %1| Virtual Garage - %2(%3)",_flag getVariable ["ExileTerritoryName", "Unknown"], _displayName, _objId]] call ExAdServer_fnc_log; - - format[STR_ExAd_HACKING_NOTI_VG_SUCCESS, _displayName] - }else{ - ["Hacking", format["Hack Successful: Territory - %1| Virtual Garage - No Vehicle",_flag getVariable ["ExileTerritoryName", "Unknown"]]] call ExAdServer_fnc_log; - STR_ExAd_HACKING_NOTI_VG_NO_VEH - } - } - }else{ - ["Hacking", format["Hack Successful: Territory - %1| Safe(%2) opened",_flag getVariable ["ExileTerritoryName", "Unknown"], _object getVariable ["ExileDatabaseID", -1]]] call ExAdServer_fnc_log; - - _object setVariable ["ExileIsLocked",0,true]; - STR_ExAd_HACKING_NOTI_SAFE_SUCCESS - } - }else{ - if(_laptop getVariable ["ExAd_HACK_INTERUPTED",false])then{ - ["Hacking", format["Hack Interupted: Territory - %1",_flag getVariable ["ExileTerritoryName", "Unknown"]]] call ExAdServer_fnc_log; - STR_ExAd_HACKING_NOTI_INTERUPTED - }else{ - _destroy = true; - ["Hacking", format["Hack Failed: Territory - %1",_flag getVariable ["ExileTerritoryName", "Unknown"]]] call ExAdServer_fnc_log; - STR_ExAd_HACKING_NOTI_FAILED - } - }; - - if(_destroy)then{ - _laptop setDamage 1; - }else{ - private ["_holderPos","_holder"]; - _holderPos = getPosATL _laptop; - deleteVehicle _laptop; - _holder = createVehicle ["GroundWeaponHolder", _holderPos, [], 0, "CAN_COLLIDE"]; - _holder addMagazineCargoGlobal ["Exile_Item_Laptop", 1]; - }; - - { - if(((getPosATL _laptop) distance (getPosATL _x)) < ExAd_HACKING_MAX_DISTANCE)then{ - [_msg,0,0.6,2,0] remoteExec ["BIS_fnc_dynamicText", owner _x] - } - }forEach playableUnits; - - ExAd_HACKS_IN_PROGRESS = ExAd_HACKS_IN_PROGRESS - 1; - {deleteMarker _x}forEach _markers; -}; - -true From 06b5f4e737ca7d04905e52488f516530eb882c77 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:16:58 +0000 Subject: [PATCH 22/72] Delete fn_stopHack.sqf --- .../exad_hacking/Functions/fn_stopHack.sqf | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 @ExileServer/addons/exad_hacking/Functions/fn_stopHack.sqf diff --git a/@ExileServer/addons/exad_hacking/Functions/fn_stopHack.sqf b/@ExileServer/addons/exad_hacking/Functions/fn_stopHack.sqf deleted file mode 100644 index df24775..0000000 --- a/@ExileServer/addons/exad_hacking/Functions/fn_stopHack.sqf +++ /dev/null @@ -1,22 +0,0 @@ -/* - fn_stopHack.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -_object = objectFromNetId ([_this, 0, "",[""]] call BIS_fnc_param); - -_object setVariable ["ExAd_HACK_INTERUPTED",true]; - -true \ No newline at end of file From b05f3ebd519f8354647bf7a9f55b433f35484045 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:17:14 +0000 Subject: [PATCH 23/72] Delete $PREFIX$ --- @ExileServer/addons/exad_hacking/$PREFIX$ | 1 - 1 file changed, 1 deletion(-) delete mode 100644 @ExileServer/addons/exad_hacking/$PREFIX$ diff --git a/@ExileServer/addons/exad_hacking/$PREFIX$ b/@ExileServer/addons/exad_hacking/$PREFIX$ deleted file mode 100644 index b79d56b..0000000 --- a/@ExileServer/addons/exad_hacking/$PREFIX$ +++ /dev/null @@ -1 +0,0 @@ -exad_hacking \ No newline at end of file From 06a7b87978a22e0fc34afbfa4bd6668523767119 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:17:21 +0000 Subject: [PATCH 24/72] Delete PboPrefix.txt --- @ExileServer/addons/exad_hacking/PboPrefix.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 @ExileServer/addons/exad_hacking/PboPrefix.txt diff --git a/@ExileServer/addons/exad_hacking/PboPrefix.txt b/@ExileServer/addons/exad_hacking/PboPrefix.txt deleted file mode 100644 index b79d56b..0000000 --- a/@ExileServer/addons/exad_hacking/PboPrefix.txt +++ /dev/null @@ -1 +0,0 @@ -exad_hacking \ No newline at end of file From 1a122945c801adba0bd1c2cfd264fbb4102f7304 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:17:29 +0000 Subject: [PATCH 25/72] Delete config.cpp --- @ExileServer/addons/exad_hacking/config.cpp | 46 --------------------- 1 file changed, 46 deletions(-) delete mode 100644 @ExileServer/addons/exad_hacking/config.cpp diff --git a/@ExileServer/addons/exad_hacking/config.cpp b/@ExileServer/addons/exad_hacking/config.cpp deleted file mode 100644 index 4b851c1..0000000 --- a/@ExileServer/addons/exad_hacking/config.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/* - config.cpp - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -class CfgPatches { - class ExAd_Hacking { - requiredVersion = 0.1; - requiredAddons[] = {"ExAd_Core"}; - }; -}; - -class CfgFunctions { - class ExAdServer { - class Hacking { - file = "exad_hacking\Functions"; - class startHack {}; - class stopHack {}; - }; - }; -}; - -class CfgNetworkMessages -{ - class startHack - { - parameters[] = {"STRING","STRING"}; - }; - class stopHack - { - parameters[] = {"STRING"}; - }; -}; \ No newline at end of file From 86ead5defd206e755758e3d780c4325dcd6211ef Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:18:22 +0000 Subject: [PATCH 26/72] Delete fn_VGLoad.sqf --- .../addons/exad_vg/Functions/fn_VGLoad.sqf | 68 ------------------- 1 file changed, 68 deletions(-) delete mode 100644 @ExileServer/addons/exad_vg/Functions/fn_VGLoad.sqf diff --git a/@ExileServer/addons/exad_vg/Functions/fn_VGLoad.sqf b/@ExileServer/addons/exad_vg/Functions/fn_VGLoad.sqf deleted file mode 100644 index 20df0e0..0000000 --- a/@ExileServer/addons/exad_vg/Functions/fn_VGLoad.sqf +++ /dev/null @@ -1,68 +0,0 @@ -/* - fn_VGLoad.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -private ["_objVehNetId","_objVeh","_flagNetId","_flag","_objVehId","_flagId","_data","_extDB2Message","_vehList"]; - -_objId = [_this,0,"",[""]] call BIS_fnc_param; -_flagNetId = [_this,1,"",[""]] call BIS_fnc_param; -_playerNetId = [_this,2,"",[""]] call BIS_fnc_param; -_flag = objectFromNetId _flagNetId; -_player = objectFromNetId _playerNetId; -_requestFrom = owner _player; - -_proceed = false; -_vehList = _flag getVariable ["ExAdVGVeh", []]; - -{ - if((format["%1",_x select 0]) isEqualTo _objId)exitWith{ - _vehList deleteAt _forEachIndex; - _proceed = true; - } -}forEach _vehList; - -if(!_proceed)exitWith{[_owner, "toastRequest", ["ErrorTitleAndText", ["ExAd - Virtual Garage", STR_ExAd_VG_NOTI_NOT_AVAILABLE]]] call ExileServer_system_network_send_to}; - -_flag setVariable ["ExAdVGVeh", _vehList, true]; - -_vehObj = (parseNumber _objId) call ExileServer_object_vehicle_database_load; -_extDB2Message = ["loadVehFromVG", [parseNumber _objId]] call ExileServer_util_extDB2_createMessage; -_extDB2Message call ExileServer_system_database_query_fireAndForget; - -if(ExAd_VG_SHOW_ADVHINT)then{ - [["advancedHint", ["VGLoad",[_vehObj getVariable["ExileAccessCode",""]]]], _requestFrom] call ExAdServer_fnc_clientDispatch; -}; - -_pos = getPosATL _vehObj; -_pos set [2, (_pos select 2) + 0.1]; -_vehObj setPosATL _pos; - -if (ExAd_VG_GIVE_GM)then - { - _vehObj allowDamage false; - ["VirtualGarage", format["Spawned: Player - %1(%2)|Vehicle - %3(%4)|",name _player, getPlayerUID _player, typeOf _vehObj, _objId]] call ExAdServer_fnc_log; - - sleep ExAd_VG_GM_TIME; - - _vehObj allowDamage true; - } -else - { - ["VirtualGarage", format["Spawned: Player - %1(%2)|Vehicle - %3(%4)|",name _player, getPlayerUID _player, typeOf _vehObj, _objId]] call ExAdServer_fnc_log; - }; - -true From 7b23d55f6d363e93207a8cac4860cd075d78786a Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:18:29 +0000 Subject: [PATCH 27/72] Delete fn_VGStore.sqf --- .../addons/exad_vg/Functions/fn_VGStore.sqf | 67 ------------------- 1 file changed, 67 deletions(-) delete mode 100644 @ExileServer/addons/exad_vg/Functions/fn_VGStore.sqf diff --git a/@ExileServer/addons/exad_vg/Functions/fn_VGStore.sqf b/@ExileServer/addons/exad_vg/Functions/fn_VGStore.sqf deleted file mode 100644 index b529c75..0000000 --- a/@ExileServer/addons/exad_vg/Functions/fn_VGStore.sqf +++ /dev/null @@ -1,67 +0,0 @@ -/* - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -*/ - -private ["_objVehNetId","_objVeh","_flagNetId","_flag","_owner","_objVehId","_flagId","_data","_extDB2Message","_vehList"]; - -_objVehNetId = [_this,0,"",[""]] call BIS_fnc_param; -_objVeh = objectFromNetId _objVehNetId; -_flagNetId = [_this,1,"",[""]] call BIS_fnc_param; -_flag = objectFromNetId _flagNetId; -_owner = owner _objVeh; -_player = {if(owner _x == _owner)exitWith{_x}}forEach playableUnits; - -if!(_objVeh getVariable ["ExileIsPersistent", false])exitWith{[_owner, "toastRequest", ["ErrorTitleAndText", ["ExAd - Virtual Garage", STR_ExAd_VG_NOTI_NOT_PERSISTENT]]] call ExileServer_system_network_send_to;false}; - -if!(_objVeh setOwner 2)exitWith{format["Get out of the vehicle before storing it."] remoteExec ["hint", _owner]; false}; - -if!(isNil "ExAd_VG_CLEAN_ON_STORE")then{ - if(ExAd_VG_CLEAN_ON_STORE)then{ - clearBackpackCargoGlobal _objVeh; - clearItemCargoGlobal _objVeh; - clearMagazineCargoGlobal _objVeh; - clearWeaponCargoGlobal _objVeh; - _objVeh setVariable ["ExileMoney", 0, true]; - } -}; - -_objVeh call ExileServer_object_vehicle_database_update; - -_objVehId = _objVeh getVariable ["ExileDatabaseID",-1]; -_flagId = _flag getVariable ["ExileDatabaseID", -1]; - -if(_objVehId > -1 && _flagId > -1)then{ - ["VirtualGarage", format["Store: Player - %1(%2)|Vehicle - %3(%4)|Reset gear - %5",name _player, getPlayerUID _player, typeOf _objVeh, _objVehId, str ExAd_VG_CLEAN_ON_STORE]] call ExAdServer_fnc_log; - - _data = [_flagId, _objVehId]; - - _extDB2Message = ["loadVehToVG", _data] call ExileServer_util_extDB2_createMessage; - _extDB2Message call ExileServer_system_database_query_fireAndForget; - - _objVeh call ExileServer_system_vehicleSaveQueue_removeVehicle; - _objVeh call ExileServer_system_simulationMonitor_removeVehicle; - deleteVehicle _objVeh; - - _vehList = _flag getVariable ["ExAdVGVeh", []]; - _vehList pushBack [_objVehId, typeOf _objVeh]; - _flag setVariable ["ExAdVGVeh", _vehList, true]; - - if(ExAd_VG_SHOW_ADVHINT)then{ - [["advancedHint", ["VGStore",[]]], _owner] call ExAdServer_fnc_clientDispatch; - }; -}; - -true \ No newline at end of file From 700487f832bbae8188d7589eb5cdcc8eac4e7ebd Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:18:36 +0000 Subject: [PATCH 28/72] Delete fn_requestVGDetailInfo.sqf --- .../Functions/fn_requestVGDetailInfo.sqf | 46 ------------------- 1 file changed, 46 deletions(-) delete mode 100644 @ExileServer/addons/exad_vg/Functions/fn_requestVGDetailInfo.sqf diff --git a/@ExileServer/addons/exad_vg/Functions/fn_requestVGDetailInfo.sqf b/@ExileServer/addons/exad_vg/Functions/fn_requestVGDetailInfo.sqf deleted file mode 100644 index 406ebe0..0000000 --- a/@ExileServer/addons/exad_vg/Functions/fn_requestVGDetailInfo.sqf +++ /dev/null @@ -1,46 +0,0 @@ -/* - fn_requestVGDetailInfo.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -private ["_objVehNetId","_objVeh","_flagNetId","_flag","_objVehId","_flagId","_data","_extDB2Message","_vehList"]; - -_objId = [_this,0,"",[""]] call BIS_fnc_param; -_flagNetId = [_this,1,"",[""]] call BIS_fnc_param; -_streamFriendlyUI = [_this,2,0,[0]] call BIS_fnc_param; -_playerNetId = [_this,3,"",[""]] call BIS_fnc_param; -_ctrl = [_this,4,-1,[0]] call BIS_fnc_param; -_flag = objectFromNetId _flagNetId; -_requestFrom = owner (objectFromNetId _playerNetId); - -_data = format ["loadVehicle:%1", _objId] call ExileServer_system_database_query_selectSingle; - -if(count _data > 0)then{ - _displayName = getText(ConfigFile >> "CfgVehicles" >> (_data select 1) >> "displayName"); - _pinCode = if(_streamFriendlyUI == 0)then{_data select 20}else{"XXXX"}; - _fuel = _data select 5; - _damage = _data select 6; - _texture = _data select 21; - _items = _data select 17; - _magazines = _data select 18; - _weapons = _data select 19; - - _text = format[STR_ExAd_VG_APP_DETAILS, "
", _displayName, _pinCode, _fuel, _damage, _texture, _items, _magazines, _weapons]; - - [_text,_ctrl] remoteExec ["ExAd_fnc_loadVGDetailView", _requestFrom]; -}; - -true \ No newline at end of file From 8c905b8b471ae2bae91939d9d4debb791875069b Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:18:42 +0000 Subject: [PATCH 29/72] Delete $PREFIX$ --- @ExileServer/addons/exad_vg/$PREFIX$ | 1 - 1 file changed, 1 deletion(-) delete mode 100644 @ExileServer/addons/exad_vg/$PREFIX$ diff --git a/@ExileServer/addons/exad_vg/$PREFIX$ b/@ExileServer/addons/exad_vg/$PREFIX$ deleted file mode 100644 index a9c6ae5..0000000 --- a/@ExileServer/addons/exad_vg/$PREFIX$ +++ /dev/null @@ -1 +0,0 @@ -exad_vg \ No newline at end of file From 8096c969a2cba7d4e5f2a1712d4e69970aaaafc7 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:18:48 +0000 Subject: [PATCH 30/72] Delete PboPrefix.txt --- @ExileServer/addons/exad_vg/PboPrefix.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 @ExileServer/addons/exad_vg/PboPrefix.txt diff --git a/@ExileServer/addons/exad_vg/PboPrefix.txt b/@ExileServer/addons/exad_vg/PboPrefix.txt deleted file mode 100644 index a9c6ae5..0000000 --- a/@ExileServer/addons/exad_vg/PboPrefix.txt +++ /dev/null @@ -1 +0,0 @@ -exad_vg \ No newline at end of file From 1f1ad99825030757b5ae7246dccfada4395c37e6 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:18:55 +0000 Subject: [PATCH 31/72] Delete config.cpp --- @ExileServer/addons/exad_vg/config.cpp | 51 -------------------------- 1 file changed, 51 deletions(-) delete mode 100644 @ExileServer/addons/exad_vg/config.cpp diff --git a/@ExileServer/addons/exad_vg/config.cpp b/@ExileServer/addons/exad_vg/config.cpp deleted file mode 100644 index 664493b..0000000 --- a/@ExileServer/addons/exad_vg/config.cpp +++ /dev/null @@ -1,51 +0,0 @@ -/* - config.cpp - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -class CfgPatches { - class ExAd_VG { - requiredVersion = 0.1; - requiredAddons[] = {"ExAd_Core"}; - }; -}; - -class CfgFunctions { - class ExAdServer { - class VG { - file = "exad_vg\Functions"; - class requestVGDetailInfo {}; - class VGLoad {}; - class VGStore {}; - }; - }; -}; - -class CfgNetworkMessages -{ - class VGStore - { - parameters[] = {"STRING","STRING","STRING"}; - }; - class VGLoad - { - parameters[] = {"STRING","STRING","STRING"}; - }; - class requestVGDetailInfo - { - parameters[] = {"STRING","STRING","SCALAR","STRING","SCALAR"}; - }; -}; \ No newline at end of file From 29f802375986ac188acb11977709c7a2df196dee Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:25:28 +0000 Subject: [PATCH 33/72] Delete fn_canGrindLock.sqf --- .../Grinding/Functions/fn_canGrindLock.sqf | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/Grinding/Functions/fn_canGrindLock.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/Grinding/Functions/fn_canGrindLock.sqf b/mpmissions/Exile.Altis/ExAdClient/Grinding/Functions/fn_canGrindLock.sqf deleted file mode 100644 index 3d44aac..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/Grinding/Functions/fn_canGrindLock.sqf +++ /dev/null @@ -1,19 +0,0 @@ -/* - fn_canGrindLock.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -(((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo -1) && !ExAd_GRINDING && ('Exile_Item_Grinder' in (magazines player))) \ No newline at end of file From 62f9055c6a06a1d38362275748dd5187407825bf Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:25:35 +0000 Subject: [PATCH 34/72] Delete fn_canRestoreLock.sqf --- .../Grinding/Functions/fn_canRestoreLock.sqf | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/Grinding/Functions/fn_canRestoreLock.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/Grinding/Functions/fn_canRestoreLock.sqf b/mpmissions/Exile.Altis/ExAdClient/Grinding/Functions/fn_canRestoreLock.sqf deleted file mode 100644 index 694cb6b..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/Grinding/Functions/fn_canRestoreLock.sqf +++ /dev/null @@ -1,19 +0,0 @@ -/* - fn_canRestoreLock.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -(('Exile_Item_Codelock' in (magazines player)) && (ExileClientInteractionObject getVariable ['ExAd_Grinding_progress', 0] > 0) && (ExileClientInteractionObject getVariable ['ExAd_Grinding_progress', 0] < ExAd_GRINDING_OBJECT_MAX)) \ No newline at end of file From 04d170f42e6137bf82d772107f1072f24dd1f058 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:25:44 +0000 Subject: [PATCH 35/72] Delete fn_grindLock.sqf --- .../Grinding/Functions/fn_grindLock.sqf | 105 ------------------ 1 file changed, 105 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/Grinding/Functions/fn_grindLock.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/Grinding/Functions/fn_grindLock.sqf b/mpmissions/Exile.Altis/ExAdClient/Grinding/Functions/fn_grindLock.sqf deleted file mode 100644 index ec341e4..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/Grinding/Functions/fn_grindLock.sqf +++ /dev/null @@ -1,105 +0,0 @@ -/* - fn_grindLock.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -private ["_soundSrc","_ticker"]; - -if(vehicle player != player)exitWith{false}; - -ExAd_GRINDING_OBJECT = _this select 0; -ExAd_GRINDING = true; - -{ - ExileClientInteractionObject removeAction _x; -} -forEach ExileClientInteractionHandles; - -if(isClass(configFile >> "CfgVehicles" >> "Sound_Factory10")) then { - _soundSrc = createSoundSource ["Sound_Factory10", position ExAd_GRINDING_OBJECT, [], 0]; -}; -player playActionNow "medicStart"; - -ExAd_DRAW3D_HANDLER = addMissionEventHandler ["Draw3D", { - private ["_object","_progress"]; - - _height = ExAd_GRINDING_PROGRESSBAR_POS; - - _object = if(isNil "ExAd_GRINDING_OBJECT")then{ExileClientInteractionObject}else{ExAd_GRINDING_OBJECT}; - _progress = 1 min ((_object getVariable ["ExAd_Grinding_progress", 1]) / ExAd_GRINDING_OBJECT_MAX); - - drawLine3D [_object modelToWorld [-0.5, -0.15, _height], _object modelToWorld [0.5, -0.15, _height], [0,0,0,1]]; - drawLine3D [_object modelToWorld [-0.5, -0.15, _height - 0.05], _object modelToWorld [0.5, -0.15, _height - 0.05], [0,0,0,1]]; - drawLine3D [_object modelToWorld [-0.5, 0.15, _height], _object modelToWorld [0.5, 0.15, _height], [0,0,0,1]]; - drawLine3D [_object modelToWorld [-0.5, 0.15, _height - 0.05], _object modelToWorld [0.5, 0.15, _height - 0.05], [0,0,0,1]]; - - drawLine3D [_object modelToWorld [-0.5, -0.15, _height], _object modelToWorld [-0.5, -0.15, _height - 0.05], [0,0,0,1]]; - drawLine3D [_object modelToWorld [0.5, -0.15, _height], _object modelToWorld [0.5, -0.15, _height - 0.05], [0,0,0,1]]; - drawLine3D [_object modelToWorld [-0.5, 0.15, _height], _object modelToWorld [-0.5, 0.15, _height - 0.05], [0,0,0,1]]; - drawLine3D [_object modelToWorld [0.5, -0.15, _height], _object modelToWorld [0.5, -0.15, _height - 0.05], [0,0,0,1]]; - - for "_i" from 1 to 49 do { - drawLine3D [_object modelToWorld [-0.5, -0.15, _height - (0.001 * _i)], _object modelToWorld [((-0.5) + _progress), -0.15, _height - (0.001 * _i)], [1,0.482,0,1]]; - drawLine3D [_object modelToWorld [0.5, 0.15, _height - (0.001 * _i)], _object modelToWorld [((0.5) - _progress), 0.15, _height - (0.001 * _i)], [1,0.482,0,1]]; - - drawLine3D [_object modelToWorld [0.5, -0.15, _height - (0.001 * _i)], _object modelToWorld [((-0.5) + _progress), -0.15, _height - (0.001 * _i)], [0.55,0.55,0.55,1]]; - drawLine3D [_object modelToWorld [-0.5, 0.15, _height - (0.001 * _i)], _object modelToWorld [((0.5) - _progress), 0.15, _height - (0.001 * _i)], [0.55,0.55,0.55,1]]; - } -}]; - -_ticker = 1; -while{(ExAd_GRINDING_OBJECT == ExileClientInteractionObject) && ExAd_GRINDING}do{ - UISleep 1; - - if(random[0,50,100] < 1)exitWith{ - player removeItem "Exile_Item_Grinder"; - ["ErrorTitleAndText", ["ExAd - Grinding", STR_ExAd_GRINDING_NOTI_BROKE]] call ExileClient_gui_toaster_addTemplateToast; - false - }; - - if!("Exile_Magazine_Battery" in (magazines player))exitWith{ - ["ErrorTitleAndText", ["ExAd - Grinding", STR_ExAd_GRINDING_NOTI_EMPTY_BAT]] call ExileClient_gui_toaster_addTemplateToast; - false - }; - - if((_ticker % ExAd_GRINDING_PROGRESS_INTERVALL) == 0)then{ - player removeItem "Exile_Magazine_Battery"; - - ["grindProgress", [netId ExAd_GRINDING_OBJECT]] call ExAd_fnc_serverDispatch; - ["SuccessTitleAndText", ["ExAd - Grinding", STR_ExAd_GRINDING_NOTI_PROGRESS]] call ExileClient_gui_toaster_addTemplateToast; - - player playActionNow "medicStart"; - }; - - if(ExAd_GRINDING_OBJECT getVariable ["ExAd_Grinding_progress", 0] > ExAd_GRINDING_OBJECT_MAX)exitWith{ - UISleep 2; - ["SuccessTitleAndText", ["ExAd - Grinding", STR_ExAd_GRINDING_NOTI_FINISHED]] call ExileClient_gui_toaster_addTemplateToast; - ["grindProgress", [netId ExAd_GRINDING_OBJECT]] call ExAd_fnc_serverDispatch; - }; - _ticker = _ticker + 1; -}; - -if(isClass(configFile >> "CfgVehicles" >> "Sound_Factory10")) then { - deleteVehicle _soundSrc; -}; - -player playActionNow "medicStop"; -removeMissionEventHandler ["Draw3D",ExAd_DRAW3D_HANDLER]; - -ExAd_GRINDING_OBJECT = nil; -ExAd_GRINDING = false; -call ExileClient_gui_interactionMenu_unhook; - -true \ No newline at end of file From fc6a4bdc4df19f007c2bd2029aaf6fe1db839767 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:25:57 +0000 Subject: [PATCH 36/72] Delete fn_restoreLock.sqf --- .../Grinding/Functions/fn_restoreLock.sqf | 33 ------------------- 1 file changed, 33 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/Grinding/Functions/fn_restoreLock.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/Grinding/Functions/fn_restoreLock.sqf b/mpmissions/Exile.Altis/ExAdClient/Grinding/Functions/fn_restoreLock.sqf deleted file mode 100644 index c53b564..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/Grinding/Functions/fn_restoreLock.sqf +++ /dev/null @@ -1,33 +0,0 @@ -/* - fn_restoreLock.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -params["_object"]; - -if(vehicle player != player)exitWith{false}; - -call ExileClient_gui_interactionMenu_unhook; -player playActionNow "medic"; - -UISleep 5; -player removeItem "Exile_Item_Codelock"; -["SuccessTitleAndText", ["ExAd - Grinding", STR_ExAd_GRINDING_NOTI_RESTORED]] call ExileClient_gui_toaster_addTemplateToast; - -["restoreLock", [netId _object]] call ExAd_fnc_serverDispatch; - -call ExileClient_gui_interactionMenu_unhook; - -true \ No newline at end of file From 024fcd3babc263013dabe746b5991dcea67de00d Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:26:35 +0000 Subject: [PATCH 37/72] Delete CfgFunctions.cpp --- .../ExAdClient/Grinding/CfgFunctions.cpp | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/Grinding/CfgFunctions.cpp diff --git a/mpmissions/Exile.Altis/ExAdClient/Grinding/CfgFunctions.cpp b/mpmissions/Exile.Altis/ExAdClient/Grinding/CfgFunctions.cpp deleted file mode 100644 index aefaef1..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/Grinding/CfgFunctions.cpp +++ /dev/null @@ -1,28 +0,0 @@ -/* - CfgFunctions.cpp - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - - -class Grinding -{ - file = "ExAdClient\Grinding\Functions"; - class canGrindLock {}; - class canRestoreLock {}; - class grindLock {}; - class restoreLock {}; - class postInitGrinding {file = "ExAdClient\Grinding\postInit.sqf"; postInit = 1;}; -}; \ No newline at end of file From df2782ce1bc945f3c89a618cec593de5b34e0e3c Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:26:43 +0000 Subject: [PATCH 38/72] Delete customize.sqf --- .../ExAdClient/Grinding/customize.sqf | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/Grinding/customize.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/Grinding/customize.sqf b/mpmissions/Exile.Altis/ExAdClient/Grinding/customize.sqf deleted file mode 100644 index 14adcbc..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/Grinding/customize.sqf +++ /dev/null @@ -1,29 +0,0 @@ -/* - customize.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -ExAd_GRINDING_PROGRESS_INTERVALL = 5; //SCALAR - Grinding, interval time measured in seconds. - -ExAd_GRINDING_PROGRESS = 30; //SCALAR - Damage each finished interval will take from the code lock. - -ExAd_GRINDING_OBJECT_MAX = 300; //SCALAR - Code lock sustainability. - -ExAd_GRINDING_PROGRESSBAR_POS = "Mid"; //SCALAR/STRING - You can use values between 0.3-2 or using "LOW"|"MID"|"HIGH" - -/* -The default values above means that a full succesful grind will take (900 / 30) * 60 = 1800 = 20 minutes -*/ \ No newline at end of file From 775a89c1695d17eff374222b852ebd78529cade4 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:26:56 +0000 Subject: [PATCH 39/72] Delete postInit.sqf --- .../ExAdClient/Grinding/postInit.sqf | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/Grinding/postInit.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/Grinding/postInit.sqf b/mpmissions/Exile.Altis/ExAdClient/Grinding/postInit.sqf deleted file mode 100644 index f9d8f77..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/Grinding/postInit.sqf +++ /dev/null @@ -1,47 +0,0 @@ -/* - postInit.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -_path = "ExAdClient\Grinding\customize.sqf"; -call compile preprocessFileLineNumbers _path; - -if(isNil "ExAd_GRINDING_PROGRESS_INTERVALL")then{ExAd_GRINDING_PROGRESS_INTERVALL = 60;}; -if(isNil "ExAd_GRINDING_PROGRESS")then{ExAd_GRINDING_PROGRESS = 30;}; -if(isNil "ExAd_GRINDING_OBJECT_MAX")then{ExAd_GRINDING_OBJECT_MAX = 900;}; - -ExAd_GRINDING = false; - -["STR_ExAd_GRINDING_NOTI_BROKE", "Your grinder broke, get a new one before you can continue."] call ExAd_fnc_localize; -["STR_ExAd_GRINDING_NOTI_EMPTY_BAT", "Find some batteries to get the grinder to work."] call ExAd_fnc_localize; -["STR_ExAd_GRINDING_NOTI_PROGRESS", "Your grinder broke, get a new one before you can continue."] call ExAd_fnc_localize; -["STR_ExAd_GRINDING_NOTI_FINISHED", "You have broken the code lock."] call ExAd_fnc_localize; -["STR_ExAd_GRINDING_NOTI_RESTORED", "You've changed the look"] call ExAd_fnc_localize; - -ExAd_GRINDING_PROGRESSBAR_POS = if!(isNil "ExAd_GRINDING_PROGRESSBAR_POS")then{ - if(typeName ExAd_GRINDING_PROGRESSBAR_POS isEqualTo "SCALAR")then{ - ((2 min ExAd_GRINDING_PROGRESSBAR_POS) max 0.3) - }else{ - if(typeName ExAd_GRINDING_PROGRESSBAR_POS isEqualTo "STRING")then{ - switch (toLower ExAd_GRINDING_PROGRESSBAR_POS) do { - case "low": {0.3}; - case "mid": {1}; - case "high": {1.8}; - default {1}; - } - } else {1} - } -}else{1}; \ No newline at end of file From 3ff3ad38e2aee6f8338bb9668fdd8826f679cd5c Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:27:10 +0000 Subject: [PATCH 40/72] Delete fn_canHackSafe.sqf --- .../Hacking/Functions/fn_canHackSafe.sqf | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/Hacking/Functions/fn_canHackSafe.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/Hacking/Functions/fn_canHackSafe.sqf b/mpmissions/Exile.Altis/ExAdClient/Hacking/Functions/fn_canHackSafe.sqf deleted file mode 100644 index 764cf96..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/Hacking/Functions/fn_canHackSafe.sqf +++ /dev/null @@ -1,18 +0,0 @@ -/* - fn_canHackSafe.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -(('Exile_Item_Laptop' in (magazines player)) && ((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo -1) && (({alive _x}count allPlayers) >= ExAd_HACKING_MIN_PLAYERS_ONLINE)) \ No newline at end of file From f6fc9708c7a1b5f804f844c1f8bdaf7a068a63bd Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:27:18 +0000 Subject: [PATCH 41/72] Delete fn_canHackVG.sqf --- .../Hacking/Functions/fn_canHackVG.sqf | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/Hacking/Functions/fn_canHackVG.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/Hacking/Functions/fn_canHackVG.sqf b/mpmissions/Exile.Altis/ExAdClient/Hacking/Functions/fn_canHackVG.sqf deleted file mode 100644 index 3e3e881..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/Hacking/Functions/fn_canHackVG.sqf +++ /dev/null @@ -1,18 +0,0 @@ -/* - fn_canHackVG.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -(('Exile_Item_Laptop' in (magazines player)) && ((([ExileClientInteractionObject, getPlayerUID player] call ExileClient_util_territory_getAccessLevel) select 0) < ExAd_VG_ACCESS_LEVEL) && (({alive _x}count allPlayers) >= ExAd_HACKING_MIN_PLAYERS_ONLINE)) \ No newline at end of file From d1508c6a566f44881776dccc01de412eb8b11cf9 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:27:27 +0000 Subject: [PATCH 42/72] Delete fn_startHack.sqf --- .../Hacking/Functions/fn_startHack.sqf | 21 ------------------- 1 file changed, 21 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/Hacking/Functions/fn_startHack.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/Hacking/Functions/fn_startHack.sqf b/mpmissions/Exile.Altis/ExAdClient/Hacking/Functions/fn_startHack.sqf deleted file mode 100644 index 0739f3e..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/Hacking/Functions/fn_startHack.sqf +++ /dev/null @@ -1,21 +0,0 @@ -/* - fn_startHack.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -player playActionNow "SitDown"; - -["startHack", [netId (_this select 0), netId player]] call ExAd_fnc_serverDispatch; \ No newline at end of file From bfaf4c1d461663c767366b535ce5713c4593902b Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:27:37 +0000 Subject: [PATCH 43/72] Delete fn_stopHack.sqf --- .../Hacking/Functions/fn_stopHack.sqf | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/Hacking/Functions/fn_stopHack.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/Hacking/Functions/fn_stopHack.sqf b/mpmissions/Exile.Altis/ExAdClient/Hacking/Functions/fn_stopHack.sqf deleted file mode 100644 index da199c2..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/Hacking/Functions/fn_stopHack.sqf +++ /dev/null @@ -1,18 +0,0 @@ -/* - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -*/ - -["stopHack", [netId (_this select 0)]] call ExAd_fnc_serverDispatch; \ No newline at end of file From 6afcf5b07a3cdd41d40f6a05c93e7999886ef256 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:28:08 +0000 Subject: [PATCH 44/72] Delete CfgFunctions.cpp --- .../ExAdClient/Hacking/CfgFunctions.cpp | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/Hacking/CfgFunctions.cpp diff --git a/mpmissions/Exile.Altis/ExAdClient/Hacking/CfgFunctions.cpp b/mpmissions/Exile.Altis/ExAdClient/Hacking/CfgFunctions.cpp deleted file mode 100644 index c2fe63c..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/Hacking/CfgFunctions.cpp +++ /dev/null @@ -1,28 +0,0 @@ -/* - CfgFunctions.cpp - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - - -class Hacking -{ - file = "ExAdClient\Hacking\Functions"; - class canHackSafe {}; - class canHackVG {}; - class startHack {}; - class stopHack {}; - class postInitHacking {file = "ExAdClient\Hacking\postInit.sqf"; postInit = 1;}; -}; \ No newline at end of file From e27f50d1f896409da9e244eca952a7153b3f9d83 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:28:14 +0000 Subject: [PATCH 45/72] Delete customize.sqf --- .../ExAdClient/Hacking/customize.sqf | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/Hacking/customize.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/Hacking/customize.sqf b/mpmissions/Exile.Altis/ExAdClient/Hacking/customize.sqf deleted file mode 100644 index 4eb4a6c..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/Hacking/customize.sqf +++ /dev/null @@ -1,35 +0,0 @@ -/* - customize.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -ExAd_HACKING_MIN_PLAYERS_ONLINE = 30; //SCALAR - Minimun allowed players online to initalize a hack. - -ExAd_HACKING_ALLOWED_HACKS = 1; //SCALAR - Simultaneous hacks allowed. - -ExAd_HACKING_MAX_TIME = 1200; //SCALAR - Time to complete a hack - -ExAd_HACKING_MAX_DISTANCE = 50; //SCALAR - Maximum distance away from the object being hack players for the hack to proceed. - -ExAd_HACKING_TERRITORY_MAX = 3; //SCALAR - Maximun times a territory can get hacked before a new restart. - -ExAd_HACKING_MARKER_COLOR = "ColorOrange"; //STRING - What color should the map marker have. - -ExAd_HACKING_MARKER_TITLE = "Hacker activity"; //STRING - What title should the map marker have. - -ExAd_HACKING_FAILED_HACK = 0.15; //SCALAR - 0-1 The possability for the hack to fail once finished. - -ExAd_HACKING_PLAYER_ONLINE = false; //BOLLEAN - True if a player with build permissions for a base needs to be online for a hack to be possible. \ No newline at end of file From 781206eab5fae5794e10a999ed7992d8b0916e0f Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:28:21 +0000 Subject: [PATCH 46/72] Delete postInit.sqf --- .../ExAdClient/Hacking/postInit.sqf | 46 ------------------- 1 file changed, 46 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/Hacking/postInit.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/Hacking/postInit.sqf b/mpmissions/Exile.Altis/ExAdClient/Hacking/postInit.sqf deleted file mode 100644 index 11e09c6..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/Hacking/postInit.sqf +++ /dev/null @@ -1,46 +0,0 @@ -/* - postInit.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -*/ - -_path = "ExAdClient\Hacking\customize.sqf"; -call compile preprocessFileLineNumbers _path; - -if(isNil "ExAd_HACKING_MIN_PLAYERS_ONLINE")then{ExAd_HACKING_MIN_PLAYERS_ONLINE = 30;}; -if(isNil "ExAd_HACKING_ALLOWED_HACKS")then{ExAd_HACKING_ALLOWED_HACKS = 1;}; -if(isNil "ExAd_HACKING_MAX_TIME")then{ExAd_HACKING_MAX_TIME = 1200;}; -if(isNil "ExAd_HACKING_MAX_DISTANCE")then{ExAd_HACKING_MAX_DISTANCE = 50;}; -if(isNil "ExAd_HACKING_TERRITORY_MAX")then{ExAd_HACKING_TERRITORY_MAX = 3;}; -if(isNil "ExAd_HACKING_MARKER_COLOR")then{ExAd_HACKING_MARKER_COLOR = "ColorOrange";}; -if(isNil "ExAd_HACKING_MARKER_TITLE")then{ExAd_HACKING_MARKER_TITLE = "Hacker activity";}; -if(isNil "ExAd_HACKING_FAILED_HACK")then{ExAd_HACKING_FAILED_HACK = 0.15;}; - -if(isNil "ExAd_VG_ACCESS_LEVEL")then{ExAd_VG_ACCESS_LEVEL = 1;}; - -if(isNil "ExAd_HACKING_FAILED_HACK")then{ExAd_VG_ACCESS_LEVEL = 1;}; /*Needs to be here if peolpe don't use the VirtualGarage*/ - -["STR_ExAd_HACKING_NOTI_MAX_TERRITORY_HACKS_REACHED", "Connection failed! Territory Wi-Fi is down!"] call ExAd_fnc_localize; -["STR_ExAd_HACKING_NOTI_TERRITORY_ONE_HACK", "Wi-Fi occupied!!"] call ExAd_fnc_localize; -["STR_ExAd_HACKING_NOTI_MAX_SIM_HACKS", "The laptop overloaded and got destroyed! Another hacker is already using the grid."] call ExAd_fnc_localize; -["STR_ExAd_HACKING_NOTI_NO_PLAYER_PRESENT", "No Wi-Fi available!"] call ExAd_fnc_localize; -["STR_ExAd_HACKING_HINT_TITLE", "Hack Activity"] call ExAd_fnc_localize; -["STR_ExAd_HACKING_HINT_HACK_START", "A brute force hack is detected on the grid!"] call ExAd_fnc_localize; -["STR_ExAd_HACKING_NOTI_VG_SUCCESS", "Hack successful! The Virtual Garage unloaded a %1"] call ExAd_fnc_localize; -["STR_ExAd_HACKING_NOTI_VG_NO_VEH", "Hack successful! No vehicles were stored in the Virtual Garage."] call ExAd_fnc_localize; -["STR_ExAd_HACKING_NOTI_SAFE_SUCCESS", "Hack successful! The safe is now unlocked."] call ExAd_fnc_localize; -["STR_ExAd_HACKING_NOTI_INTERUPTED", "Hack has been interupted"] call ExAd_fnc_localize; -["STR_ExAd_HACKING_NOTI_FAILED", "Hack failed! Circuits overloaded!"] call ExAd_fnc_localize; From e416577f5f3110337fcf681d683c9902c1b99892 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:28:32 +0000 Subject: [PATCH 47/72] Delete CfgFunctions.cpp --- .../ExAdClient/VirtualGarage/CfgFunctions.cpp | 30 ------------------- 1 file changed, 30 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/VirtualGarage/CfgFunctions.cpp diff --git a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/CfgFunctions.cpp b/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/CfgFunctions.cpp deleted file mode 100644 index e8cb588..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/CfgFunctions.cpp +++ /dev/null @@ -1,30 +0,0 @@ -/* - CfgFunctions.cpp - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - - -class VirtualGarage -{ - file = "ExAdClient\VirtualGarage\Functions"; - class allowedVGVeh {}; - class allowVGStore {}; - class fillVGList {}; - class loadVGContent {}; - class loadVGDetailView {}; - class onBtnClickVG {}; - class postInitVG {file = "ExAdClient\VirtualGarage\postInit.sqf"; postInit = 1;}; -}; \ No newline at end of file From 281cebaa83793568c9cc4f9ce79a90da659edcf3 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:28:40 +0000 Subject: [PATCH 48/72] Delete CfgHints.cpp --- .../ExAdClient/VirtualGarage/CfgHints.cpp | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/VirtualGarage/CfgHints.cpp diff --git a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/CfgHints.cpp b/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/CfgHints.cpp deleted file mode 100644 index 148bf97..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/CfgHints.cpp +++ /dev/null @@ -1,38 +0,0 @@ -/* - CfgHints.cpp - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -class VGStore -{ - displayName = "Vehicle stored"; - /*displayNameShort = "Your vehicle has been stored and is available through the Virtual Garage interface";*/ - description = "Your vehicle has been stored and is only available through the territory it has been stored at. "; - image = "ExAdClient\Core\Img\logo.paa"; - noImage = false; - tip = ""; - arguments[] = {}; -}; -class VGLoad -{ - displayName = "Vehicle loaded to world"; - description = "%1Your vehicle has been loaded to the world, the pin code is %11"; - image = "ExAdClient\Core\Img\logo.paa"; - noImage = false; - tip = ""; - arguments[] = {"VGLoad select 0"}; - parameters[] = {"STRING"}; -}; \ No newline at end of file From 943d51131b818db863dc6612fff6ca7308ca787a Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:28:49 +0000 Subject: [PATCH 49/72] Delete customize.sqf --- .../ExAdClient/VirtualGarage/customize.sqf | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/VirtualGarage/customize.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/customize.sqf b/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/customize.sqf deleted file mode 100644 index 15a90df..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/customize.sqf +++ /dev/null @@ -1,35 +0,0 @@ -/* - customize.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -ExAd_VG_MIN_ALLOWED_VEH = 5; //SCALAR - Minimun allowed vehicles in the virtual garage. - -ExAd_VG_ALLOWED_VEH_MULTIPLE_FACTOR = 3;//SCALAR - How many extra vehicle slots for each territory level. - -ExAd_VG_ACCESS_LEVEL = 1; //SCALAR - Lowest level that can access the Virtual Garage --> 1|2|3 -> Pleb|Moderator|Owner. - -ExAd_VG_CLEAN_ON_STORE = true; //BOOLEAN - If vehicle inventory should reset when stored. - -ExAd_VG_SHOW_ADVHINT = false; //BOOLEAN - If the virtual garage should display an Advanced hint upon store and fetch. - -ExAd_STOP_COMBAT_STORING = true; //BOOLEAN - If set to true players cannot store vehicles while they are in combat. Prevents combat storing. - -ExAd_VG_GIVE_GM = false; //BOOLEAN - If set to true, vehicles spawned from the VG will have Godmode enabled on them. - -ExAd_VG_GM_TIME = 20; //SCALAR - Time for vehicles to have Godmode enabled in seconds (Will be ingored if ExAd_VG_GIVE_GODMODE = false) - -ExAd_VG_ALLOWED_VEH_TYPE = ["Car","Tank","Plane","Air","Ship","Submarine"];//ARRAY - Array with allowed vehicle types for the virtual garage. | "Car", "Tank", "Helicopter", "Plane" or "Air" for both WARNING DON'T USE "LandVehicle" Can crash the Exile system. From 67b0efcc2cefc95a742a839f66993a745db9466f Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:28:57 +0000 Subject: [PATCH 50/72] Delete postInit.sqf --- .../ExAdClient/VirtualGarage/postInit.sqf | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/VirtualGarage/postInit.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/postInit.sqf b/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/postInit.sqf deleted file mode 100644 index 366e439..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/postInit.sqf +++ /dev/null @@ -1,44 +0,0 @@ -/* - postInit.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -*/ - -_path = "ExAdClient\VirtualGarage\customize.sqf"; -call compile preprocessFileLineNumbers _path; - -if(isNil "ExAd_VG_MIN_ALLOWED_VEH")then{ExAd_VG_MIN_ALLOWED_VEH = 5;}; -if(isNil "ExAd_VG_ALLOWED_VEH_MULTIPLE_FACTOR")then{ExAd_VG_ALLOWED_VEH_MULTIPLE_FACTOR = 3;}; -if(isNil "ExAd_VG_ACCESS_LEVEL")then{ExAd_VG_ACCESS_LEVEL = 1;}; -if(isNil "ExAd_VG_CLEAN_ON_STORE")then{ExAd_VG_CLEAN_ON_STORE = true;}; -if(isNil "ExAd_VG_SHOW_ADVHINT")then{ExAd_VG_SHOW_ADVHINT = false;}; -if(isNil "ExAd_STOP_COMBAT_STORING")then{ExAd_STOP_COMBAT_STORING = true;}; -if(isNil "ExAd_VG_GIVE_GM")then{ExAd_VG_GIVE_GM = false;}; -if(isNil "ExAd_VG_GM_TIME")then{ExAd_VG_GM_TIME = 20;}; -if(isNil "ExAd_VG_ALLOWED_VEH_TYPE")then{ExAd_VG_ALLOWED_VEH_TYPE = ["Car","Tank","Plane","Air","Ship","Submarine"];}; - -["STR_ExAd_VG_NOTI_FULL", "The garage is full"] call ExAd_fnc_localize; -["STR_ExAd_VG_NOTI_NOT_PERSISTENT", "You can only store pincode protected vehicles into the garage!"] call ExAd_fnc_localize; -["STR_ExAd_VG_NOTI_NOT_AVAILABLE", "The vehicle is not available anymore!"] call ExAd_fnc_localize; - -["STR_ExAd_VG_APP_DETAILS", "%2 %1Pin code: %3 %1Fuel: %4 %1Damage: %5 %1Texture: %6 %1Items: %7 %1Magazines: %8 %1Weapons: %9"] call ExAd_fnc_localize; -["STR_ExAd_VG_APP_BTN_BACK", "Go Back"] call ExAd_fnc_localize; -["STR_ExAd_VG_APP_BTN_FETCH", "Fetch"] call ExAd_fnc_localize; -["STR_ExAd_VG_APP_BTN_STORE", "Store"] call ExAd_fnc_localize; -["STR_ExAd_VG_APP_TTL_STORED", "Stored"] call ExAd_fnc_localize; -["STR_ExAd_VG_APP_TTL_DETAILS", "Stored Vehicle Details"] call ExAd_fnc_localize; -["STR_ExAd_VG_APP_TTL_NEAR", "In Radius"] call ExAd_fnc_localize; -["STR_ExAd_VG_APP_CB_SECRET", "Stream friendly UI"] call ExAd_fnc_localize; From 5895f6903493eeeb56a19e3e6ba6e8bbda98264d Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:29:07 +0000 Subject: [PATCH 51/72] Delete ExileServer_system_territory_database_load.sqf --- ...eServer_system_territory_database_load.sqf | 61 ------------------- 1 file changed, 61 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/VirtualGarage/CustomCode/ExileServer_system_territory_database_load.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/CustomCode/ExileServer_system_territory_database_load.sqf b/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/CustomCode/ExileServer_system_territory_database_load.sqf deleted file mode 100644 index 5fe53ba..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/CustomCode/ExileServer_system_territory_database_load.sqf +++ /dev/null @@ -1,61 +0,0 @@ -/** - * ExileServer_system_territory_database_load - * - * Exile Mod - * www.exilemod.com - * © 2015 Exile Mod Team - * - * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/. - */ - -private["_territoryID","_data","_id","_owner","_position","_radius","_level","_flagTexture","_flagStolen","_flagStolenBy","_lastPayed","_buildRights","_moderators","_flagObject"]; -_territoryID = _this; -_data = format ["loadTerritory:%1", _territoryID] call ExileServer_system_database_query_selectSingle; -_id = _data select 0; -_owner = _data select 1; -_name = _data select 2; -_position = -[ - _data select 3, - _data select 4, - _data select 5 -]; -_radius = _data select 6; -_level = _data select 7; -_flagTexture = _data select 8; -_flagStolen = _data select 9; -_flagStolenBy = _data select 10; -_lastPayed = _data select 11; -_buildRights = _data select 12; -_moderators = _data select 13; -_flagObject = createVehicle ["Exile_Construction_Flag_Static",_position, [], 0, "CAN_COLLIDE"]; -if (_flagStolen isEqualTo 0) then -{ - _flagObject setFlagTexture _flagTexture; -}; -ExileLocations pushBack _flagObject; -_flagObject setVariable ["ExileTerritoryName", _name, true]; -_flagObject setVariable ["ExileDatabaseID", _id]; -_flagObject setVariable ["ExileOwnerUID", _owner, true]; -_flagObject setVariable ["ExileTerritorySize", _radius, true]; -_flagObject setVariable ["ExileTerritoryBuildRights", _buildRights, true]; -_flagObject setVariable ["ExileTerritoryModerators", _moderators, true]; -_flagObject setVariable ["ExileTerritoryLevel", _level, true]; -_flagObject setVariable ["ExileTerritoryLastPayed", _lastPayed]; -_flagObject call ExileServer_system_territory_maintenance_recalculateDueDate; -_flagObject setVariable ["ExileTerritoryNumberOfConstructions", _data select 15, true]; -_flagObject setVariable ["ExileRadiusShown", false, true]; -_flagObject setVariable ["ExileFlagStolen",_flagStolen,true]; -_flagObject setVariable ["ExileFlagTexture",_flagTexture]; - -//////////////////////// -///// ExAd START ///// -//////////////////////// -_vehicles = format ["loadTerritoryVehicles:%1", _territoryID] call ExileServer_system_database_query_selectFull; -_flagObject setVariable ["ExAdVGVeh", _vehicles, true]; -//////////////////////// -///// ExAd END ///// -//////////////////////// - -true \ No newline at end of file From 2fd2b3fb589f5f7616a15a6c1f0cd5bd5ac049e9 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:29:16 +0000 Subject: [PATCH 52/72] Delete fn_allowVGStore.sqf --- .../Functions/fn_allowVGStore.sqf | 31 ------------------- 1 file changed, 31 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_allowVGStore.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_allowVGStore.sqf b/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_allowVGStore.sqf deleted file mode 100644 index fd31d0f..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_allowVGStore.sqf +++ /dev/null @@ -1,31 +0,0 @@ -/* - fn_allowVGStore.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -private ["_res","_flag","_cmon1","_cmon2"]; - -_cmon1 = if (ExileClientPlayerIsInCombat && ExAd_STOP_COMBAT_STORING)exitWith{["ErrorTitleAndText", ["ExAd - Virtual Garage", "You cannot store Vehicles While in Combat!"]] call ExileClient_gui_toaster_addTemplateToast;}; - -_cmon2 = if (isNil "ExAdCurFlagNetId")exitWith{diag_log "ExAdClient: allowVGStore - ExAdCurFlagNetId is nil";false}; - -_flag = objectFromNetId ExAdCurFlagNetId; - -_allowedVeh = _flag call ExAd_fnc_allowedVGVeh; -_storedVeh = count (_flag getVariable ["ExAdVGVeh", []]); - -_res = if(_allowedVeh > _storedVeh)then{true}else{false}; - -_res From 31cccc44ac3a7e20984c6828b3940e1f0f570276 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:29:24 +0000 Subject: [PATCH 53/72] Delete fn_allowedVGVeh.sqf --- .../Functions/fn_allowedVGVeh.sqf | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_allowedVGVeh.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_allowedVGVeh.sqf b/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_allowedVGVeh.sqf deleted file mode 100644 index 1edc066..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_allowedVGVeh.sqf +++ /dev/null @@ -1,22 +0,0 @@ -/* - fn_allowedVGVeh.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -params ["_flag"]; - -_res = ExAd_VG_MIN_ALLOWED_VEH + round(ExAd_VG_ALLOWED_VEH_MULTIPLE_FACTOR * (_flag getVariable ["ExileTerritoryLevel", 1])); - -_res \ No newline at end of file From e98f43ec8379946ca080996c2d2b0322fb4adc2e Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:29:31 +0000 Subject: [PATCH 54/72] Delete fn_fillVGList.sqf --- .../VirtualGarage/Functions/fn_fillVGList.sqf | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_fillVGList.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_fillVGList.sqf b/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_fillVGList.sqf deleted file mode 100644 index 68acc45..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_fillVGList.sqf +++ /dev/null @@ -1,38 +0,0 @@ -/* - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -*/ - -private ["_list","_idc","_vehClass","_data","_name","_index","_pic"]; - -_list = _this select 0; -_idc = _this select 1; - -lbClear _idc; - -{ - _vehClass = if(typeName _x isEqualTo "ARRAY")then{_x select 1}else{typeOf _x}; - _data = if(typeName _x isEqualTo "ARRAY")then{format["%1",_x select 0]}else{netId _x}; - - _name = getText(configFile >> "CfgVehicles" >> _vehClass >> "displayName"); - _index = lbAdd[_idc,_name]; - _pic = getText(configFile >> "CfgVehicles" >> _vehClass >> "picture"); - lbSetPicture [_idc, _index, _pic]; - lbSetPictureColor [_idc, _index, [1,1,1,1]]; - lbSetData [_idc, _index, _data]; - lbSetTooltip [_idc, _index, _vehClass]; -}forEach _list; - -true \ No newline at end of file From c10482f9baf80621e69a2eb46a3f3084774a5fab Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:29:40 +0000 Subject: [PATCH 55/72] Delete fn_loadVGContent.sqf --- .../Functions/fn_loadVGContent.sqf | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_loadVGContent.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_loadVGContent.sqf b/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_loadVGContent.sqf deleted file mode 100644 index 86f117e..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_loadVGContent.sqf +++ /dev/null @@ -1,44 +0,0 @@ -/* - fn_loadVGContent.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -private ["_display","_error","_slides","_flag","_allowedVeh","_storedVeh","_strTxtVehCntColor","_strTxtVehCnt"]; - -_display = uiNameSpace getVariable ["RscExileXM8", displayNull]; -if (isNull _display) exitWith {_error = "Error loading XM8 VG app, display is null"; systemChat _error; diag_log _error;}; - -_slides = _display displayCtrl 4007; -if (isNull _slides) exitWith {_error = "Error loading XM8 VG app, slides control is null"; systemChat _error; diag_log _error;}; - -_flag = if(typeName ExAdCurFlagNetId == "STRING")then{objectFromNetId ExAdCurFlagNetId}else{ExAdCurFlagNetId}; - -_allowedVeh = _flag call ExAd_fnc_allowedVGVeh; -_storedVeh = count (_flag getVariable ["ExAdVGVeh", []]); -_strTxtVehCntColor = if(_allowedVeh > _storedVeh)then{"#FFFFFF"}else{"#B22400"}; - -_strTxtVehCnt = [_display,"ExAd_VG","SubTitle1Cnt"] call ExAd_fnc_getAppCtrl; -_strTxtVehCnt ctrlSetStructuredText parseText format ["%2/%3",_strTxtVehCntColor,_storedVeh,_allowedVeh]; - -[(objectFromNetId ExAdCurFlagNetId) getVariable ["ExAdVGVeh", []],ctrlIDC ([_display,"ExAd_VG","StoreVehList"] call ExAd_fnc_getAppCtrl)] call ExAd_fnc_fillVGList; -for "_i" from 0 to 3 do { - _index = lbAdd[ctrlIDC ([_display,"ExAd_VG","StoreVehList"] call ExAd_fnc_getAppCtrl),""]; -}; - -[[_flag, ExAd_VG_ALLOWED_VEH_TYPE,_flag getVariable ["ExileTerritorySize", 50]] call ExAd_fnc_getNearByLocalVeh,ctrlIDC ([_display,"ExAd_VG","NearVehicleList"] call ExAd_fnc_getAppCtrl)] call ExAd_fnc_fillVGList; - -([_display,"ExAd_VG","InfoCB"] call ExAd_fnc_getAppCtrl) cbSetChecked ((profileNamespace getVariable["ExAd_StreamFriendlyUI",0]) == 1); - -true \ No newline at end of file From c5817a75ece997128abdd1851865bb30491bf154 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:29:50 +0000 Subject: [PATCH 56/72] Delete fn_loadVGDetailView.sqf --- .../Functions/fn_loadVGDetailView.sqf | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_loadVGDetailView.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_loadVGDetailView.sqf b/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_loadVGDetailView.sqf deleted file mode 100644 index ca75dfa..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_loadVGDetailView.sqf +++ /dev/null @@ -1,27 +0,0 @@ -/* - fn_loadVGDetailView.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -params ["_text","_idc"]; -disableSerialization; - -_display = uiNameSpace getVariable ["RscExileXM8", displayNull]; - -if(isNull _display)exitWith{false}; - -(_display displayCtrl _idc) ctrlSetStructuredText parseText _text; - -true \ No newline at end of file From c4039f1e63663b9a9b9e4ce6a80626e084859708 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:29:58 +0000 Subject: [PATCH 57/72] Delete fn_onBtnClickVG.sqf --- .../Functions/fn_onBtnClickVG.sqf | 40 ------------------- 1 file changed, 40 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_onBtnClickVG.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_onBtnClickVG.sqf b/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_onBtnClickVG.sqf deleted file mode 100644 index 2abf36a..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/VirtualGarage/Functions/fn_onBtnClickVG.sqf +++ /dev/null @@ -1,40 +0,0 @@ -/* - fn_onBtnClickVG.sqf - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -private ["_fnc","_idc","_data"]; - -_fnc = [_this,0,nil] call BIS_fnc_param; -_idc = [_this,1,nil] call BIS_fnc_param; - -if(isNil "ExAdCurFlagNetId" || isNil "_fnc" || isNil "_idc")exitWith{ - disableUserInput false; - ["extraApps", 1] call ExileClient_gui_xm8_slide; - false -}; - -_data = lbData [_idc, lbCurSel _idc]; - -if(count _data == 0)then{ - ["ErrorTitleAndText", ["ExAd - Virtual Garage", "You have to choose a vehicle in the proper list!!"]] call ExileClient_gui_toaster_addTemplateToast; -}else{ - [_fnc, [_data, ExAdCurFlagNetId, netId player]] call ExAd_fnc_serverDispatch; - closeDialog 0; -}; -disableUserInput false; - -true \ No newline at end of file From cd69bc1dcd31c960f2ce991419c4928fb01121c4 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:30:15 +0000 Subject: [PATCH 58/72] Update CfgFunctions.cpp --- mpmissions/Exile.Altis/ExAdClient/CfgFunctions.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/mpmissions/Exile.Altis/ExAdClient/CfgFunctions.cpp b/mpmissions/Exile.Altis/ExAdClient/CfgFunctions.cpp index 9e01551..9c9a5a1 100644 --- a/mpmissions/Exile.Altis/ExAdClient/CfgFunctions.cpp +++ b/mpmissions/Exile.Altis/ExAdClient/CfgFunctions.cpp @@ -21,10 +21,7 @@ class ExAd { tag = "ExAd"; #include "Core\CfgFunctions.cpp" - //#include "VirtualGarage\CfgFunctions.cpp" //#include "AdminEvents\CfgFunctions.cpp" - //#include "Hacking\CfgFunctions.cpp" - //#include "Grinding\CfgFunctions.cpp" //#include "HaloParachute\CfgFunctions.cpp" //#include "XM8\CfgFunctions.cpp" //#include "StatsBar\CfgFunctions.cpp" From 677b93c789368309fe061c8524edb5b346c7e6c2 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:30:28 +0000 Subject: [PATCH 59/72] Delete CfgHints.cpp --- .../Exile.Altis/ExAdClient/CfgHints.cpp | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 mpmissions/Exile.Altis/ExAdClient/CfgHints.cpp diff --git a/mpmissions/Exile.Altis/ExAdClient/CfgHints.cpp b/mpmissions/Exile.Altis/ExAdClient/CfgHints.cpp deleted file mode 100644 index 8523d7a..0000000 --- a/mpmissions/Exile.Altis/ExAdClient/CfgHints.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/* - CfgHints.cpp - - Copyright 2016 Jan Babor - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -class ExAd -{ - displayName = "ExAd Virtual Garage"; - //#include "VirtualGarage\CfgHints.cpp" -}; From fc9ea5930453eef6ffbe391603d85b2a4c60c79c Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:30:47 +0000 Subject: [PATCH 60/72] Update ExAd.cpp --- mpmissions/Exile.Altis/ExAdClient/ExAd.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mpmissions/Exile.Altis/ExAdClient/ExAd.cpp b/mpmissions/Exile.Altis/ExAdClient/ExAd.cpp index 4419982..2ebaf9d 100644 --- a/mpmissions/Exile.Altis/ExAdClient/ExAd.cpp +++ b/mpmissions/Exile.Altis/ExAdClient/ExAd.cpp @@ -18,8 +18,5 @@ //#include "Core\ExAd.cpp" -//#include "VirtualGarage\ExAd.cpp" //#include "AdminEvents\ExAd.cpp" -//#include "Hacking\ExAd.cpp" -//#include "Grinding\ExAd.cpp" -//#include "HaloParachute\ExAd.cpp" \ No newline at end of file +//#include "HaloParachute\ExAd.cpp" From 4375edb167c8004bbff2f57cf13ee98fc96577c9 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:31:43 +0000 Subject: [PATCH 61/72] Update stringtable.xml --- mpmissions/Exile.Altis/stringtable.xml | 96 -------------------------- 1 file changed, 96 deletions(-) diff --git a/mpmissions/Exile.Altis/stringtable.xml b/mpmissions/Exile.Altis/stringtable.xml index 16f63c7..2b6cb89 100644 --- a/mpmissions/Exile.Altis/stringtable.xml +++ b/mpmissions/Exile.Altis/stringtable.xml @@ -18,102 +18,6 @@ - - - - You garage is full! - - - You can only store pincode protected vehicles into the garage! - - - The vehicle is not available anymore! - - - - - %2 %1Pin code: %3 %1Fuel: %4 %1Damage: %5 %1Texture: %6 %1Items: %7 %1Magazines: %8 %1Weapons: %9 - - - GO BACK - - - Fetch - - - Store - - - Stored Vehicle Details - - - Stored - - - In Radius - - - Stream friendly UI - - - - - - - Your grinder broke, get a new one before you can continue. - - - Find some batteries to get the grinder to work. - - - I think I'm getting through. - - - You have broken the code lock. - - - You've changed the look - - - - - - Connection failed! Territory Wi-Fi is down! - - - Wi-Fi occupied!! - - - The laptop overloaded and got destroyed! Another hacker is already using the grid. - - - No Wi-Fi available! - - - Hack successful! The Virtual Garage unloaded a %1 - - - Hack successful! No vehicles were stored in the Virtual Garage. - - - Hack successful! The safe is now unlocked. - - - Hack has been interupted - - - Hack failed! Circuits overloaded! - - - - - Hack Activity - - - Someone is hacking another person's base! - - - From a63a8924cb0b00e9da54349e7507284501ff720a Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:32:44 +0000 Subject: [PATCH 62/72] Update description.ext --- mpmissions/Exile.Altis/description.ext | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mpmissions/Exile.Altis/description.ext b/mpmissions/Exile.Altis/description.ext index adc545e..b277115 100644 --- a/mpmissions/Exile.Altis/description.ext +++ b/mpmissions/Exile.Altis/description.ext @@ -10,11 +10,6 @@ class RscTitles #include "ExAdClient\RscTitles.cpp" }; -class CfgHints -{ - #include "ExAdClient\CfgHints.cpp" -}; - class CfgNetworkMessages { #include "ExAdClient\CfgNetworkMessages.cpp" From f6ba0fb660ecd6fb2e83ffb7df77cc0b4eb52817 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:33:39 +0000 Subject: [PATCH 63/72] Update config.cpp --- mpmissions/Exile.Altis/config.cpp | 33 +++++-------------------------- 1 file changed, 5 insertions(+), 28 deletions(-) diff --git a/mpmissions/Exile.Altis/config.cpp b/mpmissions/Exile.Altis/config.cpp index 54c41e5..c42d30a 100644 --- a/mpmissions/Exile.Altis/config.cpp +++ b/mpmissions/Exile.Altis/config.cpp @@ -1,16 +1,7 @@ class CfgXM8 { - extraApps[] = {"ExAd_VG","ExAd_Info","ExAd_CHVD","ExAd_Journal","ExAd_Bike","ExAd_Quad","ExAd_SB"}; - - class ExAd_VG - { - title = "Virtual Garage"; - controlID = 50000; //IDC:50000 -> 50015 || These need to be unique and out of range from each other - logo = "ExadClient\XM8\Apps\VG\Icon_VG.paa"; - onLoad = "ExAdClient\XM8\Apps\VG\onLoad.sqf"; - onOpen = "ExAdClient\XM8\Apps\VG\onOpen.sqf"; - onClose = "ExAdClient\XM8\Apps\VG\onClose.sqf"; - }; + extraApps[] = {"ExAd_Info","ExAd_CHVD","ExAd_Journal","ExAd_Bike","ExAd_Quad","ExAd_SB"}; + class ExAd_Info { title = "Server Info"; @@ -73,9 +64,9 @@ class CfgXM8 class CfgExileCustomCode { - ExileServer_system_territory_database_load = "ExAdClient\VirtualGarage\CustomCode\ExileServer_system_territory_database_load.sqf"; - ExileClient_gui_xm8_slide = "ExAdClient\XM8\CustomCode\ExileClient_gui_xm8_slide.sqf"; - ExileClient_gui_xm8_show = "ExAdClient\XM8\CustomCode\ExileClient_gui_xm8_show.sqf"; + //ExileServer_system_territory_database_load = "ExAdClient\VirtualGarage\CustomCode\ExileServer_system_territory_database_load.sqf"; + //ExileClient_gui_xm8_slide = "ExAdClient\XM8\CustomCode\ExileClient_gui_xm8_slide.sqf"; + //ExileClient_gui_xm8_show = "ExAdClient\XM8\CustomCode\ExileClient_gui_xm8_show.sqf"; }; class CfgInteractionMenus @@ -116,20 +107,6 @@ class CfgInteractionMenus }; }; }; - class Flag - { - targetType = 2; - target = "Exile_Construction_Flag_Static"; - class Actions - { - class HackVG : ExileAbstractAction - { - title = "Hack Virtual Garage"; - condition = "call ExAd_fnc_canHackVG"; - action = "_this spawn ExAd_fnc_startHack"; - }; - }; - }; class Construction { targetType = 2; From 747cd86da55a2726cec139819eeff79bd42ce4a6 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:34:03 +0000 Subject: [PATCH 64/72] Delete examples.md --- docs/VirtualGarage/examples.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 docs/VirtualGarage/examples.md diff --git a/docs/VirtualGarage/examples.md b/docs/VirtualGarage/examples.md deleted file mode 100644 index b5f1edf..0000000 --- a/docs/VirtualGarage/examples.md +++ /dev/null @@ -1 +0,0 @@ -#Examples From c7369a668dd32c527fc30310369119a3bc9448ff Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:34:12 +0000 Subject: [PATCH 65/72] Delete installation.md --- docs/VirtualGarage/installation.md | 64 ------------------------------ 1 file changed, 64 deletions(-) delete mode 100644 docs/VirtualGarage/installation.md diff --git a/docs/VirtualGarage/installation.md b/docs/VirtualGarage/installation.md deleted file mode 100644 index 3b63bc8..0000000 --- a/docs/VirtualGarage/installation.md +++ /dev/null @@ -1,64 +0,0 @@ -# Installation - -Remember for this plugin to work you first need to install -* [Core](https://github.com/Bjanski/ExAd/blob/master/docs/core/installation.md) -* [XM8](https://github.com/Bjanski/ExAd/blob/master/docs/XM8/installation.md) - -## Client - -* Place the folder "VirtualGarage" into "mpmissions\exile.\ExAdClient\" - -* Goto "mpmissions\exile.\ExAdClient\CfgFunctions" and uncomment - -_From_ -```cpp - //#include "VirtualGarage\CfgFunctions.cpp" -``` -_To_ -```cpp - #include "VirtualGarage\CfgFunctions.cpp" -``` -* Repeat last step for "CfgHints" - -* In "config.cpp" in the mission root folder, find class CfgExileCustomCode and add the following row -```js - ExileServer_system_territory_database_load = "ExAdClient\VirtualGarage\CustomCode\ExileServer_system_territory_database_load.sqf"; -``` -* In "config.cpp" you can also add the ("CfgInteractionMenus" >> "Flag" >> "VG") class if you want to be able to fast load the app through your flag pole. - -* Modify - "mpmissions\exile.\stringtable.xml" - add if missing package="VirtualGarage" and change to desirable notifications - -* Now you can go into "mpmissions\exile.\ExAdClient\VirtualGarage\customize.sqf" and change to desirable settings. - -### XM8 App - -* Copy over "ExileClient\XM8\Apps\VG" -* Add ("CfgXM8" >> "Exad_VG") to "mpmissions\exile.\config.cpp" -``` -class CfgXM8 -{ - extraApps[] = {"ExAd_VG"}; - - class ExAd_VG - { - title = "Virtual Garage"; - controlID = 50000; //These need to be unique - onLoad = "ExAdClient\XM8\Apps\VG\onLoad.sqf"; - onOpen = "ExAdClient\XM8\Apps\VG\onOpen.sqf"; - onClose = "ExAdClient\XM8\Apps\VG\onClose.sqf"; - }; -}; -``` - -## Server - -* Copy over and pack "@ExileServer\addons\exad_vg" into a pbo. - -## Database -* Run the following sql command in you database. -```sql - ALTER TABLE `vehicle` ADD `territory_id` INT(11) UNSIGNED NULL DEFAULT NULL; - ALTER TABLE `vehicle` ADD CONSTRAINT `vehicle_ibfk_2` FOREIGN KEY (`territory_id`) REFERENCES `territory`(`id`) ON DELETE CASCADE ON UPDATE RESTRICT; -``` - -* Copy over content from "@ExileServer\extDB\sql_custom_v2\exile.ini" - Follow the instructions in the file. From 42084d68a7f346f19e93ab531b76e754e42dd00c Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:34:20 +0000 Subject: [PATCH 66/72] Delete update.md --- docs/VirtualGarage/update.md | 52 ------------------------------------ 1 file changed, 52 deletions(-) delete mode 100644 docs/VirtualGarage/update.md diff --git a/docs/VirtualGarage/update.md b/docs/VirtualGarage/update.md deleted file mode 100644 index 798789a..0000000 --- a/docs/VirtualGarage/update.md +++ /dev/null @@ -1,52 +0,0 @@ -#VirtualGarage -## Instructions: - -### v0.7.7 -* Remove XM8_Apps -* Install [XM8](https://github.com/Bjanski/ExAd/tree/master/docs/XM8) -* Replace "mpmissions\Exile.\ExAdClient\VG" -* Replace and pack "@ExileServer\addons\exad_vg" -* Update "@ExileServer\extDB\sql_custom_v2\exile.ini" -> -``` -[loadVehicleIdPage] -SQL1_1 = SELECT id FROM vehicle WHERE deleted_at IS NULL AND territory_id IS NULL LIMIT ?,? -Number Of Inputs = 2 -SQL1_INPUTS = 1,2 -OUTPUT = 1 -``` - -### v0.7.6 -* Replace or merge "mpmissions\Exile.\ExAdClient\VG\customize.sqf" -* Replace or merge "mpmissions\Exile.\stringtable.xml" -* Replace "mpmissions\Exile.\ExAdClient\VG" - Big update -* Replace "mpmissions\Exile.\XM8_apps\apps\XM8_VG" -* Replace and pack "@ExileServer\addons\exad_vg" - -### v0.7.3 -* Replace "mpmissions\Exile.\ExAdClient\VirtualGarage\postInit.sqf" - -### v0.7.0 -* Copy over the new VirtualGarage Package in "stringtable.xml" -* Replace and pack "@ExileServer\addons\exad_vg" - - -### v0.6.1 -* Modify config.cpp ("CfgInteractionMenus" >> "Flag") -```cpp -class VG : ExileAbstractAction -{ - title = "Virtual Garage"; - condition = "(([_object, getPlayerUID player] call ExileClient_util_territory_getAccessLevel) select 0) >= ExAd_VG_ACCESS_LEVEL"; - action = "[] spawn {[] call ExileClient_gui_xm8_show; UISleep 1; call XM8_VG_checkNearByFlags}"; -}; -``` - - -### v0.5.1 -* Add battleye exceptions -* Replace "ExAdClient\VirtualGarage\Functions" -* Replace "ExAdClient\VirtualGarage\CfgHints.cpp" -* Replace "XM8_apps\apps\XM8_VG" - -### 160428 12:00 . v0.5.0 -* Full installation From 4bad1d730ee900e6277e0868792981d979aa501d Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:34:33 +0000 Subject: [PATCH 67/72] Delete examples.md --- docs/Hacking/examples.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 docs/Hacking/examples.md diff --git a/docs/Hacking/examples.md b/docs/Hacking/examples.md deleted file mode 100644 index b5f1edf..0000000 --- a/docs/Hacking/examples.md +++ /dev/null @@ -1 +0,0 @@ -#Examples From fb43a8d6a691110d189a46cfe325a9f64b9c5d88 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:34:40 +0000 Subject: [PATCH 68/72] Delete installation.md --- docs/Hacking/installation.md | 53 ------------------------------------ 1 file changed, 53 deletions(-) delete mode 100644 docs/Hacking/installation.md diff --git a/docs/Hacking/installation.md b/docs/Hacking/installation.md deleted file mode 100644 index e4b9933..0000000 --- a/docs/Hacking/installation.md +++ /dev/null @@ -1,53 +0,0 @@ -# Installation - -Remember for this plugin to work you first need to install -* [Core](https://github.com/Bjanski/ExAd/blob/master/docs/core/installation.md) -* [(VirtualGarage)](https://github.com/Bjanski/ExAd/blob/master/docs/VirtualGarage/installation.md) - Only necessary if you want to be able to hack it - -## Client - -* Place the folder "Hacking" into "mpmissions\exile.\ExAdClient\" - -* Goto "mpmissions\exile.\ExAdClient\CfgFunctions" and uncomment - -_From_ -```cpp - //#include "Hacking\CfgFunctions.cpp" -``` -_To_ -```cpp - #include "Hacking\CfgFunctions.cpp" -``` - -* In "config.cpp" find ("CfgInteractionMenus") and add the actions you want used. If you don't want to use a specific action e.g. hacking safe just ignore adding it. -Available actions are - * HackVG -> ("CfgInteractionMenus" >> "Flag" >> "Actions" >> "HackVG") - * HackSafe -> ("CfgInteractionMenus" >> "Safe" >> "Actions" >> "HackSafe") - * StopHack -> ("CfgInteractionMenus" >> "Laptop" >> "Actions" >> "StopHack") - -Example -```cpp -class Flag - { - targetType = 2; - target = "Exile_Construction_Flag_Static"; - - class Actions - { - class HackVG : ExileAbstractAction - { - title = "Hack Virtual Garage"; - condition = "call ExAd_fnc_canHackVG"; - action = "_this spawn ExAd_fnc_startHack"; - }; - }; -}; -``` - -* Modify - "mpmissions\exile.\stringtable.xml" - add package="Hacking" and change to desirable notifications - -* Now you can go into "mpmissions\exile.\ExAdClient\Hacking\customize.sqf" and change to desirable settings. - -## Server - -* Copy over and pack "@ExileServer\addons\exad_hacking" into a pbo. From 423579c6aa6e22c40e1eb2fcdab9c8fbcc7318bb Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:34:47 +0000 Subject: [PATCH 69/72] Delete update.md --- docs/Hacking/update.md | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 docs/Hacking/update.md diff --git a/docs/Hacking/update.md b/docs/Hacking/update.md deleted file mode 100644 index 45fc217..0000000 --- a/docs/Hacking/update.md +++ /dev/null @@ -1,22 +0,0 @@ -#Hacking -## Instructions: - -### v0.7.7 -* Replace "mpmissions\Exile.\ExAdClient\Hacking" -* Replace and pack "@ExileServer\addons\exad_hacking" - -### v0.7.6 -* Replace or merge "mpmissions\Exile.\ExAdClient\Hacking\customize.sqf" -* Replace or merge "mpmissions\Exile.\stringtable.xml" -* Replace "mpmissions\Exile.\ExAdClient\Hacking" - Big update -* Replace and pack "@ExileServer\addons\exad_hacking" - -### v0.7.3 -* Replace and pack "@ExileServer\addons\exad_hacking" -* Replace "mpmissions\Exile.\ExAdClient\Hacking\postInit.sqf" - -### v0.7.1 -* Replace and pack "@ExileServer\addons\exad_hacking" - -### v0.7.0 -* Full installation From 415cb7247def49af29f1ab4d3b99c95c27701960 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:34:57 +0000 Subject: [PATCH 70/72] Delete examples.md --- docs/Grinding/examples.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 docs/Grinding/examples.md diff --git a/docs/Grinding/examples.md b/docs/Grinding/examples.md deleted file mode 100644 index b5f1edf..0000000 --- a/docs/Grinding/examples.md +++ /dev/null @@ -1 +0,0 @@ -#Examples From d2bf0dfa40a9c914fa59ec7cd04050a26bcc8fcb Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:35:06 +0000 Subject: [PATCH 71/72] Delete installation.md --- docs/Grinding/installation.md | 53 ----------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 docs/Grinding/installation.md diff --git a/docs/Grinding/installation.md b/docs/Grinding/installation.md deleted file mode 100644 index 85300e6..0000000 --- a/docs/Grinding/installation.md +++ /dev/null @@ -1,53 +0,0 @@ -# Installation - -Remember for this plugin to work you first need to install -* [Core]((https://github.com/Bjanski/ExAd/blob/master/docs/core/installation.md) - -## Client - -* Place the folder "Grinding" into "mpmissions\exile.\ExAdClient\" - -* Goto "mpmissions\exile.\ExAdClient\CfgFunctions" and uncomment - -_From_ -```cpp - //#include "Grinding\CfgFunctions.cpp" -``` -_To_ -```cpp - #include "Grinding\CfgFunctions.cpp" -``` - -* In "config.cpp" find "CfgInteractionMenus" and add to "Construction". -```cpp -class Construction - { - targetType = 2; - target = "Exile_Construction_Abstract_Static"; - - class Actions - { - class Grind : ExileAbstractAction - { - title = "Grind Lock"; - condition = "call ExAd_fnc_canGrindLock"; - action = "_this spawn ExAd_fnc_grindLock"; - }; - - class RestoreLock : ExileAbstractAction - { - title = "Restore Lock"; - condition = "_object call ExAd_fnc_canRestoreLock"; - action = "_this spawn ExAd_fnc_restoreLock"; - }; - }; -}; -``` - -* Modify - "mpmissions\exile.\stringtable.xml" - add package="Grinding" and change to desirable notifications - -* Now you can go into "mpmissions\exile.\ExAdClient\Grinding\customize.sqf" and change to desirable settings. - -## Server - -* Copy over and pack "@ExileServer\addons\exad_grinding" into a pbo. \ No newline at end of file From 69b839e26374477cfdeb87aa6c9bc32502e0d367 Mon Sep 17 00:00:00 2001 From: "[GADD]Monkeynutz" Date: Thu, 8 Mar 2018 22:35:14 +0000 Subject: [PATCH 72/72] Delete update.md --- docs/Grinding/update.md | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 docs/Grinding/update.md diff --git a/docs/Grinding/update.md b/docs/Grinding/update.md deleted file mode 100644 index 4d37138..0000000 --- a/docs/Grinding/update.md +++ /dev/null @@ -1,21 +0,0 @@ -#Grinding -## Instructions: - -### v0.7.7 -* Replace "mpmissions\Exile.\ExAdClient\Grinding" -* Replace and pack "@ExileServer\addons\exad_grinding" - -### v0.7.6 -* Replace or merge "mpmissions\Exile.\ExAdClient\Grinding\customize.sqf" -* Replace or merge "mpmissions\Exile.\stringtable.xml" -* Replace "mpmissions\Exile.\ExAdClient\Grinding" - Big update -* Replace and pack "@ExileServer\addons\exad_grinding" - -### v0.7.3 -* Replace "mpmissions\Exile.\ExAdClient\Grinding\postInit.sqf" - -### v0.6.1 -* Replace "ExAdClient\Grinding\Functions" - -### v0.6.0 -* Full installation