DayZ
68 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)
7
17 hours ago
Config Explanation
agent001
3
16 Sep @ 7:48pm
npc spawn distance
TrojanSizedMan
2
15 Jun @ 12:38pm
How to link factions and loadouts for random spawns
agent001
41 Comments
Madden RAAUUUUUUUUUUL 23 Sep @ 5:56pm 
Love this mod just like me? Come play it on my server that has this mod and many more ! 5.83.170.47:12800 GENESIS DAYZ :steamthumbsup:
Other big mods :
- Dayz Expansion
- Dayz Dog
- Forward Operator Gear
- Tactical Flava
- Royal's Realistic Spraypainted Weapons
- MMG Military Gear
- Custom AI loadout bots roaming the map
- Tarkov gun sounds and inventory sounds
- Search For Loot Improved
- CZ Optics
- SuppressionMod
- Unknown Ghillie Mod
starrlinn 20 Sep @ 11:42am 
@agent001

Thanks for the quick reply!

I know of at least one group that has several members added to the territory list, but they've still been getting surprised by Knock Knock AI inside of the building they've claimed as territory.

To be clear though, I'm using the Territory Plus mod by Deceased. I'm assuming then that it isn't compatible on that end, the way it is with Expansion territories?
agent001  [author] 19 Sep @ 6:21pm 
@starrlinn
The expansion territory exclusion only applies to players INSIDE THEIR OWN territory. It does not apply to visitors that are not members of said territory. Are sure that it is happening to players inside their own territory?

Maybe a future update I can make this aspect better.
starrlinn 19 Sep @ 10:35am 
Hi :) First, love the mod. Thank you SO much for it. It's a hit on our server. Have a question about territories though - is there anything we have to do to ensure that the AI do not spawn inside of buildings covered by a territory flag? I see that's a feature of the mod but it doesn't appear to be working on our server, with AI still spawning inside of some buildings being used for bases.
agent001  [author] 6 Sep @ 9:23pm 
@vitalihh
As I said on discord that error has to do with whatever "customeventcore" mod is. I don't know anything I could do for it as that mod is obfuscated. The author of that mod should check it out.
vitalihh 6 Sep @ 1:52pm 
Where could the problem be?


Unknown, 06.09 2025 18:03:23
NULL pointer to instance
Function: 'SgcCVFmdKuOgmo'
Stack trace:
customeventcore/W6VI m5u/ KDFjBVJ7/eV2siiUV//NbwKvnBa/LkZ2 jAY/BTUuEvgQ.kSZgkFdq:2 Function SgcCVFmdKuOgmo
KnockKnockAI/scripts/5_Mission/knockknockai.c:112 Function #InitGlobals
Xcite 31 Aug @ 10:02am 
It would be really nice if we could have different AI/Loadouts to appear in different buildings. ie Civilian based AI for houses and military based AI for mil buildings.
Demon 29 Aug @ 1:40pm 
This mod has been a glorious find, always anxious to enter buildings if an ai happens to peek thru the doorway. Most of the time its just one ai here and there per village/city, but recently i had 3 ai spawn in the same building, each spawning few seconds after previous got permanently horizontal(Brown Two-Tone House was the building where this happened)
Kayama 4 Aug @ 12:00am 
Oh right, thank you for that - makes sense!
agent001  [author] 1 Aug @ 6:59pm 
When ai spawn invisible for the first few seconds it usually means you are using Zens Immersive Login mod. It is issue between that mod and expansion ai