Combination Locks Overhaul - ZenarchistCode/ZenModPack GitHub Wiki

image

What Is This?

This mod overhauls how combination locks work in DayZ. It's designed to enhance the vanilla experience and is best suited for lightly modded servers, although it works with most popular basebuilding mods.

Combination locks will now remember the players who enter the code - much like the Code Lock mod. You only need to enter the code once, then the door will open for you without needing to enter the code again.

Config Explanation:

Config file: profiles/Zenarchist/ZenComboLocksConfig.json

{
    "ConfigVersion": "2",
    "ServerConfig": {
        "PrintLogs": 1, // Mostly ignored - you'll find anything important printed into the vanilla game logs
        "UnlockOnOpen": 0, // If enabled, the lock will be "takeable" when the door is opened instead of locked onto the gate
        "DigitMultiplier": 1, // How many digits to "pretend cycle" when opening a door (ie. 1 = 4 dial takes 4 spins to open, 2 = 8 spins etc - used to slow down opening doors slightly if you want a more vanilla feel. Only takes effect if InstantOpen is disabled)
        "AdminSteamIDs": [
            "www.steamidfinder.com"
        ]
    },
    "ClientSyncConfig": {
        "AllowAdminOpen": 0, // Allows admins from the above admin list to open any door they want to without needing the code
        "InteractAnywhere": 1, // Allows interacting with the combo lock through the fence itself without needing to look directly at the lock
        "InstantOpen": 1, // If enabled then the gate will instantly open (like the Code Lock mod does)
        "DismantleWithLock": 0, // Allows raiders to dismantle a gate from the inside with the combination lock still attached to the frame
        "DisplayDigits": 2, // Display pin code: 0 = none, 1 = single current digit, 2 = entire code when opening a lock
        "DialTime": 0.5, // How quickly the locks can be dialled (0.5 = vanilla 500ms per spin)
        "OwnerCanRemoveLockWithoutCode": 0, // If enabled then anyone who knows the code can remove the lock without inputting the code first
        "RaidConfig": {
            "Enabled": 1, // Raiding enabled/disabled (requires spawning Zen_BoltCutter in types.xml to actually raid)
            "LockConfig": [
                {
                    "LockType": "CombinationLock", // Lock name
                    "TimeRequired": 30, // Time taken to cut the lock off
                    "DamageTool": 250 // Damage done to the bolt cutter (default pristine HP = 1000)
                },
                {
                    "LockType": "CombinationLock4",
                    "TimeRequired": 60,
                    "DamageTool": 500
                },
                {
                    "LockType": "Zen_CombinationLock5",
                    "TimeRequired": 90,
                    "DamageTool": 600
                },
                {
                    "LockType": "Zen_CombinationLock6",
                    "TimeRequired": 120,
                    "DamageTool": 700
                },
                {
                    "LockType": "Zen_CombinationLock7",
                    "TimeRequired": 150,
                    "DamageTool": 800
                },
                {
                    "LockType": "Zen_CombinationLock8",
                    "TimeRequired": 180,
                    "DamageTool": 900
                },
                {
                    "LockType": "Zen_CombinationLock9",
                    "TimeRequired": 210,
                    "DamageTool": 1000
                }
            ]
        }
    }
}

Master Config

To disable this mod set "ZenComboLocks": 0 in %server_profile/Zenarchist/Utilities/ZenModPackConfig.json

NOTE: This is a persistent mod, so I recommend only enabling/disabling it after a fresh server wipe to avid issues with combination locks getting corrupted.