Remove source object from Humanity hit network send

Source object is always player and not needed anymore after 8ea21a2
This commit is contained in:
ebaydayz
2016-10-02 13:25:55 -04:00
parent 9fd2f2270b
commit 4509902822
11 changed files with 15 additions and 16 deletions

View File

@@ -116,7 +116,7 @@ if (_unit == player) then {
private ["_source","_humanityHit"];
_source = _this select 0;
_humanityHit = _this select 1;
PVDZ_send = [_source,"Humanity",[_source,_humanityHit,30]];
PVDZ_send = [_source,"Humanity",[_humanityHit,30]];
publicVariableServer "PVDZ_send";
};
};

View File

@@ -95,7 +95,7 @@ if (count _array > 0) then {
_humanityHit = -(2000 - _myKills);
_kills = _source getVariable ["humanKills",0];
_source setVariable ["humanKills",(_kills + 1),true];
PVDZ_send = [_source,"Humanity",[_source,_humanityHit,300]];
PVDZ_send = [_source,"Humanity",[_humanityHit,300]];
publicVariableServer "PVDZ_send";
} else {
//i'm "guilty" - kill me as bandit

View File

@@ -1,7 +1,6 @@
private ["_object","_change","_wait","_humanity","_model","_isMen","_isMenH","_isMenB","_isWomen","_isWomenH","_isWomenB"];
_object = _this select 0;
_change = _this select 1;
_wait = if (count _this > 2) then { _this select 2 } else { 0 };
private ["_change","_wait","_humanity","_model","_isMen","_isMenH","_isMenB","_isWomen","_isWomenH","_isWomenB"];
_change = _this select 0;
_wait = _this select 1;
_humanity = (player getVariable["humanity",0]) + _change;
player setVariable["humanity",_humanity,true];