Use "idle" anim when in noclip mode

This commit is contained in:
smallmodel 2025-01-04 21:15:32 +01:00
parent 9930d50f99
commit 19eec6305b
No known key found for this signature in database
GPG key ID: A96F163ED4891440

View file

@ -61,9 +61,13 @@ void Player::SetPartAnim(const char *anim, bodypart_t slot)
{
int animnum;
if (getMoveType() == MOVETYPE_NOCLIP && slot) {
StopPartAnimating(torso);
return;
if (getMoveType() == MOVETYPE_NOCLIP) {
if (slot) {
StopPartAnimating(torso);
return;
}
anim = "idle";
}
animnum = gi.Anim_NumForName(edict->tiki, anim);