Add comment about salvage vehicle work around

This commit is contained in:
ebaydayz
2016-09-09 12:58:41 -04:00
parent eadbbb18bf
commit e5e212bbc2
4 changed files with 7 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ if (_hasToolbox) then {
//Remove melee magazines (BIS_fnc_invAdd fix)
{player removeMagazines _x} count MeleeMagazines;
_damage = [_vehicle,_hitpoint] call object_getHit;
if (_damage < 1 && {_damage > 0}) then {
if (_damage < 1 && {_damage > 0}) then { //Tempfix for issue where certain hitpoints on some vehicles do not get damaged and allow infinite removal
_BreakableParts = ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitGlass5","HitGlass6","HitLGlass","HitRGlass","HitEngine","HitFuel","HitHRotor"];
if (_hitpoint in _BreakableParts) then {
if ((random 1) < (_damage * 0.9)) then { //max 90% chance to break