mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Vehicle Damage On Spawn #824
This commit is contained in:
parent
aea096ce68
commit
b08e092cd4
@ -63,7 +63,7 @@ if !(isNull _vehObj) then{
|
|||||||
if (_spawnDamaged) then {
|
if (_spawnDamaged) then {
|
||||||
{
|
{
|
||||||
_maxDamage = if (_x in ["HitEngine","HitFuel"]) then {0.9} else {1};
|
_maxDamage = if (_x in ["HitEngine","HitFuel"]) then {0.9} else {1};
|
||||||
_vehObj setHitIndex [_forEachIndex,random(_maxDamage)];
|
_vehObj setHitIndex [_forEachIndex,((random 1 max 0.1) min _maxDamage)];
|
||||||
} forEach ((getAllHitPointsDamage _vehObj) param [0,[]]);
|
} forEach ((getAllHitPointsDamage _vehObj) param [0,[]]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user