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:
oiad
2016-09-09 09:32:27 +12:00
committed by ebaydayz
parent 4731780f5a
commit 51f85acb9e
5 changed files with 21 additions and 15 deletions

View File

@@ -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;
};
};