Project

General

Profile

Feature #1113

NPC door AI

Added by scrawl . over 3 years ago. Updated about 2 months ago.

Status:
In Progress
Priority:
Normal
Assignee:
-
Category:
AI
Target version:
Start date:
01/15/2014
% Done:

70%

Severity:
Normal

Description

Open doors when attempting to walk through them.
Step back from doors opening in our direction.


Related issues

Related to OpenMW - Bug #3227: NPC trying to walk through a closed door. Confirmed 03/02/2016
Duplicated by OpenMW - Bug #1658: NPC cant open an certain door, but trying to attack. Rejected 07/17/2014
Duplicated by OpenMW - Bug #2380: Combat AI cant open doors Rejected 02/17/2015

History

#1 Updated by Thomas Luppi over 3 years ago

  • Category set to 8
  • Status changed from New to In Progress
  • Assignee set to Thomas Luppi
  • % Done changed from 0 to 90

Mostly implemented, just need some minor changes to how AIs walk away from doors (If more than half into the arc of the door, go inside. Right now they always try to escape the door's swing by going outside). Doesn't present itself in many situations, and the issue where an AI can block an opening door is completely gone.

#2 Updated by Thomas Luppi over 3 years ago

  • Target version changed from openmw-0.41 to openmw-0.31

#3 Updated by scrawl . over 3 years ago

  • % Done changed from 90 to 50

But we are also still missing:

Open doors when attempting to walk through them.

#4 Updated by scrawl . over 3 years ago

  • Category changed from 8 to AI

#5 Updated by Thomas Luppi over 3 years ago

the open doors exists in AIFollow, AIPursue, AIEscort, and AIActivate, (Possibly others). It's definitively missing from AICombat though

#6 Updated by Marc Zinnschlag about 3 years ago

  • Target version changed from openmw-0.31 to openmw-0.32

#7 Updated by scrawl . about 3 years ago

  • Duplicated by Bug #1658: NPC cant open an certain door, but trying to attack. added

#8 Updated by Marc Zinnschlag about 3 years ago

  • Target version changed from openmw-0.32 to openmw-0.33

#9 Updated by scrawl . about 3 years ago

  • Assignee deleted (Thomas Luppi)
  • Target version changed from openmw-0.33 to openmw-0.41

#10 Updated by scrawl . over 2 years ago

  • Duplicated by Bug #2380: Combat AI cant open doors added

#11 Updated by gus gus about 1 year ago

Is this still missing? I just tried and combat AI seems to be able to open doors just fine. Or maybe it meant loading doors (changing cells)?

#12 Updated by Marc Zinnschlag 10 months ago

  • Target version changed from openmw-0.41 to openmw-0.42

#13 Updated by R. D. 10 months ago

I just tested this. The AI can open doors both in and out of combat, both in OpenMW and in vanilla. There is an issue in both OpenMW and vanilla where the AI will not open a door if it was ever locked, either initially or through a spell, even if it has since been unlocked.

The AI's door opening in OpenMW is not as smooth as in vanilla. In OpenMW the AI will move in place against the door for a little bit before opening it, whereas in vanilla it opens the door as soon as it touches it.

I think the door opening needs to happen sooner like it does in vanilla, and the AI should not be prevented from opening a door that has been unlocked.

#14 Updated by R. D. 10 months ago

Seems like actually OpenMW is okay as far as AI opening previously locked doors. Strange, I guess it was just a coincidence of AI characters failing to open those doors as I was testing. The AI in OpenMW does seem unable to open the gates outside by the Census and Excise Office in Seyda Neen, though.

Also, there is no sound when the AI opens doors in OpenMW, but there is in vanilla.

#15 Updated by Alexei Dobrohotov 7 months ago

  • Related to Bug #3227: NPC trying to walk through a closed door. added

#16 Updated by Alexei Dobrohotov 7 months ago

  • Related to deleted (Bug #3227: NPC trying to walk through a closed door.)

#17 Updated by Alexei Dobrohotov 7 months ago

  • Blocked by Bug #3227: NPC trying to walk through a closed door. added

#18 Updated by scrawl . 7 months ago

  • Target version changed from openmw-0.42 to openmw-future

#19 Updated by scrawl . 7 months ago

  • Target version changed from openmw-future to openmw-1.0

#20 Updated by Andrei Kortunov 3 months ago

Also, there is no sound when the AI opens doors in OpenMW, but there is in vanilla.

Should be fixed in recent master.

#21 Updated by Andrei Kortunov 3 months ago

Seems like actually OpenMW is okay as far as AI opening previously locked doors. Strange, I guess it was just a coincidence of AI characters failing to open those doors as I was testing. The AI in OpenMW does seem unable to open the gates outside by the Census and Excise Office in Seyda Neen, though.

Current implementation of door AI works only with interiors (performance issues - AI iterates over all doors in cell).

#22 Updated by Andrei Kortunov about 2 months ago

  • % Done changed from 50 to 70

The only thing left is "step away from door if you can not open it for some reason" behaviour.

#23 Updated by Alexei Dobrohotov 24 days ago

  • Blocked by deleted (Bug #3227: NPC trying to walk through a closed door.)

#24 Updated by Alexei Dobrohotov 24 days ago

  • Related to Bug #3227: NPC trying to walk through a closed door. added

Also available in: Atom PDF