Fixed empty selectionNames in vehicle crashes

This commit is contained in:
ulteq 2015-06-10 17:02:14 +02:00
parent 9336e7c9e1
commit 1c2c7ef8d7
3 changed files with 2 additions and 4 deletions

View File

@ -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;

View File

@ -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

View File

@ -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;
};