Commit Graph

52 Commits (e13eb625d38a13b47d1b6680608c69c20de6842a)

Author SHA1 Message Date
scrawl 387624e158 Add a threshold to AiFollow distance
Idle animations can move the actor around slightly, which sometimes causes AiFollow to constantly toggle between "arrived" and "following" state even when the player isn't moving. Could be observed by summoning a bonelord.
9 years ago
scrawl 278076e609 Include cleanup 10 years ago
scrawl b3f5ac5dbb Include cleanup 10 years ago
scrawl 59db9664ba Pass the CharacterController to AiPackage::execute 10 years ago
scrawl 4bb3cbf0fb Remove last remains of Ogre 10 years ago
scrawl 7bacb9418d Various math code ported to osg 10 years ago
Rohit Nirmal 396fba7fa9 Silence -Wreorder warnings, and remove -Wno-reorder. 10 years ago
scrawl e0c6f84546 AiFollow: target has to be seen in order to start following (Fixes #1637) 10 years ago
scrawl 109a3f78a1 Adjust AiFollow distance for groups of multiple followers (Fixes #1637) 10 years ago
terrorfisch 0871d45790 Draft how to move temporary package state to CharacterController.
Example for a few values shown in AiWander.
10 years ago
scrawl 8ad2b95208 Revert "AiFollow: return from execute() if target is not player"
This reverts commit 061c7813f6.

Fixes #1898.
10 years ago
scrawl 233e221de2 Terminate AI packages when target is disabled or deleted (Fixes #1910) 10 years ago
scrawl 9b38888ac9 Add missing AiFollow ActorId initialization (Fixes #1818) 11 years ago
scrawl 061c7813f6 AiFollow: return from execute() if target is not player (Fixes #1637) 11 years ago
scrawl f8010c09fe Adjust combat engagement of following actors (Fixes #1810) 11 years ago
scrawl d649c19790 Cache ActorId in AiFollow::getTarget (Fixes #1804) 11 years ago
scrawl 22d7d8a466 Implement Command creature/humanoid magic effects (Fixes #1120) 11 years ago
scrawl f67b7dae91 Sheath weapon in all Ai packages except for AiCombat 11 years ago
scrawl d9a6515fe3 Adjust AiFollow running threshold to more closely match vanilla MW 11 years ago
scrawl d81e9cfefd Implement actors fighting for the actor they are following (Fixes #1141) 11 years ago
scrawl a54ac579a5 Savegame: Store AiSequence 11 years ago
scrawl 36d9ae17cc Revert "Change all AI packages (except AiActivate) to use ActorIds"
Causes potential infinite loops (AiSequence::fill -> AiPackage() -> getCreatureStats -> ensureCustomData -> ..)

This reverts commit 2e9985c1a3.
11 years ago
scrawl 2e9985c1a3 Change all AI packages (except AiActivate) to use ActorIds
More robust in case the target changes cell or there are multiple targets with the same RefId
11 years ago
Thomas d2aada95b4 Fixed AiPursue by fixing underlying issue is Pathto() 11 years ago
Thomas cbfa282f8d Changed implementations of aifollow/pursue/activate slightly, added ability for NPCs to go through unlocked doors (They even try locked ones), and step back from opening doors (Although it still needs some work)
Notes - When the door hits them while it's about to finish closing they will try to walk through the door.
      - Considerably more works is needed in making the NPC work out troublesome areas where they get stuck
11 years ago
Thomas 2c74ea381e Moved pathfinding code to aiPackage, implemented it's use with aiFollow and aiPursue 11 years ago
Thomas e71a119c23 Made aifollowers run when long distances (800 or 10000, depending) from what they're following. 11 years ago
gus d9ea7107b7 compile fix. 11 years ago
gus bee057346b Merge branch 'master' of https://github.com/OpenMW/openmw.git into AIFix2
Conflicts:
	apps/openmw/mwmechanics/aifollow.cpp
11 years ago
gus d84319300a fix 11 years ago
gus f4879dacd5 add AIfollow to summoned creatures 11 years ago
Marc Zinnschlag 367919200f moved CellRefList into a separate file 11 years ago
Marc Zinnschlag 7693f712bc started making CellStore into a proper class; encapsulated mCell member 11 years ago
gus d8f24ac499 bug fix 11 years ago
scrawl 39d86a9468 Improvements to smooth NPC steering 11 years ago
gus 7cb47aa635 new implementation of pathfinding. Works, but need clean up 11 years ago
gus 707e579dfe Merge branch 'master' of https://github.com/zinnschlag/openmw.git into AIFix2
Conflicts:
	apps/openmw/mwmechanics/aifollow.cpp
11 years ago
gus 5ca5946760 WIP 11 years ago
gus 5d4e148063 some clean up 11 years ago
gus 5d038423ec attempt to solve Bug #1009 by not building graph every frame 11 years ago
gus 1ae62665d6 get all actors following a given actor 11 years ago
gus 7e96a391da FollowCell duration = 0 -> infinite time 11 years ago
gus 7066844e52 Follow you until a certain cell is reached 11 years ago
gus 051d7141be check position to stop AIFollow 11 years ago
gus ccf07f9406 Bugfix 11 years ago
gus 2d66b2c4fa AiFollow. Npc get stuck often (no stuck dtection yet) 11 years ago
Sergey Shambir 5c7e39a92f Implemented script commands StartCombat, StopCombat, GetTarget.
Also renamed one field of AIWander class because it's not longer
unknown.
11 years ago
gus 650a112e2e better timer 11 years ago
rpopovici 7079b9062f add AI script functions 12 years ago
Marc Zinnschlag a092deaee8 various fixes 12 years ago