From 8b2dca314864f2859708b694cfeec8377fde1e1c Mon Sep 17 00:00:00 2001 From: Grahame Date: Sat, 30 Sep 2017 10:46:47 -0400 Subject: [PATCH] Added a working defibrillator Adds the player_revive class which checks whether the target is a dead player and if a defibrillator is in inventory. if so will remoteexec Epoch_server_revivePlayer. Uses the Group Menu icon but would be better if there were a generic medical icon. --- .../Configs/CfgActionMenu/CfgActionMenu_target.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Sources/epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp b/Sources/epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp index 693d8ec3..830eab9a 100644 --- a/Sources/epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp +++ b/Sources/epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp @@ -541,3 +541,13 @@ class player_tempGroup_requests icon = "x\addons\a3_epoch_code\Data\UI\buttons\group_requests_ca.paa"; tooltip = "Temp Group Requests"; }; + +// Working defibrillator + +class player_revive +{ + condition = "dyna_isDeadPlayer && ('ItemDefibrillator' in dyna_magazinesPlayer)"; + action = "[dyna_cursorTarget, player, Epoch_personalToken] remoteExec ['EPOCH_server_revivePlayer',2];"; + icon = "x\addons\a3_epoch_code\Data\UI\buttons\group_requests_ca.paa"; + tooltip = "Revive Player"; +};