Re-add removal of fuel tanks and engine

Thanks for the tip on fuel tanks @SmokeyBR
This commit is contained in:
icomrade
2016-09-19 14:11:45 -04:00
parent 91e5e875c2
commit c97015fb9a

View File

@@ -19,7 +19,7 @@ _HasNoGlassKind = (_vehicle isKindOf "Motorcycle");
_6WheelTypeArray = ["HitLMWheel","HitRMWheel"]; _6WheelTypeArray = ["HitLMWheel","HitRMWheel"];
_NoGlassArray = ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitGlass5","HitGlass6","HitLGlass","HitRGlass"]; _NoGlassArray = ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitGlass5","HitGlass6","HitLGlass","HitRGlass"];
_NoExtraWheelsArray = ["wheel_1_4_steering","wheel_2_4_steering","wheel_1_3_steering","wheel_2_3_steering"]; _NoExtraWheelsArray = ["wheel_1_4_steering","wheel_2_4_steering","wheel_1_3_steering","wheel_2_3_steering"];
_RemovedPartsArray = ["motor","HitEngine","HitLF2Wheel","HitRF2Wheel","HitBody","HitMissiles","HitHull","HitVRotor"]; _RemovedPartsArray = ["motor","HitLF2Wheel","HitRF2Wheel","HitBody","HitMissiles","HitHull","HitVRotor"];
if (_isATV or _HasNoGlassKind) then { if (_isATV or _HasNoGlassKind) then {
_hitpoints = _hitpoints - _NoGlassArray; _hitpoints = _hitpoints - _NoGlassArray;
@@ -43,6 +43,7 @@ if (_is6WheelType) then {
_damage = [_vehicle,_x] call object_getHit; _damage = [_vehicle,_x] call object_getHit;
if !(_x in _RemovedPartsArray) then { if !(_x in _RemovedPartsArray) then {
if (_x in ["HitFuel","HitEngine"] && _damage >= 0.89) then {_damage = 1;};
_cmpt = toArray (_x); _cmpt = toArray (_x);
_cmpt set [0,20]; _cmpt set [0,20];
_cmpt set [1,toArray ("-") select 0]; _cmpt set [1,toArray ("-") select 0];