mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Localization updates
Some localization updates and some code optimization.
This commit is contained in:
@@ -9,12 +9,12 @@ _hasSledgeHammer = "ItemSledge" in items player;
|
||||
_hasCrowbar = "ItemCrowbar" in items player;
|
||||
|
||||
if (!_hasSledgeHammer) exitWith {
|
||||
"You need a SledgeHammer to break into this compound" call dayz_rollingMessages;
|
||||
localize "STR_EPOCH_BREAKIN_NEED_SLEDGE" call dayz_rollingMessages;
|
||||
uiSleep 1;
|
||||
};
|
||||
|
||||
if (!_hasCrowbar) exitWith {
|
||||
"You need a crowbar to break into this compound." call dayz_rollingMessages;
|
||||
if (!_hasCrowbar) exitWith {
|
||||
localize "STR_EPOCH_BREAKIN_NEED_CROWBAR" call dayz_rollingMessages;
|
||||
uiSleep 1;
|
||||
};
|
||||
|
||||
@@ -30,13 +30,13 @@ while {_isOk} do {
|
||||
|
||||
if (!_hasSledgeHammer) exitWith {
|
||||
_proceed = nil;
|
||||
"You need a sledge hammer to break into a gate." call dayz_rollingMessages;
|
||||
localize "STR_EPOCH_BREAKIN_NEED_SLEDGE" call dayz_rollingMessages;
|
||||
uiSleep 1;
|
||||
};
|
||||
|
||||
if (!_hasCrowbar) exitWith {
|
||||
_proceed = nil;
|
||||
"You need a crowbar to break into a gate." call dayz_rollingMessages;
|
||||
localize "STR_EPOCH_BREAKIN_NEED_CROWBAR" call dayz_rollingMessages;
|
||||
uiSleep 1;
|
||||
};
|
||||
|
||||
@@ -106,13 +106,13 @@ while {_isOk} do {
|
||||
player removeWeapon "ItemSledge";
|
||||
player addMagazine "ItemSledgeHandle";
|
||||
player addMagazine "ItemSledgeHead";
|
||||
"Your SledgeHammer handle has snapped." call dayz_rollingMessages;
|
||||
localize "STR_EPOCH_BREAKIN_BROKEN_SLEDGE" call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
if ([0.04] call fn_chance) then {
|
||||
player removeWeapon "ItemCrowbar";
|
||||
player addWeapon "ItemCrowbarBent";
|
||||
"Your crowbar has bent." call dayz_rollingMessages;
|
||||
localize "STR_EPOCH_BREAKIN_BENT_CROWBAR" call dayz_rollingMessages;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -123,7 +123,7 @@ while {_isOk} do {
|
||||
_proceed = true;
|
||||
};
|
||||
|
||||
format["Breaking into compound, attempt (%1 of %2).", _counter,_limit] call dayz_rollingMessages;
|
||||
format [localize "STR_EPOCH_BREAKIN", _counter,_limit] call dayz_rollingMessages;
|
||||
uiSleep 0.03;
|
||||
};
|
||||
//Tool issues
|
||||
@@ -136,7 +136,7 @@ if (!_proceed) then {
|
||||
[objNull, player, rSwitchMove,""] call RE;
|
||||
player playActionNow "stop";
|
||||
};
|
||||
"Break in cancelled." call dayz_rollingMessages;
|
||||
localize "STR_EPOCH_BREAKIN_CANCELLED" call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
// Working-Factor for chopping wood.
|
||||
@@ -144,11 +144,11 @@ if (!_proceed) then {
|
||||
|
||||
//Completed but no success.
|
||||
if (_proceed and !_brokein) then {
|
||||
format["Break in attempt completed with little success", _counter,_limit] call dayz_rollingMessages;
|
||||
localize "STR_EPOCH_BREAKIN_COMPLETE_FAIL" call dayz_rollingMessages;
|
||||
};
|
||||
//Completed and successful
|
||||
if (_proceed and _brokein) then {
|
||||
"Break in attempt successful." call dayz_rollingMessages;
|
||||
localize "STR_EPOCH_BREAKIN_COMPLETE" call dayz_rollingMessages;
|
||||
|
||||
//Open Gate.
|
||||
_target animate ["DoorR", 1];
|
||||
|
||||
Reference in New Issue
Block a user