Mads Buvik Sandvei
a9ade184d8
mLoopCount is the number of *remaining* loops. So we should be checking for >0, not >1.
2023-10-29 14:53:03 +01:00
Mads Buvik Sandvei
92a5e52407
rename "persisted" animations to "scripted", because that is what they actually are. And begin teaching the animation system to distinguish between a scripted and an unscripted animation.
2023-10-29 14:53:03 +01:00
Mads Buvik Sandvei
24890a729b
clang'd
2023-10-29 14:53:03 +01:00
Mads Buvik Sandvei
8792e76f5d
explicitly prevent movement whenever playing scripted animations
2023-10-29 14:53:03 +01:00
Mads Buvik Sandvei
cdb325f19a
Rewrite CharacterController::updateAnimQueue() to properly maintain the animation queue and clean up finished animations.
2023-10-29 14:53:03 +01:00
Mads Buvik Sandvei
24bac3ebd4
AiWander must update mIsWanderingManually when resuming wander.
2023-10-29 01:07:46 +02:00
Evil Eye
6cd5734fb3
Rate weapons as useless if the actor's skill is 0
2023-10-28 10:49:18 +02:00
psi29a
664caa2fc1
Merge branch 'iseeyou' into 'master'
...
Prevent fleeing in inappropriate situations (bug #6932 )
Closes #6932
See merge request OpenMW/openmw!3508
2023-10-26 16:24:10 +00:00
psi29a
bdd0299fe7
Merge branch 'flyyouscamps' into 'master'
...
Allow talking with fleeing creatures (bug #7631 )
Closes #7631
See merge request OpenMW/openmw!3510
2023-10-26 16:23:57 +00:00
Mads Buvik Sandvei
354b028072
isMovementAnimationControlled should be private.
2023-10-22 17:23:27 +02:00
Mads Buvik Sandvei
e893767ed0
Redundant line
2023-10-22 17:23:27 +02:00
Mads Buvik Sandvei
45a2b8042d
Derive the value of MovementAnimationControlled instead of storing it.
2023-10-22 17:23:27 +02:00
Mads Buvik Sandvei
dcf6a1fc3c
Refresh mMovementAnimationControlled when refreshing idle animations.
2023-10-22 17:22:50 +02:00
Alexei Kotov
3330907d7b
Combat AI: Prefer picking reachable/visible targets (bug #6932 )
2023-10-22 16:20:02 +03:00
Alexei Kotov
ee5ca066fd
Allow talking with fleeing creatures (bug #7631 )
2023-10-22 16:18:52 +03:00
Alexei Kotov
d0ffe6e2f9
Don't apply Charm to creatures (bug #7630 )
2023-10-21 07:10:16 +03:00
Alexei Kotov
79bda2e694
Avoid redundant animation resets in updateIdleStormState
2023-10-04 22:26:52 +03:00
Evil Eye
0814ef5697
Allow creatures to use potions
2023-10-01 11:22:20 +02:00
Alexei Kotov
440851ff48
Rewrite melee hit target selection (bug #3438 )
2023-09-19 22:31:45 +03:00
Andrei Kortunov
e1cae5a029
Rework music system
2023-09-13 09:11:07 +04:00
psi29a
090da90302
Merge branch 'factions' into 'master'
...
Implement Lua API for factions
See merge request OpenMW/openmw!3405
2023-09-12 19:41:54 +00:00
Andrei Kortunov
6ee86dea82
Implement Lua API for factions (feature 7468)
2023-09-12 09:49:03 +04:00
psi29a
9d186ee2cd
Merge branch 'ptrindex' into 'master'
...
Fix crash: PtrRegistry can contain pointers to already removed temporary ManualRefs
See merge request OpenMW/openmw!3411
2023-09-11 06:57:36 +00:00
Petr Mikheev
892f6d1aee
Make LiveCellRef to remove itself from PtrRegistry in destructor (to prevent potential use after free); Update ContainerStore::mPtr after copying container/actor.
2023-09-09 21:54:13 +02:00
Alexei Kotov
0f2e5f9db6
Uncap Drain effects again (bug #7573 )
2023-09-09 22:46:11 +03:00
Evil Eye
6cec92223e
Replace find with search
2023-09-05 16:38:34 +02:00
Andrei Kortunov
7da8f388f5
More Coverity fixes
2023-09-01 16:49:39 +04:00
Evil Eye
5a8d108852
Cast to size_t
2023-08-20 16:25:58 +02:00
Evil Eye
e660a9ca16
Assign StringRefIds to attributes
2023-08-20 10:28:46 +02:00
psi29a
42e7647508
Merge branch 'more_coverity' into 'master'
...
More Coverity fixes
See merge request OpenMW/openmw!3326
2023-08-18 12:19:10 +00:00
Andrei Kortunov
1555fd8b34
Add assert
2023-08-18 12:46:45 +04:00
psi29a
e21e3a0d46
Merge branch 'time' into 'master'
...
Pause/resume the game in Lua scripts
See merge request OpenMW/openmw!3317
2023-08-18 08:22:04 +00:00
Petr Mikheev
e2c5f4e766
Fix #7506
2023-08-16 17:14:08 +02:00
jvoisin
4cf80cdac2
Merge branch 'fix_esm4_ai' into 'master'
...
Fix AI in ESM4 cells
See merge request OpenMW/openmw!3338
2023-08-14 22:00:24 +00:00
elsid
5abbc56bf2
Use proper cell size for ESM4 cells in CoordinateConverter
2023-08-13 02:24:22 +02:00
Alexei Dobrohotov
9723912ee0
Evaluate the attack early for non-biped attacks with no hit key ( #7524 )
2023-08-11 01:27:55 +03:00
Andrei Kortunov
e749461d06
More Coverity fixes
2023-08-09 15:50:44 +04:00
Petr Mikheev
91c7585c8b
Move some time-related function from World and WorldView to DateTimeManager
2023-08-08 22:57:28 +02:00
Evil Eye
fb10014d6e
Remove heal cooldown
2023-08-07 22:44:24 +02:00
Evil Eye
ee92ae7e34
Simplify restore magicka priority
2023-08-07 22:43:39 +02:00
Evil Eye
7c82405c9f
Tweak AI rating to reduce healing spam
2023-08-07 22:43:35 +02:00
psi29a
2a4440e5b1
Merge branch 'theprojectileswereswords' into 'master'
...
Fix price enchantment price calculation to use the correct item count
Closes #7472
See merge request OpenMW/openmw!3227
2023-08-04 09:05:02 +00:00
elsid
fbeb3ab03a
Do not build path to next path point via navmesh
...
To void a situation when next path point continuously changing making actor go
in circles.
This is unnecessary but also creates problems since pathgrid is used to build
path for AiWander.
2023-07-31 22:02:21 +02:00
Petr Mikheev
0487bf95d1
Merge branch 'coverity49' into 'master'
...
Fix some Coverity warnings
See merge request OpenMW/openmw!3286
2023-07-31 00:09:14 +00:00
Petr Mikheev
e077ca5aa3
Merge branch 'clean_includes_4' into 'master'
...
Cleanup includes
See merge request OpenMW/openmw!3288
2023-07-31 00:04:18 +00:00
Mads Buvik Sandvei
c18a7801ed
Lua: active spell params and active spell effects
2023-07-31 00:02:05 +00:00
elsid
dd54857610
Add missing array include
2023-07-29 00:29:03 +02:00
Andrei Kortunov
d8ec78d732
Fix some Coverity warnings
2023-07-28 20:58:18 +04:00
psi29a
e76ce6b696
Merge branch 'fix_find_path' into 'master'
...
Remove stepping from findSmoothPath and other tweaks (#7241 , #7485 )
Closes #7485 and #7241
See merge request OpenMW/openmw!3264
2023-07-27 09:34:50 +00:00
psi29a
e073eab05e
Merge branch 'more_evade_directions' into 'master'
...
Use more evade directions and filter by supporting animation (#7450 )
Closes #7450
See merge request OpenMW/openmw!3210
2023-07-27 09:32:39 +00:00