Files
DayZ-Epoch/SQF/dayz_code/medical/wipes.sqf
A Man 6740fb5326 Adding german medical translations, minor changes
Changing the messages for wipes. It cannot be done like it was before for the german language.
Thx @RedLink-kam for the russain translations.

Ive re-ordered the new strings so the Namalsk compatibility is the last again. Namalsk should be always last since it is just an addon from a different mod.
2019-12-14 10:00:35 +01:00

45 lines
1.1 KiB
Plaintext

private ["_finished","_unit"];
_unit = (_this select 3) select 0;
if (dayz_actionInProgress) exitWith {localize "str_player_actionslimit" call dayz_rollingMessages;};
dayz_actionInProgress = true;
player removeMagazine "ItemAntibacterialWipe";
call fnc_usec_medic_removeActions;
r_action = false;
[player,"bandage",0,false] call dayz_zombieSpeak;
if (vehicle player == player) then {
_finished = ["Medic",1] call fn_loopAction;
} else {
uiSleep 3;
_finished = true;
};
if (_finished) then {
if (_unit == player) then {
// Self healing
r_player_Sepsis = [false, 0];
_unit setVariable ["USEC_Sepsis", false, true];
_unit setVariable ["sepsisStarted", nil];
localize "str_actions_medical_wipe_self" call dayz_rollingMessages;
} else {
// Heal another player
PVDZ_send = [_unit,"AntiBacterialWipe",[_unit,player]];
publicVariableServer "PVDZ_send";
// Give humanity
[20,0] call player_humanityChange;
format[localize "str_actions_medical_gave_wipes",(name _unit)] call dayz_rollingMessages;
};
} else {
player addMagazine "ItemAntibacterialWipe";
};
dayz_actionInProgress = false;