mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix speed typo in damage handler and vehicle getOut
Vanilla commit:
1f6dd9f787
This commit is contained in:
@@ -26,7 +26,7 @@ _falling = (((_hit == "legs") AND {(_source==_unit)}) AND {((_ammo=="") AND {(Da
|
||||
if (isNull dayz_getout) then {
|
||||
_vehicleArray = nearestObjects [(getposATL (vehicle _unit)),["Car","Helicopter","Motorcycle","Ship"],3];
|
||||
{
|
||||
if ((speed _x > 10) or (speed _x < 8)) exitwith { dayz_HitBy = _x; };
|
||||
if ((speed _x > 10) or (speed _x < -8)) exitwith { dayz_HitBy = _x; };
|
||||
} count _vehicleArray;
|
||||
};
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ if (_unit == player) then {
|
||||
|
||||
|
||||
//Lets make sure we can process some dmg from ejecting from the vehicle even traveling at lower speeds.
|
||||
if (((speed _vehicle) > 15) or ((speed _vehicle) < 10)) then {
|
||||
if (((speed _vehicle) > 15) or ((speed _vehicle) < -10)) then {
|
||||
dayz_getout = _vehicle;
|
||||
dayz_getoutTime = diag_tickTime;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user