mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-22 16:10:49 +03:00
Update all cutText to dayz_rollingMessages
This commit is contained in:
@@ -16,7 +16,7 @@ private ["_bag","_dropOnFloor"];
|
||||
|
||||
_dropOnFloor = {
|
||||
private ["_location","_object"];
|
||||
systemChat format[(localize "str_epoch_player_314"),_this];
|
||||
systemChat format[localize "str_epoch_player_314",_this];
|
||||
_location = player modeltoworld [0,0.3,0];
|
||||
if ((_location select 2) < 0) then {_location set [2,0];};
|
||||
_object = createVehicle ["WeaponHolder",_location,[],0,"CAN_COLLIDE"];
|
||||
@@ -28,14 +28,14 @@ _dropOnFloor = {
|
||||
if (_this in items player) then {
|
||||
_bag = unitBackpack player;
|
||||
if (!isNull _bag) then {
|
||||
systemChat format[(localize "str_epoch_player_313"),_this];
|
||||
systemChat format[localize "str_epoch_player_313",_this];
|
||||
_bag addWeaponCargoGlobal [_this,1];
|
||||
} else {
|
||||
_this call _dropOnFloor;
|
||||
};
|
||||
} else {
|
||||
if !([player,_this] call BIS_fnc_invAdd) then {
|
||||
systemChat (localize "str_epoch_player_107");
|
||||
systemChat localize "str_epoch_player_107";
|
||||
_this call _dropOnFloor;
|
||||
};
|
||||
};
|
||||
@@ -13,7 +13,7 @@ if (0 != count Dayz_constructionContext) then {
|
||||
Dayz_BuildCamera camsetrelpos [-1,0,60];
|
||||
Dayz_BuildCamera camcommit 0;
|
||||
Dayz_constructionContext set [3, true];
|
||||
cutText [localize "str_buildCameraOn", "PLAIN DOWN"];
|
||||
localize "str_buildCameraOn" call dayz_rollingMessages;
|
||||
};
|
||||
}
|
||||
else {
|
||||
@@ -22,7 +22,7 @@ if (0 != count Dayz_constructionContext) then {
|
||||
player switchCamera (Dayz_constructionContext select 2);
|
||||
camdestroy Dayz_BuildCamera;
|
||||
Dayz_constructionContext set [3, false];
|
||||
cutText [localize "str_buildCameraOff", "PLAIN DOWN"];
|
||||
localize "str_buildCameraOff" call dayz_rollingMessages;
|
||||
};
|
||||
_handled = true; // used by keyboard.sqf
|
||||
};
|
||||
@@ -39,7 +39,7 @@ _hasItems = true;
|
||||
_missingQty = (_countIn - _qty);
|
||||
_hasItems = false;
|
||||
_textMissing = getText(configFile >> "CfgMagazines" >> _missing >> "displayName");
|
||||
cutText [format[(localize "STR_EPOCH_ACTIONS_6"), _missingQty, _textMissing], "PLAIN DOWN"];
|
||||
format[localize "STR_EPOCH_ACTIONS_6",_missingQty,_textMissing] call dayz_rollingMessages;
|
||||
};
|
||||
} forEach _items;
|
||||
_hasItems
|
||||
|
||||
@@ -83,7 +83,7 @@ if (_unit == player) then
|
||||
[_unit] spawn {
|
||||
private ["_unit"];
|
||||
_unit = _this select 0;
|
||||
cutText [localize "str_player_tranquilized", "PLAIN DOWN"];
|
||||
localize "str_player_tranquilized" call dayz_rollingMessages;
|
||||
//systemChat format ["YOU HAVE BEEN TRANQUILISED"];
|
||||
//uiSleep 2;
|
||||
// 0 fadeSound 0.05;
|
||||
@@ -102,7 +102,7 @@ if (_unit == player) then
|
||||
if ((_isHeadHit) and (_ammo in ["Crowbar_Swing_Ammo","Bat_Swing_Ammo","Sledge_Swing_Ammo"])) then {
|
||||
[_unit] spawn {
|
||||
_unit = _this select 0;
|
||||
cutText ["you have been knocked out", "PLAIN DOWN"];
|
||||
"you have been knocked out" call dayz_rollingMessages;
|
||||
[_unit,0.01] call fnc_usec_damageUnconscious;
|
||||
_unit setVariable ["NORRN_unconscious", true, true];
|
||||
r_player_timeout = 20 + round(random 60);
|
||||
|
||||
@@ -8,7 +8,7 @@ if ((vehicle player) == player) then {
|
||||
_dis = if (_cTarget isKindOf "USEC_ch53_E" || _cTarget isKindOf "MV22") then {25} else {12};
|
||||
|
||||
if ((locked _cTarget) && {(_cTarget isKindOf "LandVehicle") or {_cTarget isKindOf "Air"} or {_cTarget isKindOf "Ship"}} && {(player distance _cTarget) < _dis}) then {
|
||||
cutText [localize "str_epoch_player_7","PLAIN DOWN"];
|
||||
localize "str_epoch_player_7" call dayz_rollingMessages;
|
||||
_display closeDisplay 1;
|
||||
};
|
||||
|
||||
@@ -16,7 +16,7 @@ if ((vehicle player) == player) then {
|
||||
_friendlies = player getVariable ["friendlies",[]];
|
||||
_rcharID = _cTarget getVariable ["CharacterID","0"];
|
||||
if (!canbuild && {_cTarget isKindOf "Man"} && {alive _cTarget} && {!((typeOf _cTarget) in serverTraders)} && {!(_rcharID in _friendlies)} && {(player distance _cTarget) < 12}) then {
|
||||
cutText [localize "STR_EPOCH_PLAYER_316","PLAIN DOWN"];
|
||||
localize "STR_EPOCH_PLAYER_316" call dayz_rollingMessages;
|
||||
_display closeDisplay 1;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -20,7 +20,7 @@ _hasTools = true;
|
||||
if (!(_x in _items)) exitWith {
|
||||
_hasTools = false;
|
||||
_missing = getText (configFile >> "cfgWeapons" >> _x >> "displayName");
|
||||
cutText [format[(localize "STR_EPOCH_PLAYER_137"), _missing] , "PLAIN DOWN"];
|
||||
format[localize "STR_EPOCH_PLAYER_137",_missing] call dayz_rollingMessages;
|
||||
};
|
||||
} count _tools;
|
||||
_hasTools
|
||||
|
||||
@@ -50,5 +50,5 @@ _tobe_removed_total = 0;
|
||||
if (_tobe_removed_total == _removed_total) exitWith { true };
|
||||
// missing parts
|
||||
{ player addMagazine _x; } count _temp_removed_array;
|
||||
cutText [format[(localize "STR_EPOCH_PLAYER_145"), _removed_total, _tobe_removed_total], "PLAIN DOWN"];
|
||||
format[localize "STR_EPOCH_PLAYER_145",_removed_total,_tobe_removed_total] call dayz_rollingMessages;
|
||||
false
|
||||
|
||||
@@ -10,12 +10,12 @@ _canDo = (!r_drag_sqf && !r_player_unconscious && !_onLadder);
|
||||
_nearByObjects = nearestObjects [player,_objects,_range];
|
||||
|
||||
if (count _nearByObjects == 0) exitWith {
|
||||
cutText [localize _error,"PLAIN DOWN"];
|
||||
localize _error call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
_targetObject = _nearByObjects select 0;
|
||||
if (!isNull _targetObject && _canDo) then {
|
||||
[0,1,2,_targetObject] spawn player_removeObject;
|
||||
} else {
|
||||
cutText [localize _error,"PLAIN DOWN"];
|
||||
localize _error call dayz_rollingMessages;
|
||||
};
|
||||
@@ -39,31 +39,31 @@ if(_activated) then {
|
||||
// this method is said to be faster than switch, lets try it.
|
||||
call {
|
||||
if (DZE_AntiWallCounter == DZE_AntiWallLimit) exitWith {
|
||||
cutText [localize "str_epoch_player_9","PLAIN DOWN"];
|
||||
localize "str_epoch_player_9" call dayz_rollingMessages;
|
||||
_id = [player,"crushed"] spawn player_death;
|
||||
};
|
||||
if ((_vehicle emptyPositions "driver") > 0) exitWith {
|
||||
cutText [localize "STR_EPOCH_ACTIONS_15","PLAIN DOWN"];
|
||||
localize "STR_EPOCH_ACTIONS_15" call dayz_rollingMessages;
|
||||
player moveInDriver _vehicle;
|
||||
DZE_AntiWallCounter = DZE_AntiWallCounter + 1;
|
||||
};
|
||||
if ((_vehicle emptyPositions "gunner") > 0) exitWith {
|
||||
cutText [localize "STR_EPOCH_ACTIONS_15","PLAIN DOWN"];
|
||||
localize "STR_EPOCH_ACTIONS_15" call dayz_rollingMessages;
|
||||
player moveInGunner _vehicle;
|
||||
DZE_AntiWallCounter = DZE_AntiWallCounter + 1;
|
||||
};
|
||||
if ((_vehicle emptyPositions "commander") > 0) exitWith {
|
||||
cutText [localize "STR_EPOCH_ACTIONS_15","PLAIN DOWN"];
|
||||
localize "STR_EPOCH_ACTIONS_15" call dayz_rollingMessages;
|
||||
player moveInCommander _vehicle;
|
||||
DZE_AntiWallCounter = DZE_AntiWallCounter + 1;
|
||||
};
|
||||
if ((_vehicle emptyPositions "cargo") > 0) exitWith {
|
||||
cutText [localize "STR_EPOCH_ACTIONS_15","PLAIN DOWN"];
|
||||
localize "STR_EPOCH_ACTIONS_15" call dayz_rollingMessages;
|
||||
player moveInCargo _vehicle;
|
||||
DZE_AntiWallCounter = DZE_AntiWallCounter + 1;
|
||||
};
|
||||
// kill player if none of the above are matched
|
||||
cutText [localize "str_epoch_player_9","PLAIN DOWN"];
|
||||
localize "str_epoch_player_9" call dayz_rollingMessages;
|
||||
_id = [player,"crushed"] spawn player_death;
|
||||
};
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ playMusic "dayz_track_death_1";
|
||||
uiSleep 2;
|
||||
|
||||
for "_x" from 5 to 1 step -1 do {
|
||||
titleText [format[localize "str_return_lobby", _x], "PLAIN DOWN", 1];
|
||||
format[localize "str_return_lobby",_x] call dayz_rollingMessages;
|
||||
uiSleep 1;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
private ["_objectID","_objectUID","_obj","_ownerID","_dir","_pos","_holder","_weapons","_magazines","_backpacks","_alreadyPacking","_lockedClass","_text","_playerNear"];
|
||||
|
||||
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_10","PLAIN DOWN"];};
|
||||
if (DZE_ActionInProgress) exitWith {localize "str_epoch_player_10" call dayz_rollingMessages;};
|
||||
DZE_ActionInProgress = true;
|
||||
|
||||
player removeAction s_player_lockvault;
|
||||
@@ -26,16 +26,16 @@ uiSleep 1;
|
||||
uiSleep 5;
|
||||
|
||||
_playerNear = _obj call dze_isnearest_player;
|
||||
if (_playerNear) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_11","PLAIN DOWN"];};
|
||||
if (_playerNear) exitWith {DZE_ActionInProgress = false; localize "str_epoch_player_11" call dayz_rollingMessages;};
|
||||
|
||||
_ownerID = _obj getVariable["CharacterID","0"];
|
||||
_objectID = _obj getVariable["ObjectID","0"];
|
||||
_objectUID = _obj getVariable["ObjectUID","0"];
|
||||
|
||||
if((_ownerID != dayz_combination) && (_ownerID != dayz_playerUID)) exitWith {DZE_ActionInProgress = false; s_player_lockvault = -1; cutText [format[(localize "str_epoch_player_115"),_text], "PLAIN DOWN"]; };
|
||||
if((_ownerID != dayz_combination) && (_ownerID != dayz_playerUID)) exitWith {DZE_ActionInProgress = false; s_player_lockvault = -1; format[localize "str_epoch_player_115",_text] call dayz_rollingMessages; };
|
||||
|
||||
_alreadyPacking = _obj getVariable["packing",0];
|
||||
if (_alreadyPacking == 1) exitWith {DZE_ActionInProgress = false; s_player_lockvault = -1; cutText [format[(localize "str_epoch_player_116"),_text], "PLAIN DOWN"]};
|
||||
if (_alreadyPacking == 1) exitWith {DZE_ActionInProgress = false; s_player_lockvault = -1; format[localize "str_epoch_player_116",_text] call dayz_rollingMessages;};
|
||||
_obj setVariable["packing",1];
|
||||
|
||||
_dir = direction _obj;
|
||||
@@ -71,7 +71,7 @@ if (!isNull _obj) then {
|
||||
_holder setVariable ["MagazineCargo", _magazines, true];
|
||||
_holder setVariable ["BackpackCargo", _backpacks, true];
|
||||
|
||||
cutText [format[(localize "str_epoch_player_117"),_text], "PLAIN DOWN"];
|
||||
format[localize "str_epoch_player_117",_text] call dayz_rollingMessages;
|
||||
};
|
||||
s_player_lockvault = -1;
|
||||
DZE_ActionInProgress = false;
|
||||
|
||||
@@ -30,12 +30,12 @@ while {(!isNull _display) && !r_player_dead} do {
|
||||
case (_playerCheck) : {
|
||||
_btnAbort ctrlEnable false;
|
||||
_btnAbort ctrlSetText format["%1 (in 30)", _btnAbortText];
|
||||
cutText [localize "str_abort_playerclose", "PLAIN DOWN"];
|
||||
localize "str_abort_playerclose" call dayz_rollingMessages;
|
||||
};
|
||||
case (_zedCheck) : {
|
||||
_btnAbort ctrlEnable false;
|
||||
_btnAbort ctrlSetText format["%1 (in 10)", _btnAbortText];
|
||||
cutText [localize "str_abort_zedsclose", "PLAIN DOWN"];
|
||||
localize "str_abort_zedsclose" call dayz_rollingMessages;
|
||||
};
|
||||
case (_inCombat && !_zedCheck && !_playerCheck) : {
|
||||
_btnAbort ctrlEnable false;
|
||||
@@ -43,7 +43,7 @@ while {(!isNull _display) && !r_player_dead} do {
|
||||
};
|
||||
case (isInTraderCity) : {
|
||||
_btnAbort ctrlEnable false;
|
||||
cutText [localize "str_epoch_player_12","PLAIN DOWN"];
|
||||
localize "str_epoch_player_12" call dayz_rollingMessages;
|
||||
};
|
||||
default {
|
||||
_btnAbort ctrlEnable true;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
[_obj] call player_packTent;
|
||||
*/
|
||||
if (DZE_ActionInProgress) exitWith {cutText [localize "str_player_beingpacked","PLAIN DOWN"];};
|
||||
if (DZE_ActionInProgress) exitWith {localize "str_player_beingpacked" call dayz_rollingMessages;};
|
||||
DZE_ActionInProgress = true;
|
||||
_obj = _this;
|
||||
_ownerID = _obj getVariable["CharacterID","0"];
|
||||
@@ -22,7 +22,7 @@ if (_ownerID == dayz_characterID or (typeOf _obj in _campItems)) then { _pickup
|
||||
|
||||
if (_pickup) then {
|
||||
_alreadyPacking = _obj getVariable["packing",0];
|
||||
if (_alreadyPacking == 1) exitWith {cutText [format [localize "str_player_beingpacked"],"PLAIN DOWN"]; DZE_ActionInProgress = false;};
|
||||
if (_alreadyPacking == 1) exitWith {localize "str_player_beingpacked" call dayz_rollingMessages; DZE_ActionInProgress = false;};
|
||||
|
||||
_obj setVariable["packing",1];
|
||||
_dir = direction _obj;
|
||||
@@ -76,8 +76,8 @@ if (_pickup) then {
|
||||
_countr = _countr + 1;
|
||||
} count _objWpnTypes;
|
||||
|
||||
cutText [localize "str_success_tent_pack", "PLAIN DOWN"];
|
||||
localize "str_success_tent_pack" call dayz_rollingMessages;
|
||||
} else {
|
||||
cutText [localize "str_fail_tent_pack", "PLAIN DOWN"];
|
||||
localize "str_fail_tent_pack" call dayz_rollingMessages;
|
||||
};
|
||||
DZE_ActionInProgress = false;
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
private ["_activatingPlayer","_obj","_ownerID","_objectID","_objectUID","_alreadyPacking","_location1","_location2","_dir","_pos","_bag","_holder","_weapons","_magazines","_backpacks","_objWpnTypes","_objWpnQty","_countr","_packedClass","_text","_playerNear"];
|
||||
|
||||
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_15","PLAIN DOWN"];};
|
||||
if (DZE_ActionInProgress) exitWith {localize "str_epoch_player_15" call dayz_rollingMessages;};
|
||||
DZE_ActionInProgress = true;
|
||||
|
||||
_activatingPlayer = player;
|
||||
@@ -19,7 +19,7 @@ if(isNull _obj || !(alive _obj)) exitWith { DZE_ActionInProgress = false; };
|
||||
|
||||
_playerNear = _obj call dze_isnearest_player;
|
||||
|
||||
if(_playerNear) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_16","PLAIN DOWN"];};
|
||||
if(_playerNear) exitWith {DZE_ActionInProgress = false; localize "str_epoch_player_16" call dayz_rollingMessages;};
|
||||
|
||||
_ownerID = _obj getVariable["CharacterID","0"];
|
||||
_objectID = _obj getVariable["ObjectID","0"];
|
||||
@@ -28,23 +28,23 @@ _objectUID = _obj getVariable["ObjectUID","0"];
|
||||
player removeAction s_player_packvault;
|
||||
s_player_packvault = 1;
|
||||
|
||||
if(_objectID == "0" && _objectUID == "0") exitWith {DZE_ActionInProgress = false; s_player_packvault = -1; cutText [format[(localize "str_epoch_player_118"),_text], "PLAIN DOWN"];};
|
||||
if(_objectID == "0" && _objectUID == "0") exitWith {DZE_ActionInProgress = false; s_player_packvault = -1; format[localize "str_epoch_player_118",_text] call dayz_rollingMessages;};
|
||||
|
||||
if((_ownerID != dayz_combination) && (_ownerID != dayz_playerUID)) exitWith { DZE_ActionInProgress = false; s_player_packvault = -1; cutText [format[(localize "str_epoch_player_119"),_text], "PLAIN DOWN"];};
|
||||
if((_ownerID != dayz_combination) && (_ownerID != dayz_playerUID)) exitWith { DZE_ActionInProgress = false; s_player_packvault = -1; format[localize "str_epoch_player_119",_text] call dayz_rollingMessages;};
|
||||
|
||||
_alreadyPacking = _obj getVariable["packing",0];
|
||||
|
||||
if (_alreadyPacking == 1) exitWith {DZE_ActionInProgress = false; s_player_packvault = -1; cutText [format[(localize "str_epoch_player_120"),_text] , "PLAIN DOWN"]};
|
||||
if (_alreadyPacking == 1) exitWith {DZE_ActionInProgress = false; s_player_packvault = -1; format[localize "str_epoch_player_120",_text] call dayz_rollingMessages;};
|
||||
_obj setVariable["packing",1];
|
||||
|
||||
cutText [format[(localize "str_epoch_player_121"),_text], "PLAIN DOWN"];
|
||||
format[localize "str_epoch_player_121",_text] call dayz_rollingMessages;
|
||||
uiSleep 1;
|
||||
_location1 = getPosATL player;
|
||||
uiSleep 5;
|
||||
_location2 = getPosATL player;
|
||||
|
||||
if(_location1 distance _location2 > 0.1) exitWith {
|
||||
cutText [format[(localize "str_epoch_player_122"),_text] , "PLAIN DOWN"];
|
||||
format[localize "str_epoch_player_122",_text] call dayz_rollingMessages;
|
||||
_obj setVariable["packing",0];
|
||||
s_player_packvault = -1;
|
||||
DZE_ActionInProgress = false;
|
||||
@@ -114,7 +114,7 @@ if(!isNull _obj && alive _obj) then {
|
||||
_countr = _countr + 1;
|
||||
} count _objWpnTypes;
|
||||
|
||||
cutText [format[(localize "str_epoch_player_123"),_text], "PLAIN DOWN"];
|
||||
format[localize "str_epoch_player_123",_text] call dayz_rollingMessages;
|
||||
|
||||
player action ["Gear", _holder];
|
||||
};
|
||||
|
||||
@@ -15,7 +15,7 @@ _playerUID = [player] call FNC_GetPlayerUID;
|
||||
//BackUp Weapons and Mags
|
||||
_weapons = weapons player;
|
||||
_magazines = call player_countMagazines; //magazines player;
|
||||
if ((_playerUID == dayz_playerUID) && (count _magazines == 0) && (count (magazines player) > 0)) exitWith {cutText [localize "str_actions_switchmodel_fail", "PLAIN DOWN"]};
|
||||
if ((_playerUID == dayz_playerUID) && (count _magazines == 0) && (count (magazines player) > 0)) exitWith {localize "str_actions_switchmodel_fail" call dayz_rollingMessages;};
|
||||
|
||||
_primweapon = primaryWeapon player;
|
||||
_secweapon = secondaryWeapon player;
|
||||
|
||||
@@ -7,7 +7,7 @@ _enterORleave = _this select 2;
|
||||
switch _enterORleave do {
|
||||
case "enter": {
|
||||
if (_showText) then {
|
||||
cutText [format [localize "STR_EPOCH_TRADER_ENTER", _traderName], "PLAIN DOWN"];
|
||||
format[localize "STR_EPOCH_TRADER_ENTER", _traderName] call dayz_rollingMessages;
|
||||
};
|
||||
canbuild = false;
|
||||
inTraderCity = _traderName;
|
||||
@@ -16,7 +16,7 @@ switch _enterORleave do {
|
||||
|
||||
case "leave": {
|
||||
if (_showText) then {
|
||||
cutText [format [localize "STR_EPOCH_TRADER_LEAVE", _traderName], "PLAIN DOWN"];
|
||||
format[localize "STR_EPOCH_TRADER_LEAVE", _traderName] call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
canbuild = true;
|
||||
|
||||
@@ -212,7 +212,7 @@ TraderDialogBuy = {
|
||||
private ["_index", "_item", "_data"];
|
||||
_index = _this select 0;
|
||||
if (_index < 0) exitWith {
|
||||
cutText [localize "str_epoch_player_6","PLAIN DOWN"];
|
||||
localize "str_epoch_player_6" call dayz_rollingMessages;
|
||||
};
|
||||
_item = TraderItemList select _index;
|
||||
_data = [_item select 0, _item select 3, 1, _item select 2, "buy", _item select 4, _item select 1, _item select 8];
|
||||
@@ -224,7 +224,7 @@ TraderDialogSell = {
|
||||
private ["_index", "_item", "_data"];
|
||||
_index = _this select 0;
|
||||
if (_index < 0) exitWith {
|
||||
cutText [localize "str_epoch_player_6","PLAIN DOWN"];
|
||||
localize "str_epoch_player_6" call dayz_rollingMessages;
|
||||
};
|
||||
_item = TraderItemList select _index;
|
||||
_data = [_item select 6, _item select 0, _item select 5, 1, "sell", _item select 1, _item select 7, _item select 8];
|
||||
|
||||
@@ -201,7 +201,7 @@ TraderDialogBuy = {
|
||||
private ["_index", "_item", "_data"];
|
||||
_index = _this select 0;
|
||||
if (_index < 0) exitWith {
|
||||
cutText [localize "str_epoch_player_6","PLAIN DOWN"];
|
||||
localize "str_epoch_player_6" call dayz_rollingMessages;
|
||||
};
|
||||
_item = TraderItemList select _index;
|
||||
_data = [_item select 0, _item select 3, 1, _item select 2, "buy", _item select 4, _item select 1, _item select 8];
|
||||
@@ -213,7 +213,7 @@ TraderDialogSell = {
|
||||
private ["_index", "_item", "_data"];
|
||||
_index = _this select 0;
|
||||
if (_index < 0) exitWith {
|
||||
cutText [localize "str_epoch_player_6","PLAIN DOWN"];
|
||||
localize "str_epoch_player_6" call dayz_rollingMessages;
|
||||
};
|
||||
_item = TraderItemList select _index;
|
||||
_data = [_item select 6, _item select 0, _item select 5, 1, "sell", _item select 1, _item select 7, _item select 8];
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
private ["_display","_obj","_objectCharacterID"];
|
||||
|
||||
if (!isNil "DZE_DYN_UnlockDoorInprogress") exitWith {cutText [localize "str_epoch_player_21","PLAIN DOWN"];};
|
||||
if (!isNil "DZE_DYN_UnlockDoorInprogress") exitWith {localize "str_epoch_player_21" call dayz_rollingMessages;};
|
||||
|
||||
DZE_DYN_UnlockDoorInprogress = true;
|
||||
|
||||
@@ -24,7 +24,7 @@ if (!isNull dayz_selectedDoor) then {
|
||||
// close display since another player is closer
|
||||
_display = findDisplay 41144;
|
||||
_display closeDisplay 3000;
|
||||
cutText [localize "STR_EPOCH_ACTIONS_16","PLAIN DOWN"];
|
||||
localize "STR_EPOCH_ACTIONS_16" call dayz_rollingMessages;
|
||||
} else {
|
||||
// get object combination
|
||||
_objectCharacterID = _obj getVariable ["CharacterID","0"];
|
||||
@@ -57,7 +57,7 @@ if (!isNull dayz_selectedDoor) then {
|
||||
if (!isNil 'KeyCodeTryTimer') then {KeyCodeTryTimer = diag_tickTime+10;};
|
||||
if (KeyCodeTry >= ((round(random 4)) + 4)) then {
|
||||
if (isNil 'KeyCodeTryTimer') then {KeyCodeTryTimer = diag_tickTime+10;};
|
||||
cutText [localize "str_epoch_player_19","PLAIN DOWN"];
|
||||
localize "str_epoch_player_19" call dayz_rollingMessages;
|
||||
_display = findDisplay 41144;
|
||||
_display closeDisplay 3000;
|
||||
};
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
private ["_objectID","_objectUID","_obj","_ownerID","_dir","_pos","_holder","_weapons","_magazines","_backpacks","_objWpnTypes","_objWpnQty","_countr","_alreadyPacking","_playerNear","_playerID","_claimedBy","_unlockedClass","_text","_nul","_objType"];
|
||||
|
||||
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_21","PLAIN DOWN"];};
|
||||
if (DZE_ActionInProgress) exitWith {localize "str_epoch_player_21" call dayz_rollingMessages;};
|
||||
DZE_ActionInProgress = true;
|
||||
|
||||
{player removeAction _x} count s_player_combi;
|
||||
@@ -21,7 +21,7 @@ if !(_objType in DZE_LockedStorage) exitWith {
|
||||
};
|
||||
|
||||
_playerNear = _obj call dze_isnearest_player;
|
||||
if (_playerNear) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_20","PLAIN DOWN"];};
|
||||
if (_playerNear) exitWith {DZE_ActionInProgress = false; localize "str_epoch_player_20" call dayz_rollingMessages;};
|
||||
|
||||
// Silently exit if object no longer exists || alive
|
||||
if (isNull _obj || !(alive _obj)) exitWith { DZE_ActionInProgress = false; };
|
||||
@@ -33,7 +33,7 @@ _alreadyPacking = _obj getVariable["packing",0];
|
||||
_claimedBy = _obj getVariable["claimed","0"];
|
||||
_ownerID = _obj getVariable["CharacterID","0"];
|
||||
|
||||
if (_alreadyPacking == 1) exitWith {DZE_ActionInProgress = false; cutText [format[(localize "str_epoch_player_124"),_text], "PLAIN DOWN"]};
|
||||
if (_alreadyPacking == 1) exitWith {DZE_ActionInProgress = false; format[localize "str_epoch_player_124",_text] call dayz_rollingMessages;};
|
||||
|
||||
// Promt user for password if _ownerID != dayz_playerUID
|
||||
if ((_ownerID == dayz_combination) || (_ownerID == dayz_playerUID)) then {
|
||||
@@ -123,11 +123,11 @@ if ((_ownerID == dayz_combination) || (_ownerID == dayz_playerUID)) then {
|
||||
} count _objWpnTypes;
|
||||
};
|
||||
|
||||
cutText [format[(localize "str_epoch_player_125"),_text], "PLAIN DOWN"];
|
||||
format[localize "str_epoch_player_125",_text] call dayz_rollingMessages;
|
||||
};
|
||||
} else {
|
||||
DZE_ActionInProgress = false;
|
||||
cutText [format[(localize "str_player_beinglooted"),_text] , "PLAIN DOWN"];
|
||||
format[localize "str_player_beinglooted",_text] call dayz_rollingMessages;
|
||||
};
|
||||
} else {
|
||||
["Working",0,[100,15,10,0]] call dayz_NutritionSystem;
|
||||
@@ -136,7 +136,7 @@ if ((_ownerID == dayz_combination) || (_ownerID == dayz_playerUID)) then {
|
||||
[player,"repair",0,false] call dayz_zombieSpeak;
|
||||
[player,25,true,(getPosATL player)] spawn player_alertZombies;
|
||||
uiSleep 5;
|
||||
cutText [format[(localize "str_epoch_player_126"),_text], "PLAIN DOWN"];
|
||||
format[localize "str_epoch_player_126",_text] call dayz_rollingMessages;
|
||||
};
|
||||
s_player_unlockvault = -1;
|
||||
DZE_ActionInProgress = false;
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
*/
|
||||
private ["_proceed","_itemIn","_countIn","_missing","_missingQty","_qty","_removed","_tobe_removed_total","_textMissing","_num_removed","_removed_total","_temp_removed_array","_countr","_objectID","_objectUID","_location","_dir","_objectCharacterID","_weapons","_magazines","_backpacks","_classname","_object","_holder","_objWpnTypes","_objWpnQty","_newclassname","_requirements","_upgrade","_vehicle","_findNearestVehicles","_findNearestVehicle","_IsNearVehicle"];
|
||||
|
||||
if (DZE_ActionInProgress) exitWith {cutText [localize "STR_EPOCH_PLAYER_52","PLAIN DOWN"];};
|
||||
if (DZE_ActionInProgress) exitWith {localize "STR_EPOCH_PLAYER_52" call dayz_rollingMessages;};
|
||||
DZE_ActionInProgress = true;
|
||||
|
||||
// This is used to find correct upgrade based what upgrades was called allows multiple upgrades per vehicle.
|
||||
_upgrade = _this;
|
||||
|
||||
if (vehicle player != player) exitWith {DZE_ActionInProgress = false; cutText [localize "STR_EPOCH_ACTIONS_18","PLAIN DOWN"]};
|
||||
if (vehicle player != player) exitWith {DZE_ActionInProgress = false; localize "STR_EPOCH_ACTIONS_18" call dayz_rollingMessages;};
|
||||
|
||||
// look for nearest empty vehicle
|
||||
_findNearestVehicles = player nearEntities [["LandVehicle"],10];
|
||||
@@ -113,7 +113,7 @@ if (_IsNearVehicle >= 1) then {
|
||||
_objectUID = _vehicle getVariable ["ObjectUID","0"];
|
||||
|
||||
if(_objectID == "0" && _objectUID == "0") then {
|
||||
cutText [localize "str_epoch_player_50","PLAIN DOWN"];
|
||||
localize "str_epoch_player_50" call dayz_rollingMessages;
|
||||
}
|
||||
else {
|
||||
// Get position
|
||||
@@ -128,31 +128,31 @@ if (_IsNearVehicle >= 1) then {
|
||||
PVDZE_veh_Upgrade = [_vehicle,[_dir,_location],_newclassname,true,_objectCharacterID,player];
|
||||
publicVariableServer "PVDZE_veh_Upgrade";
|
||||
|
||||
cutText [localize "STR_EPOCH_VEHUP_SUCCESS","PLAIN DOWN"];
|
||||
localize "STR_EPOCH_VEHUP_SUCCESS" call dayz_rollingMessages;
|
||||
{player reveal _x;} count (player nearEntities [["LandVehicle"],10]);
|
||||
};
|
||||
}
|
||||
else {
|
||||
{player addMagazine _x;} count _temp_removed_array_mag;
|
||||
{player addWeapon _x;} count _temp_removed_array_wep;
|
||||
cutText [format[(localize "str_epoch_player_145"),_removed_total,_tobe_removed_total], "PLAIN DOWN"];
|
||||
format[localize "str_epoch_player_145",_removed_total,_tobe_removed_total] call dayz_rollingMessages;
|
||||
};
|
||||
}
|
||||
else {
|
||||
_textMissing = getText(configFile >> "CfgMagazines" >> _missing >> "displayName");
|
||||
cutText [format[(localize "STR_EPOCH_ACTIONS_6"),_missingQty, _textMissing], "PLAIN DOWN"];
|
||||
format[localize "STR_EPOCH_ACTIONS_6",_missingQty, _textMissing] call dayz_rollingMessages;
|
||||
};
|
||||
}
|
||||
else {
|
||||
cutText [localize "str_epoch_player_82","PLAIN DOWN"];
|
||||
localize "str_epoch_player_82" call dayz_rollingMessages;
|
||||
};
|
||||
}
|
||||
else {
|
||||
cutText [localize "str_epoch_player_245","PLAIN DOWN"];
|
||||
localize "str_epoch_player_245" call dayz_rollingMessages;
|
||||
};
|
||||
}
|
||||
else {
|
||||
cutText [localize "STR_EPOCH_PLAYER_27","PLAIN DOWN"];
|
||||
localize "STR_EPOCH_PLAYER_27" call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
DZE_ActionInProgress = false;
|
||||
|
||||
@@ -23,7 +23,7 @@ if (_unit == player) then {
|
||||
PVDZ_Server_LogIt = format["Player %1 exited a vehicle(%2) close to buildable object as %3",_unit, (typeof _vehicle), _position];
|
||||
publicVariableServer "PVDZ_Server_LogIt";
|
||||
|
||||
cutText ["Unable to exit vehicle too close to buildables objects", "PLAIN DOWN"];
|
||||
"Unable to exit vehicle too close to buildables objects" call dayz_rollingMessages;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user