Fix door penalty when door management was off

DZE_doorManagementHarderPenalty had no effect when the door management was disabled.

Thanks @IsGoose for pointing that out
This commit is contained in:
A Man
2022-04-12 11:35:24 +02:00
parent 495d7dfa0d
commit fb2bf9462d
6 changed files with 30 additions and 21 deletions

View File

@@ -102,7 +102,7 @@ class Metal_DrawbridgeLocked_DZ: CinderWallDoorLocked_DZ_Base
{ {
displayName = $STR_EPOCH_ACTION_UNLOCK_BRIDGE; displayName = $STR_EPOCH_ACTION_UNLOCK_BRIDGE;
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])"; condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };
}; };

View File

@@ -275,7 +275,7 @@ class Land_DZE_WoodDoorLocked: Land_DZE_WoodDoorLocked_Base {
{ {
displayName = $STR_EPOCH_DOORS_UNLOCK; displayName = $STR_EPOCH_DOORS_UNLOCK;
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])"; condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };
}; };
@@ -366,7 +366,7 @@ class Land_DZE_LargeWoodDoorLocked: Land_DZE_WoodDoorLocked_Base {
{ {
displayName = $STR_EPOCH_DOORS_UNLOCK; displayName = $STR_EPOCH_DOORS_UNLOCK;
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])"; condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };
}; };
@@ -459,7 +459,7 @@ class Land_DZE_GarageWoodDoorLocked: Land_DZE_WoodDoorLocked_Base {
{ {
displayName = $STR_EPOCH_DOORS_UNLOCK; displayName = $STR_EPOCH_DOORS_UNLOCK;
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])"; condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };
}; };
@@ -577,7 +577,7 @@ class Land_DZE_WoodGateLocked: Land_DZE_WoodDoorLocked_Base {
{ {
displayName = $STR_BLD_ACTIONS_UNLOCKGATE; displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])"; condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };
class DestructionEffects : DestructionEffects { class DestructionEffects : DestructionEffects {
@@ -703,7 +703,7 @@ class Land_DZE_WoodOpenTopGarageLocked: Land_DZE_WoodDoorLocked_Base {
{ {
displayName = $STR_EPOCH_DOORS_UNLOCK; displayName = $STR_EPOCH_DOORS_UNLOCK;
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])"; condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };
class DestructionEffects : DestructionEffects { class DestructionEffects : DestructionEffects {
@@ -771,7 +771,7 @@ class CinderWallDoorLocked_DZ: CinderWallDoorLocked_DZ_Base {
{ {
displayName = $STR_EPOCH_DOORS_UNLOCK; displayName = $STR_EPOCH_DOORS_UNLOCK;
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])"; condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };
}; };
@@ -864,7 +864,7 @@ class CinderWallDoorSmallLocked_DZ: CinderWallDoorLocked_DZ_Base {
{ {
displayName = $STR_EPOCH_DOORS_UNLOCK; displayName = $STR_EPOCH_DOORS_UNLOCK;
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])"; condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };
}; };
@@ -1007,7 +1007,7 @@ class CinderGateLocked_DZ: CinderWallDoorLocked_DZ_Base {
{ {
displayName = $STR_BLD_ACTIONS_UNLOCKGATE; displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])"; condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };
}; };
@@ -1113,7 +1113,7 @@ class CinderGarageOpenTopLocked_DZ: CinderWallDoorLocked_DZ_Base {
{ {
displayName = $STR_EPOCH_DOORS_UNLOCK; displayName = $STR_EPOCH_DOORS_UNLOCK;
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])"; condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };
}; };
@@ -1219,7 +1219,7 @@ class CinderDoorHatchLocked_DZ: CinderWallDoorLocked_DZ_Base {
{ {
displayName = $STR_EPOCH_DOORS_UNLOCK; displayName = $STR_EPOCH_DOORS_UNLOCK;
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])"; condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };
}; };
@@ -1340,7 +1340,7 @@ class DoorLocked_DZ: CinderWallDoorLocked_DZ_Base {
{ {
displayName = $STR_EPOCH_DOORS_UNLOCK; displayName = $STR_EPOCH_DOORS_UNLOCK;
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])"; condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };
class DestructionEffects { class DestructionEffects {

View File

@@ -73,7 +73,7 @@ class WoodenGate_1_DZ: DZE_Housebase
priority = 6; priority = 6;
displayName = $STR_BLD_ACTIONS_UNLOCKGATE; displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
condition = "!keypadCancel && (DZE_Lock_Door != (this getvariable['CharacterID','0'])) && (this animationPhase ""DoorR"" == 0)"; condition = "!keypadCancel && (DZE_Lock_Door != (this getvariable['CharacterID','0'])) && (this animationPhase ""DoorR"" == 0)";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };
@@ -135,7 +135,7 @@ class WoodenGate_2_DZ: DZE_Housebase
priority = 6; priority = 6;
displayName = $STR_BLD_ACTIONS_UNLOCKGATE; displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
condition = "!keypadCancel && (DZE_Lock_Door != (this getvariable['CharacterID','0'])) && (this animationPhase ""DoorR"" == 0)"; condition = "!keypadCancel && (DZE_Lock_Door != (this getvariable['CharacterID','0'])) && (this animationPhase ""DoorR"" == 0)";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };
@@ -197,7 +197,7 @@ class WoodenGate_3_DZ: DZE_Housebase
priority = 6; priority = 6;
displayName = $STR_BLD_ACTIONS_UNLOCKGATE; displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
condition = "!keypadCancel && (DZE_Lock_Door != (this getvariable['CharacterID','0'])) && (this animationPhase ""DoorR"" == 0)"; condition = "!keypadCancel && (DZE_Lock_Door != (this getvariable['CharacterID','0'])) && (this animationPhase ""DoorR"" == 0)";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };
@@ -258,7 +258,7 @@ class WoodenGate_4_DZ: DZE_Housebase
priority = 6; priority = 6;
displayName = $STR_BLD_ACTIONS_UNLOCKGATE; displayName = $STR_BLD_ACTIONS_UNLOCKGATE;
condition = "!keypadCancel && (DZE_Lock_Door != (this getvariable['CharacterID','0'])) && (this animationPhase ""DoorR"" == 0)"; condition = "!keypadCancel && (DZE_Lock_Door != (this getvariable['CharacterID','0'])) && (this animationPhase ""DoorR"" == 0)";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };

