2
0
Fork 0
mirror of https://github.com/GTA-ASM/SanAndreasUnity synced 2025-03-05 07:37:17 +00:00

fix only the broken anim

This commit is contained in:
in0finite 2019-07-14 22:23:42 +02:00
parent 8cde278b13
commit d18a226925

View file

@ -18,7 +18,7 @@ namespace SanAndreasUnity.Behaviours.Peds.States
if (!this.IsActiveState)
return;
if (m_ped.CurrentWeapon != null)
if (m_model.LastAnimId.Equals(new AnimId(AnimGroup.Gun, AnimIndex.run_armed)))
{
// set y position of unnamed and root frame to 0
@ -27,6 +27,7 @@ namespace SanAndreasUnity.Behaviours.Peds.States
if (m_model.RootFrame != null)
m_model.RootFrame.transform.localPosition = m_model.RootFrame.transform.localPosition.WithXAndZ();
}
}