mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Possible fix for #1645
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user