mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
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:
@@ -1,5 +1,4 @@
|
|||||||
private ["_finished","_unit"];
|
private "_finished";
|
||||||
_unit = (_this select 3) select 0;
|
|
||||||
|
|
||||||
if (dayz_actionInProgress) exitWith {localize "str_player_actionslimit" call dayz_rollingMessages;};
|
if (dayz_actionInProgress) exitWith {localize "str_player_actionslimit" call dayz_rollingMessages;};
|
||||||
dayz_actionInProgress = true;
|
dayz_actionInProgress = true;
|
||||||
@@ -19,20 +18,12 @@ if (vehicle player == player) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (_finished) then {
|
if (_finished) then {
|
||||||
//["PVCDZ_hlt_Bandage",[_unit,player]] call broadcastRpcCallAll;
|
r_player_Sepsis = [false, 0];
|
||||||
//PVCDZ_hlt_Bandage = [_unit,player];
|
player setVariable ["USEC_Sepsis", false, true];
|
||||||
//publicVariable "PVCDZ_hlt_Bandage";
|
player setVariable ["sepsisStarted", nil];
|
||||||
//PVDZ_send = [_unit,"Bandage",[_unit,player]];
|
localize "str_actions_medical_wipe_self" call dayz_rollingMessages;
|
||||||
//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];
|
|
||||||
};
|
|
||||||
} else {
|
} else {
|
||||||
player addMagazine "ItemAntibacterialWipe";
|
player addMagazine "ItemAntibacterialWipe";
|
||||||
};
|
};
|
||||||
|
|
||||||
dayz_actionInProgress = false;
|
dayz_actionInProgress = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user