Commit Graph

108 Commits (moveref)

Author SHA1 Message Date
scrawl a58bc9f2f7 Remove sneaking effect on combat AI (Fixes #2237) 10 years ago
Paulo Viadanna bfa048e687 Fix #1734: AI will stop combat if target disappear 10 years ago
terrorfisch 4eb1668467 references now initialized when they are needed 10 years ago
terrorfisch 730abf6841 Moved all variables in temporary storage for AiCombat and some more for AiWander.
+Buxfix for previous AiWander changes
10 years ago
terrorfisch 4c36c67fb8 Updated AiCombat:
-moved everything except target to temporary storage
-removed the Pathfinder since present in baseclass
-cleaned some trigonometric mess
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 07cd647e75 Fix broken AI for creatures with OnTarget spells (Bug #1927) 10 years ago
scrawl 233e221de2 Terminate AI packages when target is disabled or deleted (Fixes #1910) 10 years ago
scrawl 0f43592237 Another invalid iterator fix 11 years ago
scrawl f8f4d2dfdb Another invalid iterator fix 11 years ago
scrawl 1a98f8ca93 Invalid iterator fix 11 years ago
scrawl 0fe9612afb Implement basic spellcasting AI (Fixes #961)
Select a weapon to attack with in AiCombat and equip it (Fixes #1609, Fixes #1772)
11 years ago
scrawl 4773d754c6 Remove redundant isHostile flag (Fixes #1652) 11 years ago
scrawl d81e9cfefd Implement actors fighting for the actor they are following (Fixes #1141) 11 years ago
Lukasz Gromanowski 171c61022d Added initialization of weapRange in AiCombat::execute().
Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
11 years ago
scrawl 523c2715e3 AiCombat: Handle Start to Min and Min to Max durations of 0 (found in Riekling animation) 11 years ago
scrawl 4f9ebd148c Fix broken AI movement on Z axis 11 years ago
Marc Zinnschlag 01c90a3434 Merge remote-tracking branch 'mrcheko/master' 11 years ago
scrawl 832f1a4857 Fix merge mistake 11 years ago
mrcheko c4e5872620 fix bug http://bugs.openmw.org/issues/1470 11 years ago
scrawl fe5bbfce3c Merge branch 'master' of https://github.com/OpenMW/openmw
Conflicts:
	apps/openmw/mwmechanics/aicombat.cpp
11 years ago
scrawl a54ac579a5 Savegame: Store AiSequence 11 years ago
mrcheko df7213185f warning fixes 11 years ago
mrcheko d6d9df6cec split getStartTime 11 years ago
mrcheko 979128b2c5 Combat music; some minor combat fixes 11 years ago
mrcheko 08e8dab067 merge openmw master 11 years ago
mrcheko 67abc60264 aiming to moving target in ranged combat ai
1) Taking into account target move vector and speed. However aiming is not
ideal, since attack strength can't be controlled directly. I did achieve
almost 100% accuracy updating it everyframe but then thought it would be
unfair, cause AI should mimic human targetting.
2) Also added in this commit func to measure real attack durations for
weapon.
11 years ago
Marc Zinnschlag 4aab4bae65 minor cleanup and silenced a warning 11 years ago
Marc Zinnschlag f0d0a31a19 Merge remote-tracking branch 'mrcheko/master' 11 years ago
mrcheko 8fa7fcdbee fix bug http://bugs.openmw.org/issues/1335 (1304 as well)
though fish detects if actor is swimming, but in MW it attacks even if
the player is knee-deep in water
11 years ago
scrawl 039398c8ae Basic RefData and CellRef change tracking
Wrapped item charge handling in getItemHealth function
11 years ago
mrcheko c62187bd55 fix bug at http://bugs.openmw.org/issues/1155
Though it still can happen sometimes but not in such stupid manner.
11 years ago
mrcheko aa5647b45e merge master, resolve conflicts 11 years ago
mrcheko 5be37f04ef Feature 1314: make npc fight creatures 11 years ago
scrawl 0bc33fa86a Revert "AiCombat: Removed obsolete door back-off code (now handled in AiAvoidDoor)"
Apparently not working for AiCombat due to its higher getPriority(). What should we do here?

This reverts commit a6e1d7ffd6.
11 years ago
scrawl a6e1d7ffd6 AiCombat: Removed obsolete door back-off code (now handled in AiAvoidDoor) 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
Marc Zinnschlag 2009cf9ad7 Merge remote-tracking branch 'scrawl/master' into openmw-30 11 years ago
scrawl 1444cd9051 Fix AiCombat exception when actor has a lockpick/probe equipped.
Don't make NPCs autoEquip lockpicks/probes, since they can't use them.
11 years ago
cc9cii cf23721f1b Windows debug build crash fix. 11 years ago
mrcheko e8f7d12c01 uninit bool and invalid iterator bugs fixes 11 years ago
mrcheko 35c1724d39 unblock vertical aiming for combatants 11 years ago
mrcheko 22cdb166f2 warning fix, vars renaming 11 years ago
mrcheko 82121e0401 some checks reworked 11 years ago
mrcheko 6a3dddfb9a merge master 11 years ago
mrcheko dbe1307de0 code refining + minor fixes 11 years ago
mrcheko f3626adc86 remake of z-moving in combat for flying/swimming enemies 11 years ago
mrcheko fbd0ffe86f enable z-moving for flying/water combatants 11 years ago
mrcheko f811abb752 pathgrid shortcutting extended 11 years ago
cc9cii 3dfd08cf2d Cleanup and little tweaking. 11 years ago