Knock Knock AI

If you liked this item, please rate it up on Steam Workshop page.

Author: agent001

Last revision: 24 Jun, 2025 at 14:25 UTC (1)

File size: 19.15 KB

On Steam Workshop

Description:
DESCRIPTION

This mod introduces the mechanic that behind any closed door could lurk an Expansion AI ready to ambush the player. It works with most vanilla buildings and modded buildings depending on how they are made. Even multi-level buildings.
Your players will never open a door the same way again. Who knows what is on the other side…

  • AI will only spawn inside a room behind a closed door out of sight of any player.
  • every closed door has a potential to trigger the spawn
  • configurable spawn chance
  • designate safezones via config
  • excludes territories
  • exclude specific buildings from spawning ai
  • make spawning ai exclusive to specific buildings
  • full configurable options for spawned ai
  • player and group door history ensures ai will not spawn inside rooms recently cleared
  • linkable loadouts and factions
  • randomize factions to create the possibility of spawning friendly or enemy ai

Note: There are many factors that go into if an AI will spawn. Having a spawn chance of 100% does not mean 100% of doors will spawn AI. It means that when all the factors align and give a green light to spawn then there is a 100% chance the AI will spawn.

UPDATE 6/23

This update addresses some issues that were brought up and improves the performance of the mod.
*No changes to the config*

  • added vanilla territory support
  • changes to range for spawning
  • added min distance that ai will spawn from player
  • better los check from spawn pos to player pos
  • better check for spawned position being in an accessible area of the building
  • better check if outdoors
  • check if player is in vehicle
  • now caches some results, like territory, safezone and vehicle check, and reads the cache until expired (saves resources)

You may want to increase `chanceToSpawn` as the mod will be more picky about where and when it will spawn possibly resulting in fewer overall spawns.

REQUIREMENTS
  • Expansion AI
  • Can be run as server or client mod

REPACKS

No repacks, reuploads, or redistributions are allowed under any circumstances.
Please respect the original work by linking to the official mod only.

CONTACT

Dwight (aka agent001)
Discord: https://discord.gg/qta8Y6G5GG

If you enjoy the mod, don’t forget to leave a thumbs up!
Rate it or donate[www.paypal.com] and feed my dayzickness

Check out my other mods

FEEDBACK IS KING

Hey ho flying by the seat of my pants here and as such your feedback helps to make this a better mod. Find some buildings that cause issue? Let me know. Got a suggestion? Let me know. I have only used this mod on Chernarus but there is no reason it should not work on other maps – only poorly made buildings should be any issue.

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.