mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-11 13:06:40 +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;
|
int animnum;
|
||||||
|
|
||||||
if (getMoveType() == MOVETYPE_NOCLIP && slot) {
|
if (getMoveType() == MOVETYPE_NOCLIP) {
|
||||||
StopPartAnimating(torso);
|
if (slot) {
|
||||||
return;
|
StopPartAnimating(torso);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
anim = "idle";
|
||||||
}
|
}
|
||||||
|
|
||||||
animnum = gi.Anim_NumForName(edict->tiki, anim);
|
animnum = gi.Anim_NumForName(edict->tiki, anim);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue