mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-24 00:50:50 +03:00
Remove source object from Humanity hit network send
Source object is always player and not needed anymore after 8ea21a2
This commit is contained in:
@@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user