From 160e4b84862db91d8d8e3eccd8515497c6c4a13e Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Tue, 10 Sep 2013 21:54:33 -0500 Subject: [PATCH] show damage --- SQF/dayz_server/compile/fnc_plyrHit.sqf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_server/compile/fnc_plyrHit.sqf b/SQF/dayz_server/compile/fnc_plyrHit.sqf index 078672b7b..c043db77f 100644 --- a/SQF/dayz_server/compile/fnc_plyrHit.sqf +++ b/SQF/dayz_server/compile/fnc_plyrHit.sqf @@ -1,6 +1,7 @@ -private ["_victim", "_attacker","_weapon","_distance"]; +private ["_victim", "_attacker","_weapon","_distance","_damage"]; _victim = _this select 0; _attacker = _this select 1; +_damage = _this select 2; if (!isPlayer _victim || !isPlayer _attacker) exitWith {}; if ((name _victim) == (name _attacker)) exitWith {}; @@ -17,7 +18,7 @@ else _distance = _victim distance _attacker; -diag_log format["PHIT: %1 was hit by %2 with %3 from %4m", _victim, _attacker, _weapon, _distance]; +diag_log format["PHIT: %1 was hit by %2 with %3 from %4m with %5 dmg", _victim, _attacker, _weapon, _distance, _damage]; _victim setVariable["AttackedBy", _attacker, true]; _victim setVariable["AttackedByName", (name _attacker), true];