mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
commit
35dfd71d13
@ -51,6 +51,7 @@ class CfgActionMenu
|
|||||||
|
|
||||||
dyna_AtHome = "call {_nearjammers = (nearestObjects[player, call EPOCH_JammerClasses, call EPOCH_MaxJammerRange]) select {player distance _x < (getnumber (getmissionconfig 'cfgEpochClient' >> 'CfgJammers' >> (typeof _x) >> 'buildingJammerRange'))};if (_nearjammers isEqualTo []) exitwith {false};_nearestJammer = _nearjammers select 0;((_nearestJammer getVariable['BUILD_OWNER', '-1']) in[getPlayerUID player, Epoch_my_GroupUID])}";
|
dyna_AtHome = "call {_nearjammers = (nearestObjects[player, call EPOCH_JammerClasses, call EPOCH_MaxJammerRange]) select {player distance _x < (getnumber (getmissionconfig 'cfgEpochClient' >> 'CfgJammers' >> (typeof _x) >> 'buildingJammerRange'))};if (_nearjammers isEqualTo []) exitwith {false};_nearestJammer = _nearjammers select 0;((_nearestJammer getVariable['BUILD_OWNER', '-1']) in[getPlayerUID player, Epoch_my_GroupUID])}";
|
||||||
dyna_Watersource = "call {_nearObjects = nearestObjects [player, [], 2];_check = 'water';_ok = false;{if (alive _x) then {_ok = [_x, _check] call EPOCH_worldObjectType;};if (_ok) exitWith {};} forEach _nearObjects;_ok}";
|
dyna_Watersource = "call {_nearObjects = nearestObjects [player, [], 2];_check = 'water';_ok = false;{if (alive _x) then {_ok = [_x, _check] call EPOCH_worldObjectType;};if (_ok) exitWith {};} forEach _nearObjects;_ok}";
|
||||||
|
dyna_DirtyWatersource = "((surfaceiswater position player) && (position player isFlatEmpty [-1, -1, -1, -1, 0, true] isEqualTo []) && (getPosASL player select 2 > 2) && (getPosATL player select 2 < 0.1))";
|
||||||
dyna_Paintobj = "objnull"; // <--- internal use only!
|
dyna_Paintobj = "objnull"; // <--- internal use only!
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ class base_mode_attach
|
|||||||
};
|
};
|
||||||
class Drink
|
class Drink
|
||||||
{
|
{
|
||||||
condition = "dyna_Watersource";
|
condition = "dyna_Watersource || dyna_DirtyWatersource";
|
||||||
action = "if (currentweapon player == '') then {player playmove 'AinvPknlMstpSnonWnonDnon_Putdown_AmovPknlMstpSnonWnonDnon';}else {if (currentweapon player == handgunweapon player) then {player playmove 'AinvPknlMstpSrasWpstDnon_Putdown_AmovPknlMstpSrasWpstDnon';}else { player playmove 'AinvPknlMstpSrasWrflDnon_Putdown_AmovPknlMstpSrasWrflDnon';};};{_output = _x call EPOCH_giveAttributes;if (_output != '') then {[_output, 5] call Epoch_message_stack;};} foreach [['Thirst',100],['Toxicity',1,1],['Stamina',10]];";
|
action = "if (currentweapon player == '') then {player playmove 'AinvPknlMstpSnonWnonDnon_Putdown_AmovPknlMstpSnonWnonDnon';}else {if (currentweapon player == handgunweapon player) then {player playmove 'AinvPknlMstpSrasWpstDnon_Putdown_AmovPknlMstpSrasWpstDnon';}else { player playmove 'AinvPknlMstpSrasWrflDnon_Putdown_AmovPknlMstpSrasWrflDnon';};};{_output = _x call EPOCH_giveAttributes;if (_output != '') then {[_output, 5] call Epoch_message_stack;};} foreach [['Thirst',100],['Toxicity',1,1],['Stamina',10]];";
|
||||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Drink.paa";
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Drink.paa";
|
||||||
tooltip = "Drink";
|
tooltip = "Drink";
|
||||||
@ -275,4 +275,4 @@ class Epad
|
|||||||
action = "if (isnull (finddisplay 9898)) then {createdialog 'epoch_tablet_gui';};";
|
action = "if (isnull (finddisplay 9898)) then {createdialog 'epoch_tablet_gui';};";
|
||||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Epad.paa";
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Epad.paa";
|
||||||
tooltip = "E-Pad";
|
tooltip = "E-Pad";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user