View Single Post
Violet CLM Violet CLM's Avatar

JCF Éminence Grise

Joined: Mar 2001

Posts: 10,991

Violet CLM has disabled reputation

Apr 9, 2015, 07:18 PM
Violet CLM is offline
Reply With Quote
I suppose something like
Code:
bool doesObjectUseAnimation(jjOBJ@ obj, uint curAnim) {
  jjANIMATION@ anim = jjAnimations[curAnim];
  return obj.curFrame >= anim.firstFrame && obj.curFrame < anim.firstFrame + anim.frameCount;
}
bool doesObjectUseAnimation(jjOBJ@ obj, ANIM::Set setID, uint animID) {
  return doesObjectUseAnimation(obj, jjAnimSets[setID].firstAnim + animID);
}
__________________