mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-03-01 11:11:52 +03:00
Update all cutText to dayz_rollingMessages
This commit is contained in:
@@ -5,10 +5,10 @@ private ["_vehicle","_curFuel","_newFuel","_started","_finished","_animState","_
|
||||
player removeAction s_player_siphonfuel;
|
||||
_hasHose = "equip_hose" in magazines player;
|
||||
|
||||
if (dayz_siphonFuelInProgress) exitWith { cutText [localize "str_siphon_inprogress", "PLAIN DOWN"] };
|
||||
if (!_hasHose) exitWith {cutText [localize "str_siphon_hose", "PLAIN DOWN"] };
|
||||
if (dayz_siphonFuelInProgress) exitWith { localize "str_siphon_inprogress" call dayz_rollingMessages; };
|
||||
if (!_hasHose) exitWith {localize "str_siphon_hose" call dayz_rollingMessages; };
|
||||
_PlayerNear = {isPlayer _x} count ((getPosATL _vehicle) nearEntities ["CAManBase", 10]) > 1;
|
||||
if (_PlayerNear) exitWith {cutText [localize "str_pickup_limit_5", "PLAIN DOWN"];};
|
||||
if (_PlayerNear) exitWith {localize "str_pickup_limit_5" call dayz_rollingMessages;};
|
||||
|
||||
dayz_siphonFuelInProgress = true;
|
||||
_vehicle = _this select 3;
|
||||
@@ -22,7 +22,7 @@ _isMan = _vehicle isKindOf "Man";
|
||||
_isAnimal = _vehicle isKindOf "Animal";
|
||||
_isZombie = _vehicle isKindOf "zZombie_base";
|
||||
|
||||
if (_isMan or _isAnimal or _isZombie) exitWith { cutText [localize "str_siphon_notvehicle", "PLAIN DOWN"] };
|
||||
if (_isMan or _isAnimal or _isZombie) exitWith { localize "str_siphon_notvehicle" call dayz_rollingMessages; };
|
||||
|
||||
// Loop to find containers that can could hold fuel and fill them
|
||||
{
|
||||
@@ -51,7 +51,7 @@ if (_isMan or _isAnimal or _isZombie) exitWith { cutText [localize "str_siphon_n
|
||||
};
|
||||
|
||||
if (_newFuel > 0) then {
|
||||
cutText [format [localize "str_siphon_preparing",_canTypeEmpty], "PLAIN DOWN"];
|
||||
format[localize "str_siphon_preparing",_canTypeEmpty] call dayz_rollingMessages;
|
||||
_finished = false;
|
||||
|
||||
// alert zombies
|
||||
@@ -130,7 +130,7 @@ if (_isMan or _isAnimal or _isZombie) exitWith { cutText [localize "str_siphon_n
|
||||
// Added Nutrition-Factor for work
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
|
||||
cutText [format [localize "str_siphon_drained",_nameText,_canSize], "PLAIN DOWN"];
|
||||
format[localize "str_siphon_drained",_nameText,_canSize] call dayz_rollingMessages;
|
||||
|
||||
call fnc_usec_medic_removeActions;
|
||||
r_action = false;
|
||||
@@ -140,15 +140,15 @@ if (_isMan or _isAnimal or _isZombie) exitWith { cutText [localize "str_siphon_n
|
||||
_abort = true;
|
||||
};
|
||||
} else {
|
||||
cutText [format [localize "str_siphon_notenough",_nameText], "PLAIN DOWN"];
|
||||
format[localize "str_siphon_notenough",_nameText] call dayz_rollingMessages;
|
||||
_abort = true;
|
||||
};
|
||||
} else {
|
||||
cutText [localize "str_siphon_canceled", "PLAIN DOWN"];
|
||||
localize "str_siphon_canceled" call dayz_rollingMessages;
|
||||
_abort = true;
|
||||
};
|
||||
} else {
|
||||
cutText [format [localize "str_siphon_notenough",_nameText], "PLAIN DOWN"];
|
||||
format[localize "str_siphon_notenough",_nameText] call dayz_rollingMessages;
|
||||
_abort = true;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user