Commit Graph

202 Commits (ee3aba149d55f2294adccd1b99cfa36f6beeb7dd)

Author SHA1 Message Date
Andrei Kortunov ee45f54b53 Refactor AiTemporaryStorage usage 7 years ago
Andrei Kortunov fed10e87aa Store integer actor ID in AI packages (bug #4036) 7 years ago
scrawl c50b18b3bb
Move PathgridGraph out of CellStore
By definition this is not 'Mutable state of a cell' and does not belong in CellStore.

This change should improve startup times (graph is now loaded on demand) and edits to 'pathgrid.hpp' no longer cause the entirety of OpenMW to be rebuilt.
7 years ago
rexelion f0649849b8 changed variable name to be more descriptive 7 years ago
rexelion 69a56eaea3 don't initialise rangeAttackOfTarget 7 years ago
rexelion 983c33c4c8 don't use a pointer for ActionWeapon 7 years ago
rexelion cab0002461 Backing up distance is now dependent on opponents's weapon range; don't back up from ranged oponents 7 years ago
Andrei Kortunov 62b24eb078 Combat AI: do not use range weapons under water 8 years ago
Bret Curtis d785344fad purge all instances of <boost/shared_ptr.hpp>, clean up unused headers 8 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 5a00b239ac Reduce scope of variables 8 years ago
scrawl 8752ae9c6a Fix include 8 years ago
Allofich 5d2090684a Store mHitAttemptActorId in save files 8 years ago
Allofich 25c64dbb0f Make combat engagement logic more like vanilla
(Fixes #2678, Fixes #3705)
8 years ago
Allofich e10c4d8814 Stop combat between AI when canFight is false 8 years ago
Leon Krieg 739cd5ba45 Fixed more spelling mistakes 8 years ago
Allofich a6dae51d87 Require line of sight for AI attacks (Fixes #3646) 8 years ago
MiroslavR 5e46121046 Implement fleeing AI (Closes #1118) 8 years ago
Martijn Bakker 45ffdbb284 fixed a segmentation fault when entering a cell which contains someone already attacking you 8 years ago
Allofich 04c13ffab3 Add unarmed attack selection to chooseBestAttack() 8 years ago
mrcheko 229cb4b386 remove dynamic_cast to ActionPotion 8 years ago
mrcheko 48765f2ff2 fix using potion as weapon 8 years ago
scrawl 65dc12cdd6 Remove unused parameter 8 years ago
Allofich 3bbde312b9 Remove unneeded code 8 years ago
Allofich c98d4e0473 Allow dodging for bipedal creatures 8 years ago
Allofich 7bc4535c0d Make NPCs dodge according to target's weapon reach 8 years ago
scrawl 05e4542d33 Merge pull request #1048 from mrcheko/pathfinding
Pathfinding unification v2
8 years ago
Allofich 5c2bc515fe Remove overridden code in aicombat 8 years ago
Allofich 0d63d75bb0 Remove no longer used parameter 8 years ago
Allofich 286e4bb98f Remove attacktype movement 8 years ago
Allofich 154dcc942c Let NPCs use attack type regardless of movement 8 years ago
mrcheko 612c7f1a2f Revert "Revert "Merge pull request #993 from mrcheko/pathfinding""
This reverts commit 3732979eec.
8 years ago
scrawl 3732979eec Revert "Merge pull request #993 from mrcheko/pathfinding"
This reverts commit 5190275b37, reversing
changes made to d7845012bf.
9 years ago
mrcheko e2cd87fcc7 fix veritcal aiming 9 years ago
mrcheko 293a0f768c use real distance to target to determinate 'ready to attack' state 9 years ago
mrcheko 8d4f0660ce fix hardcoded melee attack ranges 9 years ago
mrcheko d2fe6fe857 Merge remote-tracking branch 'refs/remotes/origin/master' into pathfinding
# Conflicts:
#	apps/openmw/mwmechanics/aiactivate.cpp
#	apps/openmw/mwmechanics/aicombat.cpp
#	apps/openmw/mwmechanics/aicombat.hpp
#	apps/openmw/mwmechanics/aifollow.cpp
#	apps/openmw/mwmechanics/aipackage.cpp
#	apps/openmw/mwmechanics/aipackage.hpp
#	apps/openmw/mwmechanics/aiwander.cpp
#	apps/openmw/mwmechanics/aiwander.hpp
9 years ago
terrorfisch be25e2ba75 Make NPCs use both hands in weaponless combat. 9 years ago
Allofich b1be3596dc Cleanup of #include statements 9 years ago
scrawl 8fcc1911d9 Use fCombatDistance as the creature attack range 9 years ago
Roman Proskuryakov d7046878a8 Fix uninitialized values in MWMechanics::AiCombat 9 years ago
mrcheko b304e98568 implement ActionWeapon::getCombatRange (move logic from AiCombat) 9 years ago
scrawl daa94cc50e Fix cppcheck warnings 9 years ago
mrcheko bcb1f4ed05 refactor AiCombat: remove all pathfinding code, adopt new version of
AiPackage::pathTo;
fix couple of warnings;
9 years ago
mrcheko d7d5cc6689 Merge remote-tracking branch 'upstream/master' into pathfinding
Conflicts:
	apps/openmw/mwmechanics/aicombat.cpp
	apps/openmw/mwmechanics/aifollow.cpp
	apps/openmw/mwmechanics/aipackage.cpp
	apps/openmw/mwmechanics/aipackage.hpp
	apps/openmw/mwmechanics/aiwander.cpp
	apps/openmw/mwmechanics/pathfinding.hpp

Ogre::Vector3->osg::Vec3f; REACTION_INTERVAL->AI_REACTION_TIME; MakeOgreVec3->MakeOsgVec3
9 years ago
scrawl 3453353091 AiCombat distance check takes into account collision box (Fixes #1699) 9 years ago
dteviot 5369d20682 Moved pathfinding logic from AiCombat to Pathfinding. 9 years ago
Marc Zinnschlag 96880b4dfe Merge remote-tracking branch 'scrawl/tabs' 9 years ago
scrawl c4b5a41ac3 Improve combat AI vertical aiming (Fixes #1366, Fixes #1330) 9 years ago
scrawl a47617c21f Fix tab indentations in apps/ and components/ 9 years ago