mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 13:26:39 +03:00
0.69 + 1.7.5.M1D15
This commit is contained in:
@@ -16,6 +16,7 @@ _hasFuelE = "ItemJerrycanEmpty" in magazines player;
|
||||
_hasRawMeat = "FoodSteakRaw" in magazines player;
|
||||
_hasKnife = "ItemKnife" in items player;
|
||||
_hasToolbox = "ItemToolbox" in items player;
|
||||
_hasstatsenabled = player getVariable ["StatsEnabled",false];
|
||||
//_hasTent = "ItemTent" in items player;
|
||||
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
||||
_nearLight = nearestObject [player,"LitObject"];
|
||||
@@ -28,6 +29,14 @@ if (!isNull _nearLight) then {
|
||||
};
|
||||
_canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);
|
||||
|
||||
if (!_hasstatsenabled) then {
|
||||
if (s_player_stats < 0) then {
|
||||
// s_player_stats = player addAction [format[localize "str_actions_stats",_text], "\z\addons\dayz_code\actions\playerstats.sqf"];
|
||||
(findDisplay 46) displayAddEventHandler ["keyDown", "_this call fnc_onKeyDown"];
|
||||
s_player_stats = 1;
|
||||
};
|
||||
};
|
||||
|
||||
//Grab Flare
|
||||
if (_canPickLight and !dayz_hasLight) then {
|
||||
if (s_player_grabflare < 0) then {
|
||||
|
||||
Reference in New Issue
Block a user