changed humanity logic

kill a person with 0 kills and 2500 humanity and receive -2000 humanity
hit.
kill a person with 10 kills and 15000 humanity and receive -2500
humanity hit.
kill a person with 10 kills and -25000 humanity and receive 1500
humanity gain.
This commit is contained in:
vbawol
2013-03-21 16:02:14 -05:00
parent 3a2201111d
commit 94b2687dc9

View File

@@ -45,9 +45,10 @@ if (count _array > 0) then {
if (!isNull _source) then { if (!isNull _source) then {
if (_source != player) then { if (_source != player) then {
_canHitFree = player getVariable ["freeTarget",false]; _canHitFree = player getVariable ["freeTarget",false];
_isBandit = (["Bandit",typeOf player,false] call fnc_inString); _myHumanity = ((player getVariable ["humanity",0]) / 10);
_myKills = ((player getVariable ["humanKills",0]) / 30) * 1000; _myKills = ((player getVariable ["humanKills",0]) / 5) * (1000 - _myHumanity);
if (!_canHitFree and !_isBandit) then {
if (!_canHitFree) then {
//Process Morality Hit //Process Morality Hit
_humanity = -(2000 - _myKills); _humanity = -(2000 - _myKills);
_kills = _source getVariable ["humanKills",0]; _kills = _source getVariable ["humanKills",0];
@@ -63,7 +64,7 @@ if (count _array > 0) then {
if (_humanity < 0) then { if (_humanity < 0) then {
_wait = 0; _wait = 0;
}; };
if (!_canHitFree and !_isBandit) then { if (!_canHitFree) then {
//["dayzHumanity",[_source,_humanity,_wait]] call broadcastRpcCallAll; //["dayzHumanity",[_source,_humanity,_wait]] call broadcastRpcCallAll;
dayzHumanity = [_source,_humanity,_wait]; dayzHumanity = [_source,_humanity,_wait];
publicVariable "dayzHumanity"; publicVariable "dayzHumanity";