This action is only done on the local client.

To heal another player's sepsis, the sepsis bandage is used.
This commit is contained in:
worldwidesorrow
2019-12-11 20:40:50 -06:00
committed by GitHub
parent 3ab6dbcfd5
commit 07c1105dcd

View File

@@ -1,5 +1,4 @@
private ["_finished","_unit"];
_unit = (_this select 3) select 0;
private "_finished";
if (dayz_actionInProgress) exitWith {localize "str_player_actionslimit" call dayz_rollingMessages;};
dayz_actionInProgress = true;
@@ -19,20 +18,12 @@ if (vehicle player == player) then {
};
if (_finished) then {
//["PVCDZ_hlt_Bandage",[_unit,player]] call broadcastRpcCallAll;
//PVCDZ_hlt_Bandage = [_unit,player];
//publicVariable "PVCDZ_hlt_Bandage";
//PVDZ_send = [_unit,"Bandage",[_unit,player]];
//publicVariableServer "PVDZ_send";
if ((_unit == player) or (vehicle player != player)) then {
r_player_Sepsis = [false, 0];
player setVariable ["USEC_Sepsis", false, true];
player setVariable ["sepsisStarted", nil];
};
r_player_Sepsis = [false, 0];
player setVariable ["USEC_Sepsis", false, true];
player setVariable ["sepsisStarted", nil];
localize "str_actions_medical_wipe_self" call dayz_rollingMessages;
} else {
player addMagazine "ItemAntibacterialWipe";
};
dayz_actionInProgress = false;
dayz_actionInProgress = false;