diff --git a/functions/Barricade/fn_barricade.sqf b/functions/Barricade/fn_barricade.sqf deleted file mode 100644 index 30b2a33..0000000 --- a/functions/Barricade/fn_barricade.sqf +++ /dev/null @@ -1,43 +0,0 @@ -/* - Author: Djeeberjr - - Description: - Buildable barricade. If there is a object synced to it, it will use this as the "controller". - - Parameter(s): - 0: OBJECT - the barricade - 1: STRING - barrcade group - 2: NUMBER - cost -*/ - -params ["_obj","_group","_cost"]; - -_ctl = objNull; -if ((count synchronizedObjects _obj) == 1)then{ - _ctl = (synchronizedObjects _obj) # 0; -}else{ - //Create controller - _ctl = createVehicle ["Marker_Use_ACR", position _obj, [], 0, "CAN_COLLIDE"]; - _ctl setVectorDirAndUp [vectorDir _obj, vectorUp _obj]; -}; - -dbg = synchronizedObjects _obj; - -//create action -_action = _ctl addAction ["Build barricade",{ - params ["_target", "_caller", "_actionId", "_arguments"]; - _obj = _arguments # 0; - _group = _arguments #1; - _cost = _arguments #2; - - _target removeAction _actionId; //TODO: remoteExec - - _obj hideObjectGlobal false; - - deleteVehicle _target; - -},[_obj,_group,_cost],2.5,true,true,"","true",2]; - -//Hide it -_obj hideObjectGlobal true; -_obj setVariable ["DLib_barricade",[_group,_cost,_action]]; diff --git a/functions/Barricade/fn_disableBarricade.sqf b/functions/Barricade/fn_disableBarricade.sqf deleted file mode 100644 index e69de29..0000000 diff --git a/functions/Barricade/fn_enableBarricade.sqf b/functions/Barricade/fn_enableBarricade.sqf deleted file mode 100644 index 0519ecb..0000000 --- a/functions/Barricade/fn_enableBarricade.sqf +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/includes/Barricade/CfgFunctions.hpp b/includes/Barricade/CfgFunctions.hpp deleted file mode 100644 index 460dd9e..0000000 --- a/includes/Barricade/CfgFunctions.hpp +++ /dev/null @@ -1,6 +0,0 @@ -class Barricade{ - file="DLib\functions\Barricade"; - class barricade{}; - class enableBarricade{}; - class disableBarricade{}; -}; \ No newline at end of file diff --git a/includes/CfgFunctions.hpp b/includes/CfgFunctions.hpp index f042e11..39df14a 100644 --- a/includes/CfgFunctions.hpp +++ b/includes/CfgFunctions.hpp @@ -1,7 +1,6 @@ class DLib{ #include "Base\CfgFunctions.hpp" #include "Arsenal\CfgFunctions.hpp" - #include "Barricade\CfgFunctions.hpp" #include "Interactables\CfgFunctions.hpp" #include "Orbat\CfgFunctions.hpp" #include "PlaneJump\CfgFunctions.hpp"