Capostrophic
73d5496711
Revert addition change
7 years ago
Capostrophic
80f3bd9f86
Don't apply iWereWolfFleeMod to creatures
7 years ago
Andrei Kortunov
b995617559
implement rateAmmo() function
7 years ago
rexelion
a1d9f11b04
use fProjectileMaxSpeed for ranged weapons distance
7 years ago
Andrei Kortunov
cf7a6232d0
Combat AI: use WhenUsed enchantments
8 years ago
Andrei Kortunov
604f9ee323
Split weapons and spells rating code from combat actions
8 years ago
scrawl
eac2e52841
Merge pull request #1329 from akortunov/priorityfix
...
Combat AI: make default spell priority calculation formula close to vanilla
8 years ago
scrawl
fde6e29628
Merge pull request #1326 from akortunov/spellpriority
...
Combat AI improvements [feedback needed]
8 years ago
Andrei Kortunov
3ba0a336b7
Move spell magicka cost calculation to standalone function
8 years ago
Andrei Kortunov
98f161c7fd
Combat AI: avoid enemy hits when casting Self-ranged spells ( fixes #3922 )
8 years ago
Andrei Kortunov
143fdae6fe
Make spell priority calculation close to vanilla (bug #3937 ).
8 years ago
Andrei Kortunov
1a8f2bfc11
Combat AI: select target by priority
8 years ago
Andrei Kortunov
a2be73295b
Combat AI: take in account enemy weapon resistance
8 years ago
Andrei Kortunov
62b24eb078
Combat AI: do not use range weapons under water
8 years ago
scrawl
53264f34b3
Merge pull request #1321 from akortunov/spellpriority
...
Use mRange to check spell range instead of mArea.
8 years ago
Andrei Kortunov
87939bf3b1
Use mRange to check spell range instead of mArea.
8 years ago
scrawl
80eb2ea35d
Merge pull request #1313 from akortunov/spellpriority
...
Make combat AI to do not cast target spells under water
8 years ago
Andrei Kortunov
9fdfb2a83f
Spell priority: make AI do not cast target spells when enemy is under water
8 years ago
Bret Curtis
d785344fad
purge all instances of <boost/shared_ptr.hpp>, clean up unused headers
8 years ago
Andrei Kortunov
3190f28710
Spell priority: make AI do not cast target spells under water
8 years ago
Andrei Kortunov
00402b7154
Removed unused variable
8 years ago
Andrei Kortunov
42f3c73c75
Spell priority: dispel usage improvements
8 years ago
Andrei Kortunov
f6c3d4935e
Spell priority: feather and burden
8 years ago
Andrei Kortunov
6c21e4ed31
Spell priority: ignore some effects useless in battle
8 years ago
Andrei Kortunov
4d927439ca
Spell priority: item wearing check when disintegrate weapon/armor
8 years ago
Andrei Kortunov
d598809ac6
Spell priority: check spell resistance, check if actor is already has a non-magnitude effect
8 years ago
scrawl
c4a89065a2
Preload VFX of spells selected by AI actors
8 years ago
MiroslavR
5e46121046
Implement fleeing AI ( Closes #1118 )
8 years ago
Allofich
3bbde312b9
Remove unneeded code
8 years ago
Allofich
3f6543860a
Make creatures use fHandToHandReach
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
8d4f0660ce
fix hardcoded melee attack ranges
9 years ago
mrcheko
05794505c8
travis build fix
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
Allofich
b1be3596dc
Cleanup of #include statements
9 years ago
Daniel Pettersson
256439f884
Added 1.5 bonus for ranged weapons when weapons are rated
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
mrcheko
b304e98568
implement ActionWeapon::getCombatRange (move logic from AiCombat)
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