2015-12-07 16:24:52 +00:00
|
|
|
/*
|
|
|
|
Author: Raimonds Virtoss - EpochMod.com
|
|
|
|
|
|
|
|
Contributors: Aaron Clark
|
|
|
|
|
|
|
|
Description:
|
|
|
|
Action Menu Target Config
|
|
|
|
|
|
|
|
Licence:
|
|
|
|
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
|
|
|
|
|
|
|
|
Github:
|
2016-06-13 16:54:19 +00:00
|
|
|
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp
|
2015-12-07 16:24:52 +00:00
|
|
|
*/
|
|
|
|
|
2015-10-28 15:16:00 +00:00
|
|
|
//Build mode enabled
|
|
|
|
class build_upgrade
|
|
|
|
{
|
|
|
|
condition = "dyna_buildMode select 0";
|
|
|
|
//action = "dyna_cursorTarget call EPOCH_QuickUpgrade;"; //TODO: scripted dyna menu
|
|
|
|
action = "";
|
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_upgrade.paa";
|
|
|
|
tooltip = "Upgrade";
|
|
|
|
class special {}; //uses external config, hardcoded
|
|
|
|
};
|
|
|
|
class build_remove
|
|
|
|
{
|
|
|
|
condition = "dyna_buildMode select 1";
|
|
|
|
action = "dyna_cursorTarget call EPOCH_removeBUILD;";
|
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_remove.paa";
|
|
|
|
tooltip = "Remove";
|
|
|
|
};
|
|
|
|
class build_move
|
|
|
|
{
|
|
|
|
condition = "dyna_buildMode select 2";
|
|
|
|
action = "dyna_cursorTarget call EPOCH_fnc_SelectTargetBuild;";
|
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_move.paa";
|
|
|
|
tooltip = "Move";
|
|
|
|
};
|
|
|
|
|
|
|
|
//Vehicle interaction
|
|
|
|
class veh_gear
|
|
|
|
{
|
|
|
|
condition = "dyna_isVehicle && !dyna_locked";
|
|
|
|
action = "call Epoch_client_gearVehicle;";
|
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\player_inspect.paa";
|
|
|
|
tooltip = "Inspect";
|
|
|
|
};
|
|
|
|
class veh_lock
|
|
|
|
{
|
|
|
|
condition = "dyna_isVehicle && !dyna_locked";
|
2015-12-23 17:38:11 +00:00
|
|
|
action = "[dyna_cursorTarget, true, player, Epoch_personalToken] remoteExec ['EPOCH_server_lockVehicle',2];";
|
2015-10-28 15:16:00 +00:00
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_cannot_lock.paa";
|
|
|
|
tooltip = "Lock";
|
|
|
|
};
|
|
|
|
class veh_unLock
|
|
|
|
{
|
|
|
|
condition = "dyna_isVehicle && dyna_locked";
|
2015-12-23 17:38:11 +00:00
|
|
|
action = "[dyna_cursorTarget, false, player, Epoch_personalToken] remoteExec ['EPOCH_server_lockVehicle',2];";
|
2015-10-28 15:16:00 +00:00
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_can_unlock.paa";
|
|
|
|
tooltip = "Unlock";
|
|
|
|
};
|
|
|
|
|
|
|
|
//Trader interaction
|
|
|
|
class tra_talk
|
|
|
|
{
|
|
|
|
condition = "dyna_isTrader";
|
|
|
|
action = "dyna_cursorTarget call EPOCH_startInteractNPC;";
|
2015-11-20 14:39:59 +00:00
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\talk_blue.paa";
|
2015-10-28 15:16:00 +00:00
|
|
|
tooltip = "Talk";
|
|
|
|
};
|
|
|
|
class tra_shop
|
|
|
|
{
|
|
|
|
condition = "dyna_isTrader";
|
|
|
|
action = "call EPOCH_startNPCTraderMenu;";
|
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\krypto.paa";
|
|
|
|
tooltip = "Shop";
|
|
|
|
};
|
|
|
|
|
2016-08-08 17:12:20 +00:00
|
|
|
class player_takeCrypto
|
|
|
|
{
|
2017-04-01 14:25:12 +00:00
|
|
|
condition = "dyna_isDeadPlayer || (dyna_cursorTarget getVariable [""Crypto"",0]) > 0";
|
2016-08-08 17:12:20 +00:00
|
|
|
action = "dyna_cursorTarget call EPOCH_takeCrypto;";
|
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\krypto.paa";
|
|
|
|
tooltip = "Take Krypto";
|
|
|
|
};
|
2016-05-05 16:06:12 +00:00
|
|
|
class player_trade
|
|
|
|
{
|
|
|
|
condition = "dyna_isPlayer";
|
|
|
|
action = "[dyna_cursorTarget, player, Epoch_personalToken] call EPOCH_startTRADEREQ;";
|
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\krypto.paa";
|
|
|
|
tooltip = "Make Trade Request";
|
|
|
|
};
|
|
|
|
class player_trade_accept
|
|
|
|
{
|
|
|
|
condition = "dyna_isPlayer && dyna_canAcceptTrade";
|
|
|
|
action = "EPOCH_p2ptradeTarget = EPOCH_pendingP2ptradeTarget;call EPOCH_startTrade;";
|
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\krypto.paa";
|
|
|
|
tooltip = "Accept Trade Request";
|
|
|
|
};
|
|
|
|
|
2015-10-28 15:16:00 +00:00
|
|
|
//User action replacement
|
|
|
|
class maintain_jammer
|
|
|
|
{
|
|
|
|
condition = "dyna_cursorTargetType isEqualTo 'PlotPole_EPOCH' && (damage dyna_cursorTarget < 1)";
|
|
|
|
action = "dyna_cursorTarget call EPOCH_maintainIT;";
|
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_maintain.paa";
|
|
|
|
tooltip = "Maintain";
|
|
|
|
};
|
2017-03-04 06:52:45 +00:00
|
|
|
class select_jammer
|
|
|
|
{
|
|
|
|
condition = "dyna_cursorTargetType isEqualTo 'PlotPole_EPOCH' && (damage dyna_cursorTarget < 1)";
|
|
|
|
action = "[dyna_cursorTarget,player,Epoch_personalToken] remoteExec [""EPOCH_server_makeSP"",2];";
|
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\player_inspect.paa";
|
|
|
|
tooltip = "Make Spawnpoint";
|
|
|
|
};
|
|
|
|
|
2015-10-28 15:16:00 +00:00
|
|
|
//lock unlock
|
|
|
|
class unlock_lockbox
|
|
|
|
{
|
|
|
|
condition = "(dyna_cursorTargetType in ['LockBox_EPOCH','LockBoxProxy_EPOCH']) && (dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
|
|
|
|
action = "dyna_cursorTarget call Epoch_secureStorageHandler";
|
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_can_unlock.paa";
|
|
|
|
tooltip = "Unlock Lockbox";
|
|
|
|
};
|
|
|
|
class lock_lockbox
|
|
|
|
{
|
|
|
|
condition = "(dyna_cursorTargetType in ['LockBox_EPOCH','LockBoxProxy_EPOCH']) && !(dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
|
|
|
|
action = "dyna_cursorTarget call Epoch_secureStorageHandler";
|
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_cannot_lock.paa";
|
|
|
|
tooltip = "Lock Lockbox";
|
|
|
|
};
|
|
|
|
class unlock_safe
|
|
|
|
{
|
|
|
|
condition = "(dyna_cursorTargetType in ['Safe_EPOCH','SafeProxy_EPOCH']) && (dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
|
|
|
|
action = "dyna_cursorTarget call Epoch_secureStorageHandler";
|
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_can_unlock.paa";
|
|
|
|
tooltip = "Unlock Safe";
|
|
|
|
};
|
|
|
|
class lock_safe
|
|
|
|
{
|
|
|
|
condition = "(dyna_cursorTargetType in ['Safe_EPOCH','SafeProxy_EPOCH']) && !(dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
|
|
|
|
action = "dyna_cursorTarget call Epoch_secureStorageHandler";
|
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_cannot_lock.paa";
|
|
|
|
tooltip = "Lock Safe";
|
|
|
|
};
|
|
|
|
|
|
|
|
//pack
|
|
|
|
class pack_lockbox
|
|
|
|
{
|
|
|
|
condition = "(dyna_cursorTargetType in ['LockBox_EPOCH','LockBoxProxy_EPOCH']) && (dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
|
2015-12-23 17:40:24 +00:00
|
|
|
action = "[dyna_cursorTarget,player,Epoch_personalToken] remoteExec ['EPOCH_server_packStorage',2];";
|
2015-11-20 14:39:59 +00:00
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_pack.paa";
|
2015-10-28 15:16:00 +00:00
|
|
|
tooltip = "Pack Lockbox";
|
|
|
|
};
|
|
|
|
class pack_safe
|
|
|
|
{
|
|
|
|
condition = "(dyna_cursorTargetType in ['Safe_EPOCH','SafeProxy_EPOCH']) && (dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
|
2015-12-23 17:38:11 +00:00
|
|
|
action = "[dyna_cursorTarget,player,Epoch_personalToken] remoteExec ['EPOCH_server_packStorage',2];";
|
2015-11-20 14:39:59 +00:00
|
|
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_pack.paa";
|
2015-10-28 15:16:00 +00:00
|
|
|
tooltip = "Pack Safe";
|
2015-11-20 14:39:59 +00:00
|
|
|
};
|