Jump to content

Last Known Location concept- how doable is this in ZDoom decorate?


HQDefault

Recommended Posts

So I've been thinking up some ways to implement a very basic stealth system into GZDoom. One thought that came to mind was a "Last Known Location" system.

 

So I do know that Doom's AI is pretty simple where it just walks towards a target until it finds it- I thought it might be possible to make that target an entity that is constantly tied to the Player's location as long as he's in line of sight with an enemy. Is that a thing you can do in Decorate or ACS? (I imagine the hard part would be not getting them to fire at the last known location constantly)

Share this post


Link to post

Over at the ZDoom forums somebody made a pathfinding system for this. Of course I can't seem to find it at the moment, or I'd link it.  Basically monsters would use scripting to drop a special invisible thing at their target's location at regular intervals. In case line of sight was lost, they would go for this special thingtype instead. Their final version used ZScript to modify the normal Chase codepointer to incorporate this behaviour.  This system can then be extended to follow the exact path the player took and thus enable the monster to navigate difficult paths without its usual AI getting it stuck in dead corners.

 

With just ACS there are two main issues to solve: how to construct a sequence of path-things and when to invalidate them, and how to chase those down instead of the player without invalidating the player as its target.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...