Jump to content
The Dark Mod Forums

AI gets permanently stuck trying to close a door


Sotha

Recommended Posts

If a body is blocking the doorway, the AI gets stuck.

 

KkUG4Zu.jpg

The girl is closing the door. The door is blocked by the body. The door bounces open again. The girl tries to close it again, the door hits the body again. This cycles forever.

 

I dunno how this could be stopped. Perhaps the AI should give up doing something after a while?

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

If a body is blocking the doorway, the AI gets stuck.

[...]

 

I dunno how this could be stopped. Perhaps the AI should give up doing something after a while?

Better would be the action of the AI starts to ignore things. While the AI giving up is probably easier to do, usually the player is responsible somehow when such things occur. And that shouldn't be "rewarded". A door that should be closed for example, should close.

 

Then again, the cases were it would be helpful for the player and he wouldn't have already had a possibility for what he wanted are probably few, might be that ignoring just does the job.

 

I just have to think of the cases I did myself, of using gameplay techniques to trick AIs (in several games), that shouldn't have worked (like stapling boxes around entrances to stop them, and them walking mindlessly against them, using carried boxes as shield against visual contact and the like).

Those are always a bit weird to me, thus my initial instinct of not having AI stopped of doing something by things the player leaves in the world, when in reality that would be no issue for them.

Link to comment
Share on other sites

Occasionally I've used this to my advantage legitimately. In Lords and Legacy, for example, I was proud of myself when I pinned Sir Antony in his bedroom by piling urns in front of the door. But when you can see the AI, I guess it's jarring. AI already react differently when it's the player's body blocking the door: on the third try they ram it hard, so that the player gets shoved out of the way. That would be harder to do with an AI body lying in the doorway. The only solutions I can think of are (1) have the door cut the body in half, which would need new models and would look a bit unrealistic, (2) have the AI drag the body away from the door which would be really complicated to get right in awkward spaces, and it'd need new animations, (3) have the AI give up and wander off, which would need new goals, or (4) have the blocking body become nonsolid so the AI can step over it without closing the door. (4) sounds the least unachieveable.. but this isn't my area of expertise. What else could we do?

Link to comment
Share on other sites

Is the problem the AI can't get past the body, or that they can't close the door? If the latter, then just having them stop closing the door sounds like the most useful behaviour. I imagine the same thing could happen if the door was blocked with a sword or other movable.

Link to comment
Share on other sites

Occasionally I've used this to my advantage legitimately. In Lords and Legacy, for example, I was proud of myself when I pinned Sir Antony in his bedroom by piling urns in front of the door. But when you can see the AI, I guess it's jarring. AI already react differently when it's the player's body blocking the door: on the third try they ram it hard, so that the player gets shoved out of the way. That would be harder to do with an AI body lying in the doorway. The only solutions I can think of are (1) have the door cut the body in half, which would need new models and would look a bit unrealistic, (2) have the AI drag the body away from the door which would be really complicated to get right in awkward spaces, and it'd need new animations, (3) have the AI give up and wander off, which would need new goals, or (4) have the blocking body become nonsolid so the AI can step over it without closing the door. (4) sounds the least unachieveable.. but this isn't my area of expertise. What else could we do?

 

Try to close door. Retry. Retry. If not succesful, emit a forcefield to kick moveables and ragdolls away. Retry. If not succesful, emit a strong forcefield to kick moveables and ragdolls away. Retry. Detect moveables and ragdolls near the stuck AI and remove them from game. Retry. Give up and go do something else.

 

Sure, would look like a fricking wizard was pounding the door. ;)

 

Why would you ever leave a body in a doorway? :laugh:

 

Well, shooting someone who is opening a door with their back turned is a golden opportunity...

 

 

IIRC, if the door user has come through the door, they'll give up trying to close it and continue on. This needs some studying, since that's not happening here, so pls file an issue for it.

 

Tracked: http://bugs.thedarkmod.com/view.php?id=4152

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

Wait a minute? What if the AI could break doors that are problematic. If a door is stuck, and the AI cannot manage it, the AI would play a kick/breach anim. The offending door is removed from play and replaced with soon dissipating dust cloud and wood fragments. The doorway would be clear of doors and should no longer present and obstacle to the AI.

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 4 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...