Commit Graph

63 Commits (00997fa7327293db6075d47d18bd36516537ba44)

Author SHA1 Message Date
elsid 453e94ea9f
Use half extents for destination distance tolerance in AiEscort
For actors moving in water destination may be located at such z coordinate
that they can't reach.
4 years ago
elsid f32e1790bc
Add half extents to AiEscord max distance
For actors with big bounding box given constants may not work properly like
it's not possible to get close enough to actor from a given angle to make it
move.
4 years ago
elsid 5b34ef224b
Replace AiPackage virtual methods by options 5 years ago
elsid da8ea9d8c7
Mark not changing AiPackages fields as const 5 years ago
elsid 8e0934cbd8
Single AI package clone definition 5 years ago
Andrei Kortunov 3032b177a1 Remove redundant includes 6 years ago
Capostrophic 1de9674c81 AI package cleanup 6 years ago
elsid 4d868bec92
Use osg::Vec3f to store path nodes in Pathfinder 6 years ago
Andrei Kortunov fed10e87aa Store integer actor ID in AI packages (bug #4036) 7 years ago
Ewan Higgs 38a2de3c51 convert std::autor_ptr to std::unique_ptr, originally by Ewan Higgs and updated by Bret Curtis 8 years ago
Allofich 3897c49e30 Fix loading 0-duration Follow and Escort packages
(Fixes #3755)
8 years ago
Allofich c57d177f1c Trim unneeded code 9 years ago
Allofich b1be3596dc Cleanup of #include statements 9 years ago
Allofich c2b51112f2 AI package cleanups 9 years ago
Allofich 3bebbab78e Duration fixes for Follow and Escort 9 years ago
Allofich bce66c629a Change editor-placed AI packages to cycle 9 years ago
scrawl c4d38bb42d Fix clang analyzer warnings 9 years ago
scrawl 7aeafd3bb9 Revert "Apply the AiTravel maxRange to AiEscort as well (Fixes #2697)"
This reverts commit 1f543b4d79.
9 years ago
scrawl 1f543b4d79 Apply the AiTravel maxRange to AiEscort as well (Fixes #2697) 9 years ago
scrawl 965bea45c0 AiEscort makes the actor side with target in fights (Bug #2697)
Also will follow the player through teleport doors.
9 years ago
scrawl 4e678ce6b3 Handle mCellId in AiEscort 9 years ago
scrawl b3f5ac5dbb Include cleanup 10 years ago
scrawl 59db9664ba Pass the CharacterController to AiPackage::execute 10 years ago
Rohit Nirmal 396fba7fa9 Silence -Wreorder warnings, and remove -Wno-reorder. 10 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
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 e9ed0211c9 Attempt to fix Clang warnings 10 years ago
scrawl 7252cb63a6 Fix cppcheck issues 10 years ago
scrawl 8a3a3baed4 Tweak AiEscort maximum distances 10 years ago
scrawl 98bc4618cb AiAvoidDoor: turn and walk forward instead of backwards or sideways (Fixes #1788) 11 years ago
scrawl f67b7dae91 Sheath weapon in all Ai packages except for AiCombat 11 years ago
scrawl a54ac579a5 Savegame: Store AiSequence 11 years ago
Emanuel Guevel 1e4a854433 Remove static method MWWorld::Class::get(&Ptr)
It was just adding a level of indirection to Ptr.getClass().
All the call were replaced by that instead. The number of lines changed
is important, but the change itself is trivial, so everything should be
fine. :)
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 cbcf0f6039 Changed AiEScort to use new PathTo function 11 years ago
scrawl c8c0e5de38 Fixed code issues found with unity build. Missing include guards, duplicated functions, ... 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
scrawl 39d86a9468 Improvements to smooth NPC steering 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
Marc Zinnschlag 3e58eb34e4 Merge remote-tracking branch 'sergeyshambir/startcombat'
Conflicts:
	apps/openmw/mwscript/docs/vmformat.txt
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
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
scrawl 7dc30a01cd Some changes suggested by cppcheck 12 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). 12 years ago