← All mods
03

Code Lock

An electronic keypad lock for fence gates, storage, tents and house doors. Enter the right code once and the lock remembers you.

Code lock on a weapon locker1 / 4
Locks
Gates, storage, tents, house doors
Code
4 to 6 digits
Members
Up to 20 per lock
Roles
Owner, Admin, Member

The lock

  • A 2x2 keypad lock with its own hold pose. The keypad face shows in the inventory and when you inspect it.
  • A status LED glows green while no code is set and red once the lock is armed.
  • An armed lock cannot be taken off, damaged or shot off.
  • It fits fully built fence gates and every storage piece with a lock slot. The old combination dial actions are gone from gates.
  • Medium, large and car tents can take one too. A locked tent only opens for members, nobody can pack it, and its cargo stays shut while it is closed.

Codes and members

  • Codes are digits only. You type the code twice when you set it, and whoever sets it becomes the Owner.
  • Anyone who enters the right code is saved as a Member. After that the Enter Code action disappears for them and the lock just opens.
  • The right code opens the gate straight away. Members can open a gate from any point along it.
  • Only members can take down a locked gate.
  • If a gate is taken down or destroyed, the lock drops off unlocked.

The keypad

  • A keypad window with 0-9, C and OK. You can also type on the number row or numpad, with Backspace and Enter.
  • Digits show as asterisks while you type.
  • Attaching the lock opens the Set Code pad straight away.
  • The keypad tells you about a wrong code and how many tries are left, a lockout countdown, a full lock, a lock being raided, or that you are standing too far away.
  • It uses the vanilla digital lock sounds and plays its own keypad tune on your first correct entry.
  • The window closes if you walk away or die.

Wrong codes

  • 5 wrong codes in 5 minutes locks you out of every code lock for 5 minutes.
  • 15 wrong codes on one lock in 5 minutes makes that lock refuse every code for 10 minutes.
  • Each repeat doubles the lock's refusal time, up to 6 hours. The right code resets it.

House doors

Your group can lock real house doors inside its own territory.

  • Each territory flag covers 2 door locks.
  • The keypad mounts on the wall beside the door. On double doors one lock holds both leaves.
  • Members open the door with the normal Open action. Everyone else hears the locked door rattle.
  • An open door swings shut by itself after a minute or two.
  • Lockpicks do nothing. Only pipe bombs and C4 from the Raiding mod get through.
  • Access lasts while you stay in the group that placed the lock. If the flag is gone for 24 hours, the door lock removes itself.

Managing a lock

The Owner and the lock's Admins see a member list with every name and role.

  • Make Admin promotes a member. Kick removes one.
  • Admins can kick members. Only the Owner can kick or demote Admins.
  • Change Code sets a new code and keeps everyone on the list.
  • Remove Members clears all members and keeps the Admins, after a confirm.
  • Members and Admins can leave a lock on their own. The Owner can step down.
  • Remove Codelock takes the lock off, after a second click.

Raiding

  • Break code lock is a full-body action on a closed gate. A sledgehammer takes 5 minutes and a hacksaw takes 10.
  • Only one raider can work on a lock at a time.
  • Nobody can enter a code while the lock is being raided.
  • Locked tents can be raided the same way.
  • A raided lock drops off and can be used again.