mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-03 11:41:36 +03:00
Update fnc_plyrHit.sqf
This commit is contained in:
1 parent
6b32700e63
commit
7312c91941
1 file changed
+5
@@ -16,6 +16,11 @@ else
|
||||
_weapon = _weapon select 0;
|
||||
};
|
||||
|
||||
if (_weapon == "" and (vehicle _attacker) != _attacker) then {
|
||||
_vehicle = typeOf (vehicle _attacker);
|
||||
_weapon = getText (configFile >> "CfgVehicles" >> _vehicle >> "displayName");
|
||||
};
|
||||
|
||||
_distance = _victim distance _attacker;
|
||||
|
||||
diag_log format["PHIT: %1 was hit by %2 with %3 from %4m with %5 dmg", _victim, _attacker, _weapon, _distance, _damage];
|
||||
|
||||
Reference in new issue
Block a user