mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
thirst and hunger loss on unlocking safes/doors
This commit is contained in:
@@ -5,6 +5,12 @@
|
|||||||
*/
|
*/
|
||||||
private ["_display","_obj","_objectCharacterID"];
|
private ["_display","_obj","_objectCharacterID"];
|
||||||
|
|
||||||
|
if(!isNil "DZE_DYN_UnlockDoorInprogress") exitWith { cutText [(localize "str_epoch_player_21") , "PLAIN DOWN"]; };
|
||||||
|
|
||||||
|
DZE_DYN_UnlockDoorInprogress = true;
|
||||||
|
|
||||||
|
[1,1] call dayz_HungerThirst;
|
||||||
|
|
||||||
if(!isNull dayz_selectedDoor) then {
|
if(!isNull dayz_selectedDoor) then {
|
||||||
|
|
||||||
if (!isNil 'KeyCodeTryTimer') then {
|
if (!isNil 'KeyCodeTryTimer') then {
|
||||||
@@ -74,4 +80,5 @@ if(!isNull dayz_selectedDoor) then {
|
|||||||
// close display since no target
|
// close display since no target
|
||||||
_display = findDisplay 41144;
|
_display = findDisplay 41144;
|
||||||
_display closeDisplay 3000;
|
_display closeDisplay 3000;
|
||||||
};
|
};
|
||||||
|
DZE_DYN_UnlockDoorInprogress = nil;
|
||||||
@@ -8,6 +8,8 @@ private ["_objectID","_objectUID","_obj","_ownerID","_dir","_pos","_holder","_we
|
|||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_21") , "PLAIN DOWN"]; };
|
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_21") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
TradeInprogress = true;
|
||||||
|
|
||||||
|
[1,1] call dayz_HungerThirst;
|
||||||
|
|
||||||
{player removeAction _x} forEach s_player_combi;s_player_combi = [];
|
{player removeAction _x} forEach s_player_combi;s_player_combi = [];
|
||||||
s_player_unlockvault = 1;
|
s_player_unlockvault = 1;
|
||||||
|
|
||||||
|
|||||||
@@ -498,6 +498,11 @@ if (!isDedicated) then {
|
|||||||
spawn_loot_small = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\spawn_loot_small.sqf";
|
spawn_loot_small = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\spawn_loot_small.sqf";
|
||||||
// player_projectileNear = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_projectileNear.sqf";
|
// player_projectileNear = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_projectileNear.sqf";
|
||||||
|
|
||||||
|
dayz_HungerThirst = {
|
||||||
|
dayz_hunger = dayz_hunger + (_this select 0);
|
||||||
|
dayz_thirst = dayz_thirst + (_this select 1);
|
||||||
|
};
|
||||||
|
|
||||||
player_sumMedical = {
|
player_sumMedical = {
|
||||||
private["_character","_wounds","_legs","_arms","_medical"];
|
private["_character","_wounds","_legs","_arms","_medical"];
|
||||||
_character = _this;
|
_character = _this;
|
||||||
|
|||||||
Reference in New Issue
Block a user