mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 07:12:55 +03:00
Fix missing string
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
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;
|
||||||
|
|
||||||
private ["_msg","_finished","_unit","_item","_humanityGain"];
|
local _unit = (_this select 3) select 0;
|
||||||
|
local _item = (_this select 3) select 1;
|
||||||
_unit = (_this select 3) select 0;
|
local _finished = false;
|
||||||
_item = (_this select 3) select 1;
|
|
||||||
|
|
||||||
player removeMagazine _item;
|
player removeMagazine _item;
|
||||||
|
|
||||||
@@ -18,23 +17,23 @@ if (vehicle player == player) then {
|
|||||||
_finished = true;
|
_finished = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
_msg = ["STR_EQUIP_NAME_15","STR_ITEM_NAME_WOODENSPLINT"] select (_item == "equip_woodensplint");
|
local _displayName = getText(configFile >> "CfgMagazines" >> _item >> "displayName");
|
||||||
|
|
||||||
if (_finished) then {
|
if (_finished) then {
|
||||||
if (_unit == player) then {
|
if (_unit == player) then {
|
||||||
//Self Healing
|
//Self Healing
|
||||||
[player,player,_item] call player_medMorphine;
|
[player,player,_item] call player_medMorphine;
|
||||||
|
|
||||||
format [localize "str_actions_medical_general_self", (localize _msg)] call dayz_rollingMessages;
|
format [localize "str_actions_medical_general_self",_displayName] call dayz_rollingMessages;
|
||||||
} else {
|
} else {
|
||||||
//Give humanity reward to player giving the morphine to another player.
|
//Give humanity reward to player giving the morphine to another player.
|
||||||
_humanityGain = [25,50] select (_item == "ItemMorphine");
|
local _humanityGain = [25,50] select (_item == "ItemMorphine");
|
||||||
_humanityGain call player_humanityChange;
|
_humanityGain call player_humanityChange;
|
||||||
|
|
||||||
PVDZ_send = [_unit,"Morphine",[_unit,player,_item]];
|
PVDZ_send = [_unit,"Morphine",[_unit,player,_item]];
|
||||||
publicVariableServer "PVDZ_send";
|
publicVariableServer "PVDZ_send";
|
||||||
|
|
||||||
format [localize "str_actions_medical_general_give", (localize _msg),(name _unit)] call dayz_rollingMessages;
|
format [localize "str_actions_medical_general_give",_displayName,(name _unit)] call dayz_rollingMessages;
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
player addMagazine _item;
|
player addMagazine _item;
|
||||||
|
|||||||
Reference in New Issue
Block a user