mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-18 10:16:39 +03:00
Toggle for salvaging from locked vehicles (#1757)
* Toggle for salvaging from locked vehicles
This adds the ability to remove salvaging from locked vehicles which
helps avoid griefing
Fixes a spelling mistake for a localization string
Makes it possible to salvage 0% damaged items again, this was disabled
as per
3292d84b85
I've had this running on my server for a year or so with no issues (not
that it doesn't affect it, i've just never seen it)
* Toggle salvagable locked vehicles changers
@ebaydayz fixed
This commit is contained in:
@@ -35,9 +35,8 @@ _hitpoints = _vehicle call vehicle_getHitpoints;
|
||||
|
||||
} forEach _hitpoints;
|
||||
|
||||
if (count _hitpoints > 0 ) then {
|
||||
//ArmA OA String
|
||||
if (count _hitpoints > 0) then {
|
||||
_cancel = dayz_myCursorTarget addAction [localize "str_action_cancel_action", "\z\addons\dayz_code\actions\repair_cancel.sqf","repair", 0, true, false];
|
||||
s_player_repairActions set [count s_player_repairActions,_cancel];
|
||||
s_player_repair_crtl = 1;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user