Zen's Zombie Door Bangers - ZenarchistCode/ZenModPack GitHub Wiki

download

What Is This?

This mod adds the ability for zombies/infected to bash open doors.

It's inspired by Liven's PvZ Mod (shout-out to his excellent mods!), but mine uses a slightly different method for detecting door locations based on their open/close sound position.

Note: this mod is NOT compatible with PvZ, use one or the other.

Unlike the amazing PvZ mod which changes many core vanilla zombie features, this mod does not touch anything else to do with zombies.

It just makes aggro'd zombies hit any doors they are standing near until they open. I initially developed it for my Namalsk server where I did not want to run PvZ but still wanted zeds to knock open doors.

There is a JSON config with the mod that allows you to tweak how many hits it takes to open a door, whether or not locked doors can be opened, and you can also adjust how many door hits are required to open a door based on the zombie type (eg. you could make soldiers able to bash open locked doors, but no other zeds can).

Only doors that have been closed or locked with a Lockpick by players are detectable by zombies with this mod. In my experience this is usually fine, as most players are only hunted by zombies into a building when they've shut a door behind them anyway.

Each door has a unique hit counter associated with it, so if you get swarmed by zeds they can bash open the door pretty quickly. They will only open vanilla building doors so don't worry base campers, you're still safe!

Known Issues:

Also, sometimes the zeds will wander off before the door opens, but I think this is a good thing as it adds an element of randomness to them. Sometimes they will bust open your house, sometimes they will lose interest and wander off. To decrease the chances of this happening just set the door hit count to a lower number than the default.

Finally, some vanilla buildings in DayZ have incorrect door open/close sound position placement which means zeds will not interact with those doors properly. With my limited knowledge of 3d modelling in DayZ, I think this is because when the building models were created the sound positions were placed incorrectly.

I've only noticed it on a single door in a couple of buildings so it's no big deal. This building has one such door: DayZ Factory[static.wikia.nocookie.net]. I think the Arma barracks has one door like this too.

There may be other bugs, but after running this on my servers for several months I haven't noticed any. I've done my best to make it as performance-friendly as possible, so there shouldn't be any significant effect on server FPS. I haven't noticed any FPS issues on my servers.

ZombieDoorsConfig.json Config

%server_profile/Zenarchist/ZombieDoorsConfig.json

{
    "ConfigVersion": "3", // Don't touch this
    "KnockDownDoors": 1, // Enable/disable this entire mod
    "KnockDownLockedDoors": 0, // Enable/disable the ability to knock down locked doors with lockpick
    "OrientateToDoor": 1, // (Experimental) force zombie to face the door they're banging
    "DoorHitCount": 6, // "Door health" - required amount of hits to open the door
    "DoorHitLockedCount": 12, // "Locked door health" - required amount of hits to open a locked door
    "DoorHitCounterTimerSecs": 45.0, // If the door is not hit after this many seconds, reset its counter
    "HitDoorDelaySecs": 2.0, // Minimum delay between analyzing door hits
    "ZombieData": [ // List of zombie-specific door config
        {
            "ClassName": "ZmbM_Soldier", // Classname of zombie (can be partial classname to cover multiple zeds)
            "KnockDownDoors": 1, // Enable/disable this zed type's ability to knock down doors
            "KnockDownLockedDoors": 1, // Enable/disable this zed type's ability to known down locked doors (overrides master cfg)
            "DoorHitCount": 6, // Same as above; overrides master cfg
            "DoorHitLockedCount": 12 // Same as above; overrides master cfg
        }
    ]
}

Master Config

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

⚠️ **GitHub.com Fallback** ⚠️