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:
parent
8cde278b13
commit
d18a226925
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue