remove unused code

This commit is contained in:
in0finite 2022-01-02 23:31:04 +01:00
parent 881c42cd7a
commit d7c6cc9c43
2 changed files with 2 additions and 37 deletions

View file

@ -517,34 +517,6 @@ namespace SanAndreasUnity.Behaviours
}
}
public virtual AnimId GetAnimBasedOnMovement (bool canSprint)
{
Ped ped = m_ped;
if (ped.IsRunOn) {
return this.RunAnim;
} else if (ped.IsWalkOn) {
return this.WalkAnim;
} else if (ped.IsSprintOn) {
if (canSprint) {
return new AnimId (AnimGroup.MyWalkCycle, AnimIndex.sprint_civi);
} else {
return this.IdleAnim;
}
} else {
// player is standing
return this.IdleAnim;
}
}
public virtual AnimId AimAnim {
get {
return new AnimId (AnimGroup.Rifle, AnimIndex.RIFLE_fire);
@ -607,13 +579,6 @@ namespace SanAndreasUnity.Behaviours
}
// TODO: this function should be removed, and new one should be created: OnAnimsUpdated
public virtual void UpdateAnimWhileHolding ()
{
Ped ped = m_ped;
ped.PlayerModel.PlayAnim (this.GetAnimBasedOnMovement (this.CanSprintWithIt));
}
void AssignGunFlashTransform()
{
this.GunFlash = this.transform.FindChildRecursive("gunflash");

View file

@ -32,7 +32,7 @@ namespace SanAndreasUnity.Behaviours.Weapons
}
}
public override void UpdateAnimWhileHolding ()
/*public override void UpdateAnimWhileHolding ()
{
Ped ped = m_ped;
@ -48,7 +48,7 @@ namespace SanAndreasUnity.Behaviours.Weapons
} else {
base.UpdateAnimWhileHolding ();
}
}
}*/
}