mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-27 18:21:50 +03:00
Update all cutText to dayz_rollingMessages
This commit is contained in:
@@ -15,9 +15,9 @@ _text = getText (configFile >> _type >> _classname >> "displayName");
|
||||
|
||||
if (!canPickup) exitwith {
|
||||
if (pickupInit) then {
|
||||
cutText [localize "str_pickup_limit_2","PLAIN DOWN"];
|
||||
localize "str_pickup_limit_2" call dayz_rollingMessages;
|
||||
} else {
|
||||
cutText [localize "str_pickup_limit_3","PLAIN DOWN"];
|
||||
localize "str_pickup_limit_3" call dayz_rollingMessages;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -35,17 +35,17 @@ player playActionNow "PutDown";
|
||||
|
||||
//Adding random chance of arrow is re-usable on pickup
|
||||
_broken = if ((_classname == "WoodenArrow") && {[0.15] call fn_chance}) then {true} else {false};
|
||||
if (_broken) exitWith { deleteVehicle _holder; cutText [localize "str_broken_arrow", "PLAIN DOWN"]; };
|
||||
if (_broken) exitWith { deleteVehicle _holder; localize "str_broken_arrow" call dayz_rollingMessages; };
|
||||
|
||||
uiSleep 0.25; //Why are we waiting? Animation
|
||||
|
||||
_claimedBy = _holder 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; };
|
||||
|
||||
if (_classname isKindOf "Bag_Base_EP1") exitWith {
|
||||
_PlayerNear = {isPlayer _x} count ((getPosATL _holder) nearEntities ["CAManBase", 10]) > 1;
|
||||
if (_PlayerNear) exitWith {cutText [localize "str_pickup_limit_4", "PLAIN DOWN"]};
|
||||
if (_PlayerNear) exitWith {localize "str_pickup_limit_4" call dayz_rollingMessages;};
|
||||
|
||||
diag_log("Picked up a bag: " + _classname);
|
||||
|
||||
@@ -80,7 +80,7 @@ if (_isOk) then {
|
||||
} else {
|
||||
if (!_isOk) exitWith {
|
||||
_holder setVariable["claimed",0,true];
|
||||
cutText [localize "str_player_24", "PLAIN DOWN"];
|
||||
localize "str_player_24" call dayz_rollingMessages;
|
||||
};
|
||||
};
|
||||
uiSleep 3;
|
||||
|
||||
Reference in New Issue
Block a user