Remove fuel tank and engine salvage

This commit is contained in:
icomrade
2016-10-10 16:25:25 -04:00
parent f663cdcb39
commit 0c1e9205ab
2 changed files with 5 additions and 5 deletions

View File

@@ -64,11 +64,11 @@ if (_hasToolbox) then {
if (_isOK) then {
_selection = getText(configFile >> "cfgVehicles" >> _type >> "HitPoints" >> _hitpoint >> "name");
if ((_hitpoint == "HitEngine") or (_hitpoint == "HitFuel")) then {
/*if ((_hitpoint == "HitEngine") or (_hitpoint == "HitFuel")) then {
[_vehicle, _selection, 0.89] call fnc_veh_handleDam;
} else {
} else {*/
[_vehicle, _selection, 1] call fnc_veh_handleDam;
};
//};
_vehicle call fnc_veh_ResetEH;
_vehicle setvelocity [0,0,1];
if(_brokenPart) then {

View File

@@ -19,7 +19,7 @@ _HasNoGlassKind = (_vehicle isKindOf "Motorcycle");
_6WheelTypeArray = ["HitLMWheel","HitRMWheel"];
_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"];
_RemovedPartsArray = ["motor","HitLF2Wheel","HitRF2Wheel","HitBody","HitMissiles","HitHull","HitVRotor"];
_RemovedPartsArray = ["motor","HitLF2Wheel","HitRF2Wheel","HitBody","HitMissiles","HitHull","HitVRotor","HitFuel","HitEngine"];
if (_isATV or _HasNoGlassKind) then {
_hitpoints = _hitpoints - _NoGlassArray;
@@ -43,7 +43,7 @@ if (_is6WheelType) then {
_damage = [_vehicle,_x] call object_getHit;
if !(_x in _RemovedPartsArray) then {
if (_x in ["HitFuel","HitEngine"] && _damage >= 0.89) then {_damage = 1;};
//if (_x in ["HitFuel","HitEngine"] && _damage >= 0.89) then {_damage = 1;};
_cmpt = toArray (_x);
_cmpt set [0,20];
_cmpt set [1,toArray ("-") select 0];