Possible fix for #1645

This commit is contained in:
icomrade
2016-04-29 16:48:14 -04:00
parent a86b28b0a7
commit 8158245b83
2 changed files with 4 additions and 2 deletions

View File

@@ -56,7 +56,8 @@ if (_unit == player) then
{!_isPZombie}); {!_isPZombie});
_humanityHit = 0; _humanityHit = 0;
if (!_punishment) then { if (!_punishment && {(DayZ_LastHumanityChange + 5) > diag_tickTime}) then {
DayZ_LastHumanityChange = diag_tickTime;
_myKills = 200 - (((player getVariable ["humanKills",0]) / 3) * 150); _myKills = 200 - (((player getVariable ["humanKills",0]) / 3) * 150);
// how many non bandit players have I (the shot/damaged player) killed? // how many non bandit players have I (the shot/damaged player) killed?
// punish my killer 200 for shooting a surivor // punish my killer 200 for shooting a surivor
@@ -67,7 +68,7 @@ if (_unit == player) then
}; };
// In the case of outrageous damage (crashes, explosions, desync repeated headshots); cap the limit on humanity lost. // In the case of outrageous damage (crashes, explosions, desync repeated headshots); cap the limit on humanity lost.
[_source,_humanityHit] spawn { [_source,_humanityHit] spawn {
private ["_source","_humanityHit"]; private ["_source","_humanityHit"];
_source = _this select 0; _source = _this select 0;
_humanityHit = _this select 1; _humanityHit = _this select 1;

View File

@@ -360,6 +360,7 @@ PVDZ_obj_Publish = []; // Used for eventhandler to spawn a mirror of players ten
PVCDZ_obj_HideBody = objNull; PVCDZ_obj_HideBody = objNull;
//DayZ settings //DayZ settings
DayZ_LastHumanityChange = diag_tickTime;
dayz_maxAnimals = 5; dayz_maxAnimals = 5;
dayz_maxPlants = 3; dayz_maxPlants = 3;
dayz_animalDistance = 600; dayz_animalDistance = 600;