mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Remove humanity hit for killing player zombies
If you kill a player zombie you should not lose humanity. Player_death is now synced with the humanity hit code in the damage handler. Also the killing blow set variable was moved up because the same conditions were already checked above.
This commit is contained in:
@@ -94,10 +94,7 @@ if (_unit == player) then {
|
||||
// - Accidental Murder - \\ When wearing the garb of a non-civilian you are taking your life in your own hands
|
||||
// Attackers humanity should not be punished for killing a survivor who has shrouded his identity in military garb.
|
||||
|
||||
_punishment =
|
||||
((_isBandit ||
|
||||
{player getVariable ["OpenTarget",false]}) &&
|
||||
{!_isPZombie});
|
||||
_punishment = ((_isBandit or {player getVariable ["OpenTarget",false]}) && !_isPZombie);
|
||||
_humanityHit = 0;
|
||||
|
||||
if (!_punishment && {(dayz_lastHumanityChange + 3) < diag_tickTime}) then {
|
||||
|
||||
Reference in New Issue
Block a user