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

adjust root frame position in crouch state

This commit is contained in:
in0finite 2019-07-13 16:11:37 +02:00
parent aba5c41ffd
commit 59ca8f3d77
2 changed files with 13 additions and 0 deletions
Assets/Scripts/Behaviours/Ped/States
Docs

View file

@ -35,6 +35,17 @@ namespace SanAndreasUnity.Behaviours.Peds.States
}
}
protected override void UpdateAnims ()
{
base.UpdateAnims();
// if( !this.IsActiveState )
// return;
CrouchState.AdjustRootFramePosition(m_ped);
}
public static void AdjustRootFramePosition(Ped ped)
{
// we need to adjust local position of some bones - root frame needs to be 0.5 units below the ped

View file

@ -44,6 +44,8 @@
- Split code into separate assemblies (using asmdef files)
- When raycasting with weapons, don't use ped's character collider, but use his mesh
- Vehicles window: it's too slow - use pages ; display additional info ;
- Non-working ped model ids: WMYST, 0, special peds at the end,