Commit Graph

412 Commits (2f0484f4fc55cc557a4594b01bb448c41763ec5c)

Author SHA1 Message Date
glassmancody.info cc009d246f do not clear depth buffer in first person 3 years ago
Bo Svensson ef906cbfa8
improves MWClass mapping (#3166)
Currently, we use a peculiar mapping of ESM classes by their std::type_info::name. This mapping is an undefined behaviour because std::type_info::name is strictly implementation defined. It could return a non-unique value on some platforms. With this PR we use the unsigned int sRecordId of the ESM class as a more efficient lookup type that does not build on undefined behaviour. We can expect marginally faster save-game loading with these changes as well.
3 years ago
Bo Svensson b2af81bc18
converts remaining osg::NodeCallback (#3147)
With this PR we convert remaining instantiations of the deprecated osg::NodeCallback in Open MW to SceneUtil::NodeCallback.
3 years ago
Bo Svensson 8e9851c97c
npcanimation.cpp (#3148) 3 years ago
Evil Eye dc1fe62dde Overhaul magic effects to work with onApply and onEnd events 3 years ago
Bo Svensson 147ed39900
This PR solves a crash with Robert's bodies logged on your bugtracker. (#3095)
* attach.cpp [ci skip]

* attach.cpp [ci skip]

* attach.cpp [ci skip]

* npcanimation.cpp [ci skip]

* attach.hpp [ci skip]

* attach.cpp [ci skip]

* creatureanimation.cpp [ci skip]

* creatureanimation.cpp [ci skip]

* cellpreloader.cpp

* npcanimation.cpp

* attach.cpp

* make android adk happy

* make android adk happy

* changelog.md [ci skip]

* authors.md [ci skip]
3 years ago
jvoisin 7a015d24c6 Sprinkle some const-ref 3 years ago
glassmancody.info 09e03fde2e refactor and fix wobbly shores 3 years ago
glassmancody.info cad0b151cb enable shaders path and dehardcode depth formats 3 years ago
glassmancody.info 70fac33940 initial reverse-z depth implementation 3 years ago
jvoisin ce8c30bf07 Minor code simplification in npcanimation.cpp 3 years ago
Nelsson Huotari 3194520dcd Move base_anim settings to settings-default.cfg 3 years ago
Nelsson Huotari f78a5d795c Separate keyframes logic to provide basis for osgAnimation integration. 4 years ago
Andrei Kortunov 8ca3c3b123 Mark overrided methods by override keyword 4 years ago
Andrei Kortunov c3d84b2c7c Ability to attach arrows to shooter's hands (feature #5642) 4 years ago
Andrei Kortunov 47af221f10 Reset ammo when switching view to avoid warnings spam 4 years ago
Andrei Kortunov 297898182b Reset attached arrow in the beginning of unequipping animation 4 years ago
psi29a 46db69a349 Merge branch 'swimming' into 'master'
Swimming-related fixes

See merge request OpenMW/openmw!247

(cherry picked from commit 8be328ef80f29e9692e29d24beefa8ced16537a7)

738c71fd Extend the "turn to movement direction" mode for swimming up and down.
10d3e82b New setting "swim upward coef"
4 years ago
elsid 3c460fb3e9
Use pointer to Sound to stop sounds started by NpcAnimation 4 years ago
bzzt lost a hitlab login f12879a04c allow statesetupdater as cullcallback = faster + works in paging
Signed-off-by: Bret Curtis <psi29a@gmail.com>
4 years ago
elsid 9326111f4c
Use vector for Animation::mActiveControllers
Container is only used to add elements, iterate over all of them and
clear. Multimap adds overhead for all of these operations without any
benefits. Reduce Animation::resetActiveGroups CPU time usage by 50%.
4 years ago
Alexei Dobrohotov 7ba8176862
Merge pull request #2819 from elsid/fix_ub
Fix UB in NpcAnimation::mNpcType initialization
4 years ago
elsid 6d8debe009
Initialize variable without reading itself 4 years ago
Capostrophic 87ba0bb0e0 Fix usage of uninitialized weapon type in equipmentChanged() 4 years ago
Bret Curtis 8a8107e837 as it says; revert vismask and uncomplicate openmw 4 years ago
Capostrophic 3e3f5d66b2 Don't reset dead non-werewolf vampires' vampire NPC type 4 years ago
Evil Eye 4f4982545a make robes cover the chest slot 4 years ago
Bret Curtis a0902bb98e
Merge pull request #2700 from akortunov/masks
Move VisMask to components
4 years ago
Andrei Kortunov 84979fa8b7 Move VisMask to components 4 years ago
Capostrophic fcbd3b4324 Don't try to attach absent shield models to NPCs 4 years ago
Capostrophic 4a78674583 Make sure not to pick the ground shield model incorrectly 4 years ago
capostrophic bbe5adb860 Use shield body part model for creatures (bug #5250) 4 years ago
Andrei Kortunov 97ee4bc349 Improve equipment logic (bug #5223) 4 years ago
Andrei Kortunov d66b81d7f7 Reset holstered shield before rebuilding an NPC animation 5 years ago
Andrei Kortunov ca2a524a5f Avoid null pointer dereference 5 years ago
Andrei Kortunov d3a3b2f1f6 Shields holstering support (feature #5193) 5 years ago
Andrei Kortunov d58f93f388 Use sayDone() only for scripting backward compatibility 5 years ago
Andrei Kortunov afaff8231d Use the Weapon Bone as fallback 5 years ago
Andrei Kortunov f0cef772fa Refactor weapon types behaviour
1. Move weapon types behaviour from switches to the table (should allow
us to de-hardcode weapon types later)
2. Gereralize bones injection to actors skeletons (instead of using the
hardcoded xbase_anim_sh.nif)
5 years ago
Andrei Kortunov 8557346fbd Use glow for enchanted arrows (feature #5122) 5 years ago
Andrei Kortunov 1eed511b4e Use enchanted glow for pulled arrows 5 years ago
Andrei Kortunov 4c92f0c4e1 Move getEnchantmentColor() from Animation to Class 5 years ago
Andrei Kortunov c3fdccac1f Do not use the xbase_anim.kf as a fallback for werewolves (bug #5004) 5 years ago
Chris Djali 1860d720bc
Merge pull request #2263 from akortunov/actor_culling
Do not recreate shaders to update transparency
5 years ago
elsid fa7b304e78
Use auto for map value_type in range-based for loops
To avoid implicit call of copy constructor for
pair<const K, V> to pair<K, V> conversion.
5 years ago
Capostrophic 695cd5bb49 Minor NpcAnimation cleanup 5 years ago
Andrei Kortunov e171d34192 Init NPC type properly in the NpcAnimation 5 years ago
bzzt 5ec28e09c9 Do not recreate shaders to update transparency 5 years ago
Andrei Kortunov 4c21776b94 Use relative animation time only for bows and crossbows (bug #3778) 5 years ago
Andrei Kortunov 3032b177a1 Remove redundant includes 5 years ago