mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-06-10 20:03:21 +03:00
Update all cutText to dayz_rollingMessages
This commit is contained in:
@@ -33,7 +33,7 @@ _tools = getArray (configFile >> "CfgVehicles" >> (typeOf _object) >> "dismantle
|
||||
|
||||
{
|
||||
private ["_end"];
|
||||
if ((_x select 0) in items player) then {_end = false;} else { cutText [format ["Missing tool %1 to dismantle",(_x select 0)] , "PLAIN DOWN"]; _end = true; _proceed = false; };
|
||||
if ((_x select 0) in items player) then {_end = false;} else { format["Missing tool %1 to dismantle",(_x select 0)] call dayz_rollingMessages; _end = true; _proceed = false; };
|
||||
|
||||
if (_end) exitwith { _exit = true; };
|
||||
} foreach _tools;
|
||||
@@ -47,8 +47,8 @@ _onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animati
|
||||
_isWater = (surfaceIsWater (getPosATL player)) or dayz_isSwimming;
|
||||
|
||||
if(_isWater or _onLadder) exitWith {
|
||||
//cutText ["unable to upgrade at this time", "PLAIN DOWN"];
|
||||
titleText [localize "str_CannotUpgrade"];
|
||||
//"unable to upgrade at this time" call dayz_rollingMessages;
|
||||
localize "str_CannotUpgrade" call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
//Start loop
|
||||
@@ -60,7 +60,7 @@ while {_isOk} do {
|
||||
//Check if we have the tools to start
|
||||
{
|
||||
private ["_end"];
|
||||
if ((_x select 0) in items player) then {_end = false;} else { cutText [format ["Missing tool %1 to dismantle",_x] , "PLAIN DOWN"]; _end = true; _proceed = false; };
|
||||
if ((_x select 0) in items player) then {_end = false;} else { format["Missing tool %1 to dismantle",_x] call dayz_rollingMessages; _end = true; _proceed = false; };
|
||||
|
||||
if (_end) exitwith { _exit = true; };
|
||||
}foreach _tools;
|
||||
@@ -68,7 +68,7 @@ while {_isOk} do {
|
||||
|
||||
_claimedBy = _object getVariable["claimed","0"];
|
||||
|
||||
if (_claimedBy != _playerID) exitWith { cutText [format [localize "str_player_beinglooted",_text] , "PLAIN DOWN"]; };
|
||||
if (_claimedBy != _playerID) exitWith { format[localize "str_player_beinglooted",_text] call dayz_rollingMessages; };
|
||||
|
||||
//Run animation
|
||||
player playActionNow "Medic";
|
||||
@@ -133,7 +133,7 @@ while {_isOk} do {
|
||||
if ([(_x select 1)] call fn_chance) then {
|
||||
player removeWeapon (_x select 0);
|
||||
player addWeapon (_x select 2);
|
||||
titleText ["Your tool has been damaged." , "PLAIN DOWN"];
|
||||
"Your tool has been damaged." call dayz_rollingMessages;
|
||||
};
|
||||
}foreach _tools;
|
||||
};
|
||||
@@ -145,7 +145,7 @@ while {_isOk} do {
|
||||
_proceed = true;
|
||||
};
|
||||
|
||||
titleText [format["Dismantle attempt (%1 of %2).", _counter,_limit], "PLAIN DOWN"];
|
||||
format["Dismantle attempt (%1 of %2).",_counter,_limit] call dayz_rollingMessages;
|
||||
uiSleep 0.10;
|
||||
};
|
||||
|
||||
@@ -153,9 +153,9 @@ while {_isOk} do {
|
||||
if (_proceed) then {
|
||||
_claimedBy = _object getVariable["claimed","0"];
|
||||
|
||||
if (_claimedBy != _playerID) exitWith { cutText [format [localize "str_player_beinglooted",_text] , "PLAIN DOWN"]; };
|
||||
if (_claimedBy != _playerID) exitWith { format[localize "str_player_beinglooted",_text] call dayz_rollingMessages; };
|
||||
|
||||
titleText [format["Dismantled, (%1).", (typeOf _object)], "PLAIN DOWN"];
|
||||
format["Dismantled, (%1).",typeOf _object] call dayz_rollingMessages;
|
||||
|
||||
_activatingPlayer = player;
|
||||
PVDZ_obj_Destroy = [_objectID,_objectUID, _activatingPlayer];
|
||||
|
||||
Reference in New Issue
Block a user