mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Add percent damaged display for maintenance #1583
This commit is contained in:
@@ -910,8 +910,9 @@ if (!isNull _cursorTarget && !_inVehicle && !_isPZombie && (player distance _cur
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
if (s_player_maint_build < 0) then {
|
if (s_player_maint_build < 0) then {
|
||||||
|
_text2 = _text + " (%" + str(round ((damage _cursorTarget) * 100)) + " damaged)";
|
||||||
s_player_lastTarget set [2,_cursorTarget];
|
s_player_lastTarget set [2,_cursorTarget];
|
||||||
s_player_maint_build = player addAction [format[localize "STR_EPOCH_ACTIONS_MAINTAIN",_text], "\z\addons\dayz_code\actions\player_buildingMaint.sqf",_cursorTarget, -2, false, true];
|
s_player_maint_build = player addAction [format[localize "STR_EPOCH_ACTIONS_MAINTAIN",_text2], "\z\addons\dayz_code\actions\player_buildingMaint.sqf",_cursorTarget, -2, false, true];
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
player removeAction s_player_maint_build;
|
player removeAction s_player_maint_build;
|
||||||
|
|||||||
Reference in New Issue
Block a user