mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
Fix swim crossbow animations
This commit is contained in:
parent
947f20ddb9
commit
0440c11ccd
@ -423,6 +423,7 @@ void CharacterController::refreshMovementAnims(const WeaponInfo* weap, Character
|
|||||||
movementAnimName = weap->shortgroup + movementAnimName;
|
movementAnimName = weap->shortgroup + movementAnimName;
|
||||||
else
|
else
|
||||||
movementAnimName += weap->shortgroup;
|
movementAnimName += weap->shortgroup;
|
||||||
|
|
||||||
if(!mAnimation->hasAnimation(movementAnimName))
|
if(!mAnimation->hasAnimation(movementAnimName))
|
||||||
{
|
{
|
||||||
movemask = MWRender::Animation::BlendMask_LowerBody;
|
movemask = MWRender::Animation::BlendMask_LowerBody;
|
||||||
@ -451,6 +452,10 @@ void CharacterController::refreshMovementAnims(const WeaponInfo* weap, Character
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// For crossbow animations use 1h ones as fallback
|
||||||
|
if (mWeaponType == WeapType_Crossbow)
|
||||||
|
movementAnimName += "1h";
|
||||||
|
|
||||||
movementAnimName.erase(swimpos, 4);
|
movementAnimName.erase(swimpos, 4);
|
||||||
if (weap != sWeaponTypeListEnd)
|
if (weap != sWeaponTypeListEnd)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user