AI: Resurface to breathe

Everything about development and the OpenMW source code.
Post Reply
User avatar
akortunov
Posts: 605
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation

AI: Resurface to breathe

Post by akortunov » 10 Jul 2017, 19:27

We have a three years old feature request and an year-old pull request to implement it.

Can we use this code?

If yes, here you can find a slightly improved version (NPC will resurface when breathing level below 1/2).
If not, which behaviour would be correct?

An additional question: should combat AI use water breathing spells?
It seems vanilla Morrowind AI does not use it (include potions), and theoretically NPC can dive too deep (he will not have enough time to resurface).

User avatar
akortunov
Posts: 605
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation

Re: AI: Resurface to breathe

Post by akortunov » 30 Jul 2017, 17:35

Implemented in a new AiBreathe AI package in this commit.

Post Reply