mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 13:26:39 +03:00
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:
@@ -102,7 +102,7 @@ class Metal_DrawbridgeLocked_DZ: CinderWallDoorLocked_DZ_Base
|
||||
{
|
||||
displayName = $STR_EPOCH_ACTION_UNLOCK_BRIDGE;
|
||||
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';};};";
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user