From b4d8287419b491925e47475f3790ec94399a20b3 Mon Sep 17 00:00:00 2001 From: Zepheris Date: Sun, 23 Feb 2020 22:08:46 -0700 Subject: [PATCH] Its working, just not on the EPOCH player corpses. needs more work --- .../addons/drag_body/H8_CfgRemoteExec.hpp | 10 ++++++++++ .../epoch.Bornholm/addons/drag_body/H8_dragBody.sqf | 2 +- .../Configs/CfgActionMenu/CfgActionMenu_target.hpp | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 Server/mpmissions/epoch.Bornholm/addons/drag_body/H8_CfgRemoteExec.hpp diff --git a/Server/mpmissions/epoch.Bornholm/addons/drag_body/H8_CfgRemoteExec.hpp b/Server/mpmissions/epoch.Bornholm/addons/drag_body/H8_CfgRemoteExec.hpp new file mode 100644 index 0000000..ab3f0e7 --- /dev/null +++ b/Server/mpmissions/epoch.Bornholm/addons/drag_body/H8_CfgRemoteExec.hpp @@ -0,0 +1,10 @@ +class H8_fnc_attach +{ + allowedTargets = 0; + jip = 0; +}; +class H8_fnc_detach +{ + allowedTargets = 0; + jip = 0; +}; diff --git a/Server/mpmissions/epoch.Bornholm/addons/drag_body/H8_dragBody.sqf b/Server/mpmissions/epoch.Bornholm/addons/drag_body/H8_dragBody.sqf index 4ee3a22..c27a32c 100644 --- a/Server/mpmissions/epoch.Bornholm/addons/drag_body/H8_dragBody.sqf +++ b/Server/mpmissions/epoch.Bornholm/addons/drag_body/H8_dragBody.sqf @@ -37,12 +37,12 @@ H8_fnc_attach = { H8_fnc_moveBody = { _unit = (_this select 0); _player = (_this select 1); - diag_log "[dragBody] Debug: fnc_MoveBody"; // CREDIT TOO Das Attorney FOR CODE _pos = _player modelToWorld [0,1,0]; _unit setPos _pos; _unit setDir 180; _unit switchMove "AinjPpneMrunSnonWnonDb"; + //diag_log "[dragBody] Debug: fnc_MoveBody"; }; H8_dropAction = { diff --git a/Server/mpmissions/epoch.Bornholm/epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp b/Server/mpmissions/epoch.Bornholm/epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp index 2156293..55cb30d 100644 --- a/Server/mpmissions/epoch.Bornholm/epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp +++ b/Server/mpmissions/epoch.Bornholm/epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp @@ -33,7 +33,7 @@ class drag_Stuff class drag_body { - condition = "true"; + condition = "if (!(isNull dyna_cursorTarget) && !(alive dyna_cursorTarget)) then {true} else {false}"; action = "[dyna_cursorTarget,Epoch_personalToken] call H8_dragAction;"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\epoch_brownkey.paa"; tooltip = "Grab Test";