mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-06 19:01:04 +03:00
Fixed script model animation issues, especially when they're looping
This fixes #220.
This commit is contained in:
parent
5a8cc83e6e
commit
9eec50d69f
1 changed files with 1 additions and 0 deletions
|
@ -1957,6 +1957,7 @@ void ScriptModel::SetAnimEvent(Event *ev)
|
|||
animnum = gi.Anim_NumForName(edict->tiki, animname);
|
||||
if (animnum >= 0) {
|
||||
NewAnim(animnum, EV_ScriptModel_AnimDone);
|
||||
RestartAnimSlot(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue