Fixed 1.7 arm swing animation
This commit is contained in:
parent
53ff372624
commit
53e8c067ea
@ -1065,7 +1065,29 @@ void cClientHandle::HandleAnimation(char a_Animation)
|
|||||||
// Plugin disagrees, bail out
|
// Plugin disagrees, bail out
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Because the animation ID sent to servers by clients are different to those sent back, we need this
|
||||||
|
switch (a_Animation)
|
||||||
|
{
|
||||||
|
case 0: // No animation - wiki.vg doesn't say that client has something specific for it, so I suppose it will just become -1
|
||||||
|
case 1:
|
||||||
|
case 2:
|
||||||
|
case 3:
|
||||||
|
{
|
||||||
|
a_Animation--; // Offset by -1
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 5:
|
||||||
|
case 6:
|
||||||
|
case 7:
|
||||||
|
{
|
||||||
|
a_Animation -= 2; // Offset by -2
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default: // Anything else is the same
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
m_Player->GetWorld()->BroadcastEntityAnimation(*m_Player, a_Animation, this);
|
m_Player->GetWorld()->BroadcastEntityAnimation(*m_Player, a_Animation, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user