From 00f1f8537a31ca9df81cd365ba2befefcdfc8ad5 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Sat, 12 Nov 2016 20:12:04 -0500 Subject: [PATCH] Remove redundant unconscious checks in damage handler This is already check above. My mistake from e4ede46 --- SQF/dayz_code/compile/fn_damageHandler.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/compile/fn_damageHandler.sqf b/SQF/dayz_code/compile/fn_damageHandler.sqf index 49858753e..a87a6b08c 100644 --- a/SQF/dayz_code/compile/fn_damageHandler.sqf +++ b/SQF/dayz_code/compile/fn_damageHandler.sqf @@ -132,7 +132,7 @@ if (_unit == player) then { }; if ((vehicle player == player) and (!_unconscious)) then { - if (_ammo == "tranquiliser_bolt" && !r_player_unconscious) then { + if (_ammo == "tranquiliser_bolt") then { [_unit] spawn { private ["_unit"]; _unit = _this select 0; @@ -148,7 +148,7 @@ if (_unit == player) then { if (_damage > 0.4) then { //Melee knockout system - if ((_isHeadHit) && (_ammo in ["Crowbar_Swing_Ammo","Bat_Swing_Ammo","Sledge_Swing_Ammo"]) && (!r_player_unconscious)) then { + if ((_isHeadHit) && (_ammo in ["Crowbar_Swing_Ammo","Bat_Swing_Ammo","Sledge_Swing_Ammo"])) then { [_unit] spawn { _unit = _this select 0; localize "str_actions_medical_knocked_out" call dayz_rollingMessages;