mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-17 17:56:40 +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:
@@ -45,7 +45,7 @@ if (_hasAntibiotics) then {
|
||||
publicVariableServer "PVDZ_send";
|
||||
|
||||
//Give humnaity for good deeds
|
||||
[player,20] call player_humanityChange;
|
||||
[20,0] call player_humanityChange;
|
||||
|
||||
_msg = "str_actions_medical_gave_antibiotics";
|
||||
};
|
||||
|
||||
@@ -55,7 +55,7 @@ if (_finished) then {
|
||||
} else {
|
||||
PVDZ_send = [_unit,"Bandage",[_unit,player]];
|
||||
publicVariableServer "PVDZ_send";
|
||||
[player,20] call player_humanityChange;
|
||||
[20,0] call player_humanityChange;
|
||||
};
|
||||
} else {
|
||||
r_interrupt = false;
|
||||
|
||||
@@ -51,7 +51,7 @@ if (_finished) then {
|
||||
|
||||
//Give humanity reward to player giving the morphine to another player.
|
||||
if (_item in ["ItemMorphine"]) then {
|
||||
[player,50] call player_humanityChange;
|
||||
[50,0] call player_humanityChange;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ if (!_isDead) then {
|
||||
uiSleep 5;
|
||||
|
||||
//give humanity
|
||||
[player,25] call player_humanityChange;
|
||||
[25,0] call player_humanityChange;
|
||||
|
||||
PVDZ_send = [_unit,"Epinephrine",[_unit,player,"ItemEpinephrine"]];
|
||||
publicVariableServer "PVDZ_send";
|
||||
|
||||
@@ -46,7 +46,7 @@ if ((_unit == player) or (vehicle player != player)) then {
|
||||
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medMorphine.sqf";
|
||||
} else {
|
||||
//PVCDZ_plr_Humanity = [player,50];
|
||||
[player,50] call player_humanityChange;
|
||||
[50,0] call player_humanityChange;
|
||||
};
|
||||
|
||||
//["PVCDZ_hlt_Morphine",[_unit,player]] call broadcastRpcCallAll;
|
||||
|
||||
@@ -16,7 +16,7 @@ if ((_unit == player) or (vehicle player != player)) then {
|
||||
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medPainkiller.sqf";
|
||||
} else {
|
||||
//PVCDZ_plr_Humanity = [player,20];
|
||||
[player,20] call player_humanityChange;
|
||||
[20,0] call player_humanityChange;
|
||||
};
|
||||
|
||||
player removeMagazine "ItemPainkiller";
|
||||
|
||||
@@ -194,7 +194,7 @@ while {r_doLoop} do {
|
||||
localize "str_actions_medical_transfusion_successful" call dayz_rollingMessages;
|
||||
//see Note 1
|
||||
//[player,_unit,"loc",rTITLETEXT,localize "str_actions_medical_transfusion_successful","PLAIN DOWN"] call RE;
|
||||
if (!_badBag and _bagFound) then { [player,_humanityAwarded] call player_humanityChange; };
|
||||
if (!_badBag and _bagFound) then { [_humanityAwarded,0] call player_humanityChange; };
|
||||
r_doLoop = false;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user