From 289b1307ffe057a36bdea208a9d9435263cb0985 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Sun, 21 Aug 2016 12:06:12 -0400 Subject: [PATCH] Fix speed typo in damage handler and vehicle getOut Vanilla commit: https://github.com/DayZMod/DayZ/commit/1f6dd9f787a75c3644efeb3849d184da80856f5e --- SQF/dayz_code/compile/fn_damageHandler.sqf | 2 +- SQF/dayz_code/compile/vehicle_getOut.sqf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/compile/fn_damageHandler.sqf b/SQF/dayz_code/compile/fn_damageHandler.sqf index 3dc1855d7..e50a62046 100644 --- a/SQF/dayz_code/compile/fn_damageHandler.sqf +++ b/SQF/dayz_code/compile/fn_damageHandler.sqf @@ -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; }; diff --git a/SQF/dayz_code/compile/vehicle_getOut.sqf b/SQF/dayz_code/compile/vehicle_getOut.sqf index 0df444670..f345723b1 100644 --- a/SQF/dayz_code/compile/vehicle_getOut.sqf +++ b/SQF/dayz_code/compile/vehicle_getOut.sqf @@ -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; };