mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-08 03:27:58 +03:00
Use "idle" anim when in noclip mode
This commit is contained in:
parent
9930d50f99
commit
19eec6305b
1 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue