Commit Graph

1941 Commits (3df57b183374cc941824a31758c5a43ab899faa4)

Author SHA1 Message Date
scrawl 4acfe1a7e4 Move cleanupSummonedCreature to the mechanics manager (Bug #3439) 9 years ago
scrawl 910ad76e29 Remove spell effects when a summoned creature expires (Bug #3439) 9 years ago
scrawl b7e45b046d When a summoned creature dies, wait for its death animation to complete before removing it (Bug #3439) 9 years ago
scrawl a825882c6b Process death events at the end of the death animation (Fixes #1873) 9 years ago
scrawl 37afe966cf Update comment 9 years ago
scrawl 7a30ef5cc1 Do not consider actors following the player as hostiles 9 years ago
scrawl 8fcc1911d9 Use fCombatDistance as the creature attack range 9 years ago
scrawl 166cced22f Merge pull request #957 from svaante/master
Added 1.5 bonus for ranged weapons when weapons are rated
9 years ago
scrawl a14f1bc222 Merge pull request #954 from Allofich/AIWanderDuration
Improve duration calculations in Wander AI
9 years ago
Allofich 55ac1fab68 Change Wander duration to run on a counter 9 years ago
Daniel Pettersson 256439f884 Added 1.5 bonus for ranged weapons when weapons are rated 9 years ago
scrawl abcd2219e8 Ignore the calling actor in getEnemiesNearby / getActorsFighting 9 years ago
scrawl 165f048792 Do not count dead NPCs as observers (Fixes #3434) 9 years ago
scrawl f417d7780a Fix the enemy nearby check (Bug #3423) 9 years ago
scrawl a45643f150 Merge pull request #949 from Allofich/master
Fix return values for AITravel
9 years ago
Allofich 065d6a391d Don't repeat sequences of only one non-wander AI 9 years ago
Ben Shealy 5085afa3d7 Moved mechanics code from MWGui::TradeWindow to MWMechanics::Trading 9 years ago
Allofich bce66c629a Change editor-placed AI packages to cycle 9 years ago
scrawl 496cb85b01 Do not cancel Ai packages when on loading (Fixes #3409)
This piece of code was an attempt to fix up save games made before commit d3b76b7006 , but ended up introducing a new bug.
9 years ago
scrawl 0efbdb25ee Improve const-correctness in Animation 9 years ago
scrawl 3749821809 Choose a random death animation for actors that start the game as dead (Fixes #3397) 9 years ago
scrawl 3b31e8f66e Do not set AiPackageDone flag for non-Aipackages (Fixes #3392) 9 years ago
Roman Proskuryakov d7046878a8 Fix uninitialized values in MWMechanics::AiCombat 9 years ago
Michał Moroz 40cc6a4164 Changed AiSequence::stack to push_back lower priority packages instead of push_front (Bug #3384) 9 years ago
scrawl 93b2f09224 Workaround for some AI functions being incorrectly handled as AI packages (Bug #3378) 9 years ago
scrawl 5edfe8c41c Reduce the wander fast forward overcrowding offset (Fixes #3370) 9 years ago
Austin Salgat be16857f96 Fix wrong height being used for water detection 9 years ago
Austin Salgat e9157e9200 Fix idle animation and Fix water creature manual wandering 9 years ago
Austin Salgat 3dec10c686 Update variable to prevent underflowing
While not an issue presently, the variable may be used in the future in a way that could create issues if it underflows.
9 years ago
Austin Salgat 84179c262f Update manual wandering to prevent actor from leaving/entering water
Water creatures will stay in the water, while land creatures will stay on land when wandering.
9 years ago
Austin Salgat fc03216d48 Refactor to reuse existing obstacle detection 9 years ago
Austin Salgat 34726c24d9 Fix mDistance being reset prematurely
This was causing wandering without pathgrids to become disabled for most wandering units. Additionally, wandering now behaves the same for both NPCs and creatures.
9 years ago
Austin Salgat 92b352989a Add logic for NPC wandering without pathgrids 9 years ago
Austin Salgat c02881a4f8 Fix creatures not wandering 9 years ago
Austin Salgat 38f5a225ea Refactor PathFinder functions to be useable by AiWander
This avoids having to duplicate the distanceSquared and getClosestPoint functions.
9 years ago
Austin Salgat 96231e17f0 Fix wandering NPCs going off pathgrid
If multiple pathgrids exist in the same cell, sometimes an NPC would port to a different pathgrid that was nearby. This is an issue since it allowed them to do things like travel through walls to inaccessible areas. Now they will only wander along the closest connected pathgrid.
9 years ago
scrawl 79c8f69b24 Clear the class selected / race selected flags when starting a new game (Fixes #3326) 9 years ago
scrawl e71aa53574 Don't allow playing a sound/soundgen key more than once at the same time on the same object (Fixes #2689) 9 years ago
scrawl b332704df7 Switch hand-to-hand attack types randomly when "always use best attack" is turned on (Fixes #3259) 9 years ago
scrawl a6e23d03d3 Don't clamp disposition twice, clamping is already done inside getDerivedDisposition 9 years ago
scrawl 102f9719f7 Remove some garbage 9 years ago
scrawl 79eb2d20e0 Cleanup 9 years ago
scrawl 12ec90f9e7 Change default argument, fix GetDisposition 9 years ago
scrawl bc5adfa4fe Merge pull request #913 9 years ago
scrawl 14e1911820 Fix memory leaks 9 years ago
ae-g-i-s c9791c5c1a Add addTemporaryDispositionChange parameter to MechanicsManager::getDerivedDisposition(), adjust callers that previously added temp disposition changes themselves (fixes #3233) 9 years ago
ae-g-i-s 2f1c6c740c Revert "Fix incorrect handling of baseDisposition >= 100 in testDisposition(), enable unbounded getDerivedDisposition() (Fixes #3233)"
This reverts commit 000597236e.
9 years ago
ae-g-i-s 000597236e Fix incorrect handling of baseDisposition >= 100 in testDisposition(), enable unbounded getDerivedDisposition() (Fixes #3233) 9 years ago
scrawl 2821f46a18 Corpse clearing fix 9 years ago
scrawl 7485abe5c3 Use safePlaceObject for summoned creature spawning 9 years ago
scrawl 11f00e3aa9 Rename safePlaceObject to placeObject 9 years ago
scrawl c3ef387208 Vanilla-compatible creature/NPC respawning (Fixes #2369, Fixes #2467) 9 years ago
scrawl a97eae864d Fix the ObstacleCheck time step (Fixes #3211) 9 years ago
scrawl d05603c7fe Directly apply On Target 'When Strikes' enchantments instead of launching a projectile (Fixes #3212) 9 years ago
scrawl 90a99991d1 Use empty() instead of !size() 9 years ago
scrawl 8bd16e4d5a Don't compute the world matrix multiple times 9 years ago
scrawl c4d38bb42d Fix clang analyzer warnings 9 years ago
scrawl 48ac0bef3e Repair save games affected by bug #3080 (Fixes #3160) 9 years ago
scrawl a7b217def2 AI: don't cast fortify effects (Fixes #3184) 9 years ago
scrawl 162287b82d AI combat actions: rename 'target' to 'enemy' 9 years ago
scrawl 94c05c6baa AI: don't cast useless resist spells (Fixes #2760) 9 years ago
scrawl d3415387a5 AI: take into account success chance when rating a spell 9 years ago
scrawl b9d1d6144a Don't reveal unknown potion effects in alchemy window (Fixes #3146) 9 years ago
scrawl d3b76b7006 Don't stack Ai packages (Fixes #3101, Fixes #3080, Fixes #2697) 9 years ago
scrawl 7aeafd3bb9 Revert "Apply the AiTravel maxRange to AiEscort as well (Fixes #2697)"
This reverts commit 1f543b4d79.
9 years ago
scrawl 145756c0a1 Partly revert "Avoid directly iterating the actor map (Fixes #3173)"
Caused issues when a summoned creature is removed as part of the magic effect update.

Fixes #3178
9 years ago
scrawl 59d2de118f Avoid directly iterating the actor map (Fixes #3173) 9 years ago
scrawl 50ed061154 AiWander: reset mAllowedNodes on cell change (Fixes #3176, Fixes #3130) 9 years ago
scrawl dda4273349 Actors that start the game as dead do not float to the surface (Fixes #3177)
This has a minor bug (can you spot it?) that affects the vanilla engine as well, unfortunately not so simple to fix.
9 years ago
scrawl 832eaae27b Do not apply effects with CasterLinked flag when there is no valid caster 9 years ago
scrawl c34314ae26 When an actor dies purge all spell effects cast by that actor (Fixes #3175) 9 years ago
Tobias Kortkamp 0659687bfb Some fixes for building on FreeBSD 9 years ago
scrawl b0431833a1 Fix some defects reported by Coverity CI 9 years ago
mrcheko b304e98568 implement ActionWeapon::getCombatRange (move logic from AiCombat) 9 years ago
scrawl 4e6a60672d When a spell explodes on an actor do not apply it to that actor twice (Fixes #3142) 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
Poncho b1020dcd42 Use correct direction multipliers during awareness check 9 years ago
mrcheko b960b0af93 rewrite pathTo for clearer logic; reapply Scrawl's aifollow threshold 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 63b9b075aa Do not allow soul trapping the same creature more than once (Fixes #3102) 9 years ago
scrawl 0bec6e5fbe Fix 'failed to find animation' warnings when a spell was equipped before the werewolf transformation 9 years ago
scrawl 6b67911658 Unset DrawState_Spell when becoming a werewolf 9 years ago
scrawl f052c05018 Move werewolf functions from World to MechanicsManager 9 years ago
scrawl 29d0f448b4 Add const version of World::getAnimation 9 years ago
scrawl 51c77c5045 Accept a ConstPtr in getDoorState 9 years ago
scrawl 53f4b92426 AiEscort do not follow target through doors
Testing revealed a problem where the guard on the prison ship would incorrectly follow the player outside. Upon further investigation in vanilla MW, it appears that with AiEscort the actor only follows the target through doors once the AiEscort package has completed, *and* no new AI package is running yet.
9 years ago
scrawl 04f7a8f8eb Remove redundant getId function 9 years ago
scrawl b2add6470b Missing include fix 9 years ago
scrawl 1c8244276d Exception handling improvements (Bug #3090) 9 years ago
scrawl 689dea4cb3 Add instant spell effects to the actor's magic effect list
Via http://forum.openmw.org/viewtopic.php?f=2&t=3212&start=20#p36208
9 years ago
scrawl 375caf037d Don't applyInstantEffect when magnitude is zero 9 years ago
scrawl 4af376133b Don't tick effects when duration is zero 9 years ago
scrawl 572786bff2 Instant effects that were added by a permanent ability are applied every frame
Via http://forum.openmw.org/viewtopic.php?f=2&t=3212&p=36120#p36121
9 years ago
scrawl a7e0562e1c Fix improper handling of multiple AiFollow packages with the same target (Fixes #3077) 9 years ago
scrawl f1f82af64e Fix improper swimming animations in first person mode 9 years ago
scrawl bdae572264 Merge pull request #840 from scrawl/movedrefs
Object movement between cells
9 years ago
scrawl 6f98982bc2 Make sure that health is >= 1 when resurrecting the player (Fixes #2972) 9 years ago
scrawl 34f48d63f3 Apply spell absorption once per effect (Fixes #2942) 9 years ago
scrawl 07b064f616 Rename to lowerCaseInPlace 9 years ago