Update damage handler

- Added damage and selection to server RPT hit log
- Increased damage a bit for RunOver due to consistently low damage in
testing
This commit is contained in:
ebaydayz
2017-01-28 16:08:56 -05:00
parent c227bb6019
commit c10a7c3bc9
3 changed files with 26 additions and 29 deletions

View File

@@ -438,10 +438,10 @@ if (dayz_townGenerator) then {execVM "\z\addons\dayz_server\system\lit_fireplace
_unit = _x select 0;
_source = _x select 1;
if (((!(isNil {_source})) && {!(isNull _source)}) && {((_source isKindOf "CAManBase") && {owner _unit != owner _source})}) then {
diag_log format ["P1ayer %1 hit by %2 %3 from %4 meters",
_unit call fa_plr2Str, _source call fa_plr2Str, toString (_x select 2), _x select 3];
diag_log format ["P1ayer %1 hit by %2 %3 from %4 meters in %5 for %6 damage",
_unit call fa_plr2Str, _source call fa_plr2Str, toString (_x select 2), _x select 3, toString (_x select 4), _x select 5];
if (_unit getVariable ["processedDeath",0] == 0) then {
_unit setVariable ["attacker", name _source];
if (alive _source) then {_unit setVariable ["attacker", name _source];};
_unit setVariable ["noatlf4", diag_ticktime]; // server-side "not in combat" test, if player is not already dead
};
};