Commit Graph

53 Commits (coverity_scan)

Author SHA1 Message Date
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
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. 12 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!). 12 years ago
Torben Carrington ddf28ca201 AIEscort Cleanup - Fixed spacing, removed unnecessary includes, fixed branch itself. The other pull requests were fine, it was just this one with the problem. 12 years ago
Torben Carrington 4928c9d079 Removed sqrt function call (minor optimization thanks to Chris) 12 years ago
Torben Carrington d20178dd56 Removed unnecessary std::cout messages 12 years ago
Torben Carrington 133964f0e4 AIEscort complete 12 years ago
Torben Carrington c03dca47f5 AIEscort implemented and working - only touchups are needed. 12 years ago
Torben Carrington 10840765d9 Framework - duration and pathing implemented, no waiting for follower yet. 12 years ago
rpopovici 7079b9062f add AI script functions 12 years ago
Marc Zinnschlag a092deaee8 various fixes 12 years ago