limit critical part damage to 0.8

per disscussion with @Ignatz-HeMan
This commit is contained in:
vbawol 2017-10-04 11:18:54 -05:00
parent 70b5f02011
commit 3890dbcf0d

View File

@ -29,7 +29,7 @@ if !(isNull _vehObj) then{
// add random damage to vehicle (avoid setting engine or fuel to 100% damage to prevent instant destruction)
if (_spawnDamaged) then {
{
_maxDamage = if (_x in ["HitEngine","HitFuel","HitHull"]) then {0.9} else {1};
_maxDamage = if (_x in ["HitEngine","HitFuel","HitHull"]) then {0.8} else {1};
_vehObj setHitIndex [_forEachIndex,((random 1 max 0.1) min _maxDamage)];
} forEach ((getAllHitPointsDamage _vehObj) param [0,[]]);
};