DayZ
44 ratings
Knock Knock AI
2
2
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
File Size
Posted
Updated
19.154 KB
12 Jun @ 7:16am
24 Jun @ 7:25am
5 Change Notes ( view )

Subscribe to download
Knock Knock AI

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.
Popular Discussions View All (5)
5
17 Jun @ 3:34pm
Config Explanation
agent001
2
10 Jul @ 6:48am
npc spawn distance
TrojanSizedMan
2
15 Jun @ 12:38pm
How to link factions and loadouts for random spawns
agent001
28 Comments
Apocryphox 19 Jul @ 12:30am 
Is the reaction time cfg the same as Expansion AI's or is it seperate with this mod?
Alpharius Nox 16 Jul @ 8:05am 
@Agent001, yep, I haven't played DayZ in nearly 5 years, and after doing some research, it seems they changed the door open/closed status to be random. I used to be able to tell where I or other players have been based on the door situation. :D
agent001  [author] 15 Jul @ 6:33pm 
@Wollffus you are using Zens sleep mod. That is known bug between that mod and expansion ai. Not this mod

@Alpharius Nox this mod does nothing to alter door state. Simply detects if its open or closed
Alpharius Nox 15 Jul @ 6:48am 
I'm pretty sure I did something wrong, but all the doors on my server are wide open now . . . even after restarting and deleting storage-1. Anyone else have this glitch?
Wollffus 14 Jul @ 8:52pm 
Having an issue where AI are spawning invisible for about 10 seconds. They can hit you, shoot you but you cant see them. Any ideas?
agent001  [author] 13 Jul @ 6:31pm 
Yes
Teaserfatboy 13 Jul @ 6:06am 
Does the mod work on Livonia or Sakhal?
agent001  [author] 12 Jul @ 7:23am 
No AI will not generate at server start. This mod spawns AI on the fly.

You don't want these AI looting. You want them to spawn and despawn or be killed as quick as possible. The quicker they despawn the quicker another door has chance to spawn. If they lived forever you would only see AI at the first few doors

@AXER feel free to go to discord for support but you will need to provide more info than that
AXER 12 Jul @ 4:51am 
Not working for me
SirFinnHuman 3 Jul @ 6:01pm 
Is there any way to make these AI "Looting" like in AIPatrols??