Commit Graph

1861 Commits (10ac432a8ca36a42f7b661960298b8e57bc9fce9)

Author SHA1 Message Date
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
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