mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
fixes to repairing
This commit is contained in:
@@ -61,7 +61,10 @@ if (_section and _hasToolbox) then {
|
|||||||
//dont waste loot on undamaged parts
|
//dont waste loot on undamaged parts
|
||||||
if (_damage > 0) then {
|
if (_damage > 0) then {
|
||||||
|
|
||||||
player removeMagazine _part;
|
// ensure part was removed
|
||||||
|
_num_removed = ([player,_part] call BIS_fnc_invRemove);
|
||||||
|
|
||||||
|
if(_num_removed == 1) then {
|
||||||
|
|
||||||
//Fix the part
|
//Fix the part
|
||||||
_selection = getText(configFile >> "cfgVehicles" >> _type >> "HitPoints" >> _hitpoint >> "name");
|
_selection = getText(configFile >> "cfgVehicles" >> _type >> "HitPoints" >> _hitpoint >> "name");
|
||||||
@@ -80,6 +83,8 @@ if (_section and _hasToolbox) then {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
|
|||||||
Reference in New Issue
Block a user