Universal Enhanced AI
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.
Got a cool project idea but nothing else? Put it in the project ideas thread instead!
Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.
Please read the full rules for more details.
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.
Got a cool project idea but nothing else? Put it in the project ideas thread instead!
Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.
Please read the full rules for more details.
-
- Posts: 676
- Joined: Wed Apr 03, 2013 11:36 am
- Location: Elsewhere.
Universal Enhanced AI
This AI mutator should enable almost any monster from any GZDoom game or mod to create simple paths to pursue players that break line of sight, as well as sharing these paths with other nearby monsters. It also adds optional light-based stealth mechanics that respect both sector and dynamic lights.
In this video, the monsters cannot see through the bars, and I can use this to watch their movements from cover. Also, I have enabled a debugging mode so that we can visualize monster path nodes on the floor. By merely grabbing the attention of the shotgun guy, he informs the nearby zombiemen of my location and they all begin to head to the last place the shotgun guy saw me. Throughout the video, I repeatedly break line of sight with the monsters and watch their various paths change as they try to catch me.
This is basically how the mod works:
(1) Monsters see you and tell nearby monsters where you were and where you were heading.
(2) Any monster that cannot see you will immediately follow these instructions to try to find you.
(3) If a monster sees you, he updates any nearby friends on your location and heading again.
(4) If the monsters expend all their search nodes and didn't see you, they'll search around randomly for a little bit and eventually just give up and go back to idling in place.
Download the latest release from the Universal Enhanced AI GitHub page!
In this video, the monsters cannot see through the bars, and I can use this to watch their movements from cover. Also, I have enabled a debugging mode so that we can visualize monster path nodes on the floor. By merely grabbing the attention of the shotgun guy, he informs the nearby zombiemen of my location and they all begin to head to the last place the shotgun guy saw me. Throughout the video, I repeatedly break line of sight with the monsters and watch their various paths change as they try to catch me.
This is basically how the mod works:
(1) Monsters see you and tell nearby monsters where you were and where you were heading.
(2) Any monster that cannot see you will immediately follow these instructions to try to find you.
(3) If a monster sees you, he updates any nearby friends on your location and heading again.
(4) If the monsters expend all their search nodes and didn't see you, they'll search around randomly for a little bit and eventually just give up and go back to idling in place.
Download the latest release from the Universal Enhanced AI GitHub page!
Last edited by Josh771 on Fri Nov 23, 2018 6:57 pm, edited 3 times in total.
-
- Posts: 231
- Joined: Tue Mar 23, 2010 4:47 pm
- Preferred Pronouns: No Preference
- Graphics Processor: nVidia with Vulkan support
- Location: existential dread
Re: Universal Enhanced AI
This is super interesting. I'm always one for AI mods. I've always gotten tired when a mob of enemies tries in vain to run through an impassable obstacle to get to you, especially when they could just walk around it lol. Anything that improves the AI function of monsters is always a plus for me!
-
- Posts: 116
- Joined: Sat Jan 13, 2018 3:17 am
Re: Universal Enhanced AI
Does this work for custom monsters or other gameplay mods that replace mods?
-
- Posts: 306
- Joined: Thu Apr 13, 2017 10:04 am
- Location: Dryer lint trap
Re: Universal Enhanced AI
It says "universal", so one could assume that this means it's compatible with almost anythingGorman Frebmane wrote:Does this work for custom monsters or other gameplay mods that replace mods?
-
- Admin
- Posts: 6190
- Joined: Thu Feb 26, 2004 3:02 pm
- Preferred Pronouns: He/Him
Re: Universal Enhanced AI
In theory, this should work with anything that allows monsters to follow path nodes and/or uses the standard A_Chase movement logic. Practically speaking that should be about 99.999% of mods out there.
-
- Posts: 160
- Joined: Sun Sep 25, 2016 7:04 pm
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Somewhere in Canada
Re: Universal Enhanced AI
I tried out this mod and couldn't really notice a difference, but that's just because I'm not super observant! Do you plan to do some kind of a side-by-side comparison video or an explanation of what's changed?
-
- Posts: 147
- Joined: Sat Mar 31, 2012 4:27 am
- Preferred Pronouns: He/Him
- Location: Japan
Re: Universal Enhanced AI
Sounds very interesting, I'll try it out soon.
-
- Posts: 676
- Joined: Wed Apr 03, 2013 11:36 am
- Location: Elsewhere.
Re: Universal Enhanced AI
It can be hard to notice. There is a debug variable that you can enable in the console:Samarai1000 wrote:I tried out this mod and couldn't really notice a difference, but that's just because I'm not super observant! Do you plan to do some kind of a side-by-side comparison video or an explanation of what's changed?
Code: Select all
eai_debug = true
I'll try putting together a comparison video at some point showcasing the mod. Also, you can definitely trust Caligari87's word on how this mod works; it uses a sort of state machine that he originally designed for monsters switching between pathing and searching behaviors.
EDIT: I added a video to the opening post which should hopefully demonstrate that the monsters are behaving in new, more interesting ways.
-
- Posts: 1777
- Joined: Wed Sep 08, 2010 4:58 pm
Re: Universal Enhanced AI
Interesting idea, it kind of reminds me of that Project Babel mod, since that re-did a lot of enemy AI as well for pursuit, enemy morale, etc.
-
- Posts: 676
- Joined: Wed Apr 03, 2013 11:36 am
- Location: Elsewhere.
Re: Universal Enhanced AI
I actually use it with Babel and find that they mesh well. Makes the Doom monsters seem much more intelligent with both mods at once.-Ghost- wrote:Interesting idea, it kind of reminds me of that Project Babel mod, since that re-did a lot of enemy AI as well for pursuit, enemy morale, etc.
-
- Posts: 1777
- Joined: Wed Sep 08, 2010 4:58 pm
Re: Universal Enhanced AI
Have you taken any inspiration from Sneaky Doom as well? That mod had some cool AI tricks with their hunting and seeking behavior, especially since it was based off light levels.
-
-
- Posts: 26563
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
Re: Universal Enhanced AI
I've a funny feeling that Josh might already be very familiar with Sneaky Doom.
-
- Posts: 1666
- Joined: Sat Jan 17, 2015 8:54 am
- Preferred Pronouns: No Preference
- Location: Discord: Vostyok#3164
Re: Universal Enhanced AI
Had a brief experiment with this. The monsters actually seemed more cautious, rather than funneling towards you like lemmings one at a time. I actually like how the enemies acted. Would like to see more from this.
-
- Posts: 1777
- Joined: Wed Sep 08, 2010 4:58 pm
Re: Universal Enhanced AI
Whoops, forgot he made it, thought it was another username. It's been fun playing with this so far, the more the AI can be improved, the better.
-
- Posts: 558
- Joined: Mon Sep 28, 2015 3:23 am
Re: Universal Enhanced AI
I'm guessing it's the Monsters Only version, yes? Or does it work with the levelset version as well?Josh771 wrote:I actually use it with Babel and find that they mesh well. Makes the Doom monsters seem much more intelligent with both mods at once.-Ghost- wrote:Interesting idea, it kind of reminds me of that Project Babel mod, since that re-did a lot of enemy AI as well for pursuit, enemy morale, etc.