Commit Graph

64 Commits (a083439139b883b260605fac90d6304ea293effa)

Author SHA1 Message Date
Andrei Kortunov 1d463d129d Finish AiTarget package, if destination is blocked by other actor 6 years ago
Andrei Kortunov 3a0ee78d2b AiTravel: store mHidden flag in savegame 6 years ago
Andrei Kortunov 5105c67642 Add mHidden field to AiTravel 6 years ago
Ewan Higgs 38a2de3c51 convert std::autor_ptr to std::unique_ptr, originally by Ewan Higgs and updated by Bret Curtis 7 years ago
mrcheko aa441f2648 AiPackage: fix path recalc on cell change
AiTravel: remove unneeded code
8 years ago
Allofich c57d177f1c Trim unneeded code 8 years ago
Allofich 3bebbab78e Duration fixes for Follow and Escort 8 years ago
Allofich bce66c629a Change editor-placed AI packages to cycle 8 years ago
scrawl 7aeafd3bb9 Revert "Apply the AiTravel maxRange to AiEscort as well (Fixes #2697)"
This reverts commit 1f543b4d79.
8 years ago
scrawl 1f543b4d79 Apply the AiTravel maxRange to AiEscort as well (Fixes #2697) 9 years ago
scrawl 278076e609 Include cleanup 9 years ago
scrawl 59db9664ba Pass the CharacterController to AiPackage::execute 9 years ago
scrawl cad18969e3 Merge branch 'master' of https://github.com/OpenMW/openmw into osg
Conflicts:
	apps/openmw/mwmechanics/aicombat.cpp
	apps/openmw/mwmechanics/aitravel.cpp
9 years ago
dteviot 6d7e6cd30c AiTravel logic merged into AiPackage. 9 years ago
scrawl 4bb3cbf0fb Remove last remains of Ogre 9 years ago
scrawl 7bacb9418d Various math code ported to osg 9 years ago
dteviot eb1090a1b6 Waypoint check only considers X & Y distance (Fixes #2423)
When pathfinder checks if actor has reached a waypoint, ignore actor's altitude.
9 years ago
dteviot ca8c8c6aa4 fixing MSVC 2013 warning C4244: & C4305
conversion from 'const float' to 'int', possible loss of data
conversion from 'double' to 'int', possible loss of data
conversion from 'float' to 'int', possible loss of data
9 years ago
scrawl 99ae0f901b Implement AiTravel fast-forward (Fixes #1125) 10 years ago
scrawl a8ae0dec52 Implement AiWander fast-forward (Feature #1125) 10 years ago
terrorfisch cae948df96 removed unecessary PathFinders 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 2eaceb71ba Reject AiTravel destinations further than 7168 units away, as in vanilla MW (Fixes #1911) 10 years ago
scrawl f67b7dae91 Sheath weapon in all Ai packages except for AiCombat 10 years ago
scrawl a54ac579a5 Savegame: Store AiSequence 10 years ago
scrawl 91e50585ff AiWander: make sure to walk, not run 10 years ago
scrawl c8c0e5de38 Fixed code issues found with unity build. Missing include guards, duplicated functions, ... 10 years ago
Marc Zinnschlag 367919200f moved CellRefList into a separate file 10 years ago
Marc Zinnschlag 7693f712bc started making CellStore into a proper class; encapsulated mCell member 10 years ago
gus 7c6e27e4f9 Merge branch 'master' of https://github.com/zinnschlag/openmw.git into AIFix2
Conflicts:
	apps/openmw/mwmechanics/aitravel.cpp
10 years ago
gus 632834ce10 WIP 10 years ago
scrawl 39d86a9468 Improvements to smooth NPC steering 10 years ago
Marc Zinnschlag a473c3f619 some cleanup 10 years ago
gus 707e579dfe Merge branch 'master' of https://github.com/zinnschlag/openmw.git into AIFix2
Conflicts:
	apps/openmw/mwmechanics/aifollow.cpp
10 years ago
Marc Zinnschlag 3e58eb34e4 Merge remote-tracking branch 'sergeyshambir/startcombat'
Conflicts:
	apps/openmw/mwscript/docs/vmformat.txt
10 years ago
gus 5d038423ec attempt to solve Bug #1009 by not building graph every frame 10 years ago
scrawl 098f9712f1 Add getPlayerPtr() utility method. Reduces dependencies a lot. 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
scrawl b22dd40b41 Implement Paralyze magic effect 11 years ago
gus 650a112e2e better timer 11 years ago
Chris Robinson f9dbce685a Avoid killing AIWander and AITravel when far away
This fixes the problem of certain NPCs not wandering because they
happened to spawn near a cell border away from the player, which
immediately "completed" the wander package.

AIWander can't cause NPCs to cross cell boundaries, so there's no risk
of them walking into an unloaded to. AITravel will now simply stop
moving, and resume later when the cell is loaded.
11 years ago
scrawl 7dc30a01cd Some changes suggested by cppcheck 11 years ago
Torben Carrington 09beafd044 Pathfinding Overhaul - Master cleanup! Cleaned pathfinding entirely, all AI packages that are implemented as well, Increased buffer! This makes the intro guard no longer walk into you or go to far into the room (not tested against vanilla distances but it seems accurate enough until the next itteration of pathfinding fixes). 11 years ago
Torben Carrington 73a9671742 Pathfinding Overhaul - Changed the name of checkIfNextPointReached to a more intuitive name considering what it does (checkPathCompleted) and fixed a minor bug in it, modified buildPath() to take one final parameter, a bool which dictates whether or not to always use pathfinding (like AIWander should be doing) or to allow for "shortcuts", modified all ai packages to work with these two changes. 11 years ago
Torben Carrington c080785235 Pathfinding Overhaul - Finished cleaning, removed unnecessary parameter in one function, fixed use of the function in ai packages and added use of clearPath() function in aiwander, fixed algorithms and got rid of excess subtractions in getDistance functions (thanks to Chris!). 11 years ago
Torben Carrington 56b1384c90 AITravel Cleanup - Removed unnecessary includes and other varius cleanups. 11 years ago
gus 7fe7111c19 Fargoth quest almost works. There is still a sall problem as the path taken is not exactly the same. I need to copy the exact way morrowind do pathfinding... 11 years ago
gus 905cff2a94 anonymous namespace 11 years ago
gus 0a187e56aa bugfix 11 years ago
gus 6a33170ca2 More bugfix, but I don't like this one. 11 years ago