View File

@@ -177,7 +177,7 @@ class CinderWallWindowLocked_DZ: CinderWallDoorLocked_DZ_Base {
{ {
displayName = $STR_BLD_ACTIONS_UNLOCK_WINDOW; displayName = $STR_BLD_ACTIONS_UNLOCK_WINDOW;
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])"; condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };
}; };
@@ -371,7 +371,7 @@ class Concrete_Bunker_Locked_DZ: CinderWallDoorLocked_DZ_Base {
{ {
displayName = $STR_BLD_ACTIONS_UNLOCK_BUNKER; displayName = $STR_BLD_ACTIONS_UNLOCK_BUNKER;
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])"; condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog 'DoorAccess';} else {if (DZE_doorManagementHarderPenalty && {dayz_lastCodeFail > diag_tickTime}) then {format [localize 'STR_EPOCH_PLAYER_19_WAIT',round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;} else {createdialog 'ComboLockUI';};};";
}; };
}; };
}; };

View File

@@ -7,7 +7,7 @@
if (dayz_actionInProgress) exitWith {localize "str_epoch_player_21" call dayz_rollingMessages;}; if (dayz_actionInProgress) exitWith {localize "str_epoch_player_21" call dayz_rollingMessages;};
dayz_actionInProgress = true; dayz_actionInProgress = true;
private ["_display","_displayCombo","_displayEye","_doorMethod","_hasAccess","_notNearestPlayer","_obj","_objectCharacterID","_code"]; private ["_msg","_display","_displayCombo","_displayEye","_doorMethod","_hasAccess","_notNearestPlayer","_obj","_objectCharacterID","_code"];
_doorMethod = ""; _doorMethod = "";
_displayCombo = findDisplay 41144; _displayCombo = findDisplay 41144;
@@ -83,11 +83,12 @@ if (!isNull dayz_selectedDoor) then {
if (DZE_doorManagementHarderPenalty) then { if (DZE_doorManagementHarderPenalty) then {
dayz_lastCodeFail = (diag_tickTime + dayz_UnlockTime); dayz_lastCodeFail = (diag_tickTime + dayz_UnlockTime);
dayz_UnlockTime = dayz_UnlockTime * 2; dayz_UnlockTime = dayz_UnlockTime * 2;
_msg = format [localize "str_epoch_player_19",round(dayz_lastCodeFail - diag_tickTime)];
} else { } else {
dayz_lastCodeFail = (diag_tickTime + dayz_UnlockTime); _msg = localize "str_epoch_player_19_1";
}; };
format [localize "str_epoch_player_19",round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages; _msg call dayz_rollingMessages;
_display closeDisplay 2; _display closeDisplay 2;
}; };
}; };

View File

@@ -23319,6 +23319,14 @@
<French>Trop d'erreurs avec le code, patientez %1 secondes</French> <French>Trop d'erreurs avec le code, patientez %1 secondes</French>
<Czech>Mnohokrát jsi zadal špatný kód, musíš počkat %1 vteřin</Czech> <Czech>Mnohokrát jsi zadal špatný kód, musíš počkat %1 vteřin</Czech>
</Key> </Key>
<Key ID="STR_EPOCH_PLAYER_19_1">
<English>You entered the wrong code.</English>
<German>Du hast einen falschen Code eingegeben.</German>
<Russian>Вы несколько раз ввели неправильный код.</Russian>
<Dutch>Je hebt te vaak een foute code ingevoerd.</Dutch>
<French>Trop d'erreurs avec le code.</French>
<Czech>Mnohokrát jsi zadal špatný kód.</Czech>
</Key>
<Key ID="STR_EPOCH_PLAYER_19_WAIT"> <Key ID="STR_EPOCH_PLAYER_19_WAIT">
<English>You must wait another %1 seconds before you can enter another code.</English> <English>You must wait another %1 seconds before you can enter another code.</English>
<German>Du musst weitere %1 Sekunden warten, bevor du einen anderen Code eingeben kannst.</German> <German>Du musst weitere %1 Sekunden warten, bevor du einen anderen Code eingeben kannst.</German>