From 028924770f9dbed2b17b558ce0b14edc7f98e4ce Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Fri, 27 Jan 2017 17:43:29 -0500 Subject: [PATCH] Increase headshot damage for non-zombie hits A single headshot with a DMR from ~500m will now kill instead of doing ~8k blood as it did previously. --- SQF/dayz_code/compile/fn_damageHandler.sqf | 2 +- SQF/dayz_code/init/compiles.sqf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/compile/fn_damageHandler.sqf b/SQF/dayz_code/compile/fn_damageHandler.sqf index 4e00e7488..25817d11a 100644 --- a/SQF/dayz_code/compile/fn_damageHandler.sqf +++ b/SQF/dayz_code/compile/fn_damageHandler.sqf @@ -239,7 +239,7 @@ if (_damage > 0.4) then { if (!(player == _source) && (_isPlayer or (_isMan && !_isZombieHit))) then { //Scale shots from AI units the same as shots from players _scale = _scale + 800; if (_isHeadHit) then { - _scale = _scale + 500; + _scale = _scale + 1180; }; }; diff --git a/SQF/dayz_code/init/compiles.sqf b/SQF/dayz_code/init/compiles.sqf index d6e695f87..d233dd413 100644 --- a/SQF/dayz_code/init/compiles.sqf +++ b/SQF/dayz_code/init/compiles.sqf @@ -603,6 +603,7 @@ if (!isDedicated) then { death_1 = format["%1 %3 (%4m)",_playerName,_icon,_sourceName,_distance]; death_1_time = diag_ticktime; + //Prevent covering vehicle health bar HUD _offset = if (vehicle player == player) then {0} else {0.1}; [(format ["%1
%2
%3
%4",death_1,death_2,death_3,death_4]),(safeZoneX + _offset),safeZoneY,10,0,0,8000] spawn BIS_fnc_dynamicText; };