mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixed empty selectionNames in vehicle crashes
This commit is contained in:
parent
9336e7c9e1
commit
1c2c7ef8d7
@ -53,7 +53,6 @@ if (GVAR(level) < 2) then {
|
||||
};
|
||||
_newDamage = _this call FUNC(handleDamage_caching);
|
||||
_typeOfDamage = [_projectile] call FUNC(getTypeOfDamage);
|
||||
systemChat _typeOfDamage;
|
||||
|
||||
_typeIndex = (GVAR(allAvailableDamageTypes) find _typeOfDamage);
|
||||
_minLethalDamage = 0.01;
|
||||
|
@ -48,7 +48,6 @@ _unit setvariable [QGVAR(bodyPartStatus), _damageBodyParts, true];
|
||||
[_unit] call FUNC(handleDamage_advancedSetDamage);
|
||||
|
||||
_typeOfDamage = [_typeOfProjectile] call FUNC(getTypeOfDamage);
|
||||
systemChat _typeOfDamage;
|
||||
[_unit, _selectionName, _newDamage, _typeOfProjectile, _typeOfDamage] call FUNC(handleDamage_wounds);
|
||||
|
||||
// TODO Disabled until implemented fully
|
||||
|
@ -41,7 +41,8 @@ if (vehicle _unit != _unit && {!(vehicle _unit isKindOf "StaticWeapon")} && {isN
|
||||
if (GVAR(enableVehicleCrashes)) then {
|
||||
_selectionName = _hitSelections select (floor(random(count _hitSelections)));
|
||||
_projectile = "vehiclecrash";
|
||||
_this set [4, "vehiclecrash"];
|
||||
_this set [1, _selectionName];
|
||||
_this set [4, _projectile];
|
||||
};
|
||||
};
|
||||
|
||||
@ -58,7 +59,6 @@ if (_unit getVariable [QGVAR(isFalling), false]) then {
|
||||
_selectionName = ["leg_l", "leg_r"] select (floor(random 2));
|
||||
};
|
||||
_this set [1, _selectionName];
|
||||
systemChat Str(_this);
|
||||
_newDamage = _newDamage * 0.7;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user