mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
This updates the humanity system. It removes the OpenTarget from Dayz Mod which is not needed for Epoch and more confusing as it helps to understand why a player gets a humanity drop or not. The new system gives players always humanity. Survivor killed Survivor = Negative Humanity Survivor killed Bandit = Positive Humanity Survivor killed Hero = Negative Humanity Hero killed Bandit = Positive Humanity Hero killed Hero = Negative Humanity Hero killed Survivor = Negative Humanity Bandit killed Bandit = Negative Humanity Bandit killed Hero = Negative Humanity Bandit killed Survivor = Negative Humanity The values are strict and have no longer a complicated calculation based on a kill counter. This change needs more testing in the beta state of this update.
10 lines
186 B
Plaintext
10 lines
186 B
Plaintext
private ["_change","_humanity"];
|
|
/*
|
|
Set humanity chanages
|
|
*/
|
|
|
|
_change = _this;
|
|
|
|
_humanity = (player getVariable["humanity",0]) + _change;
|
|
player setVariable["humanity",_humanity,true];
|