Skip to content

mgkelley/DayZ-BuildingDoorKeys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 

Repository files navigation

DayZ-BuildingDoorKeys

Keys that can be paired to buildings, enabling all doors to be locked and unlocked. Each key is assigned a specific building type when spawned.

  • Includes Admin keys that can be spawned with an admin tool, enabling any door to be unlocked and any building to be unpaired from a key.
  • DayZ vanilla Lockpicks do NOT work on a door locked by these keys or any door of a building that has been paired to a key.
  • Door damage can be disabled or increased to prevent raiding or increase amount of damage required to break a door lock.
  • DayZ vanilla Territory Flag Pole can be enabled to create a refresh area at a paired building. When the flag lifetime expires from being lowered by the Central Economy System in Dayz, the building will be unpaired from its key, all doors unlocked and the flag pole deleted.
  • Key types are completely configurable in Building.json file stored in the 'ServerProfile' folder. Vanilla and modded buildings can be configured to support keys and the Territory Flag Pole position and rotation relative the the building can be set.
  • Each configured key can be set to reference a predefined spawnable_type. Each spawnable_type can have unique usage, tier and nominal settings.
  • Paired buildings are stored in "ServerProfile//BuildingDoorKeys//Persistence//" so individual or all paired buildings can be wiped seperate from DayZ storage.




Building.json

Version
Integer
Do not change, used for automatic conversion of old settings.

UpdateFrequecy
Float
Default is 10
Update frequencey in seconds of the Building Key Manager.

LogBuildingTypesLoad
LogAction
LogActionConditions
Bool
Used to toggle output to log file.

EnableTerritoryFlag
Bool

  • 0 = Disable automatic creation of territory flag when key paired with building.
  • 1 = Enable automatic creation of territory flag when key paired with building.


InitialFlagHeight
Float
Initial height of flag if territory flag pole enabled. Valid range is 0 thru 5. 0 is not recomended because DayZ central economy could Immediatley run and trigger flag pole to be deleted and building unpaired from key.

DefaultFlagType
String
Default = "Flag_DayZ" .Class of flag to be attached to flag pole. Valid classes

DefaultFlagTexture
String
Default = "dz\gear\camping\Data\Flag_DAYZ_co.paa". Texture to use for flag. Valid Textures

TerritoryFlagLifeAccel
Float

  • 0 = Flag will not lower.
  • 1 = Flag will lower at default Central Economy rate.
  • 40000 = Flag will lower in 2 minutes.


MaxDoorHealth
Float

  • 0 = Door damage disabled. Locks cant to broken.
  • 100000 = Default, door lock will open after 330 5.56 rounds.


KeyTypes
Array
List all valid key settings with their paired building class names.
{
        KeyClass
        String
        Name of spawnable type to use for this key. Valid entries:
        "DoorKeyType1", "DoorKeyType2", "DoorKeyType3", "DoorKeyType4"

        KeyName
        String
        Displayable name of the key.

        BuildingClass
        String
        Literal class name of the building this key can pair to.

        BuildingName
        String
        Displayable name of the building.

        BuildingDescription
        String
        Displayable description of the building.

        FlagOffset
        Vector
        Relative offset from building pivot point to flag position.

        FlagOreintation
        Vector
        Relative rotation of flag to building.
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published