Commit Graph

21 Commits (openmw-39)

Author SHA1 Message Date
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 783594033a Optimize MWMechanics::Spells
Use pointers as map keys instead of string IDs. Resolves a nasty performance bottleneck on functions like hasCommonDisease() that previously had to look up all contained spells from the ESM store on every call. hasCommonDisease() is called hundreds of times per frame by the AI target update since it's used to calculate target disposition.

The total cost of hasCommonDisease() was 2.7% of the frame loop, now it's negligible.
9 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
scrawl 8a210c49e9 Improve AI prioritising health potions 10 years ago
scrawl 4d5adfb5dd Fix being able to use enchantments of items that failed to equip (Fixes #2215) 10 years ago
scrawl 2b78e9795d Implement Calm effect removing combat packages (Fixes #1985) 10 years ago
scrawl 4f3995a4d8 Fix werewolf AI being able to use items 10 years ago
scrawl c684c99a95 Combat AI: Don't attempt to cast spells when impossible to succeed (Fixes #2059) 10 years ago
scrawl d51daf5875 Fix AI not using F_Always spells, for example "vampire touch" 10 years ago
scrawl 7252cb63a6 Fix cppcheck issues 10 years ago
scrawl 0c75c6bf1b Improve spellcasting AI for Drain/Damage effects 10 years ago
scrawl 157c53bed4 Handle spellcasting for creatures with no casting animation (Fixes #1856) 10 years ago
scrawl 31b31115af Fix AI not using Restore Health effect when it is complemented by unnecessary restore magicka/fatigue effects (e.g. in sc_purityofbody) 10 years ago
scrawl a62e40f4ed Add situational AI use of Feather, Dispel and Cure effects 10 years ago
scrawl 0be1ac1343 Enable casting of NoMagnitude effects in AI (e.g. summoned creatures) 10 years ago
scrawl 2e623bac5a Don't attempt to use broken weapons in AI 10 years ago
scrawl 0bdc1b243a Consider weapon ammunition in combat AI (Fixes #1576) 10 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)
10 years ago