Update all cutText to dayz_rollingMessages

This commit is contained in:
ebaydayz
2016-04-16 15:47:49 -04:00
parent 993ce14da6
commit 5157228e67
137 changed files with 604 additions and 621 deletions

View File

@@ -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;