From: Laszlo T. <ave...@us...> - 2006-02-04 13:59:46
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22444/plugins/Core Modified Files: CharAnimations.cpp Log Message: fixed large wyvern anims (four frames animation type) Index: CharAnimations.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/Core/CharAnimations.cpp,v retrieving revision 1.79 retrieving revision 1.80 diff -C2 -d -r1.79 -r1.80 *** CharAnimations.cpp 4 Feb 2006 13:22:13 -0000 1.79 --- CharAnimations.cpp 4 Feb 2006 13:59:20 -0000 1.80 *************** *** 837,853 **** ! // Note: broken void CharAnimations::AddFFSuffix(char* ResRef, unsigned char StanceID, unsigned char& Cycle, unsigned char Orient, int Part) { ! char prefix[10]; ! Cycle = SixteenToNine[Orient]; ! snprintf(prefix, 9, "%s%s%d%s%d", ResRef, StancePrefix[StanceID], Part, ! CyclePrefix[StanceID], Cycle); ! strnlwrcpy(ResRef,prefix,8); ! Cycle+=CycleOffset[StanceID]; ! } void CharAnimations::AddNFSuffix(char* ResRef, unsigned char StanceID, --- 837,903 ---- ! // Note: almost like SixSuffix void CharAnimations::AddFFSuffix(char* ResRef, unsigned char StanceID, unsigned char& Cycle, unsigned char Orient, int Part) { ! switch (StanceID) { ! case IE_ANI_WALK: ! strcat( ResRef, "g1" ); ! Cycle = Orient; ! break; ! case IE_ANI_ATTACK: ! case IE_ANI_ATTACK_SLASH: ! strcat( ResRef, "g3" ); ! Cycle = Orient; ! break; ! ! case IE_ANI_ATTACK_BACKSLASH: ! strcat( ResRef, "g3" ); ! Cycle = 16 + Orient; ! break; ! ! case IE_ANI_ATTACK_JAB: ! strcat( ResRef, "g3" ); ! Cycle = 32 + Orient; ! break; ! ! case IE_ANI_HEAD_TURN: //could be wrong ! case IE_ANI_AWAKE: ! strcat( ResRef, "g2" ); ! Cycle = 0 + Orient; ! break; + case IE_ANI_READY: + strcat( ResRef, "g2" ); + Cycle = 16 + Orient; + break; + + case IE_ANI_DAMAGE: + strcat( ResRef, "g2" ); + Cycle = 32 + Orient; + break; + + case IE_ANI_DIE: + case IE_ANI_GET_UP: + case IE_ANI_EMERGE: + strcat( ResRef, "g2" ); + Cycle = 48 + Orient; + break; + + case IE_ANI_TWITCH: + strcat( ResRef, "g2" ); + Cycle = 64 + Orient; + break; + + default: + printf("Six Animation: unhandled stance: %s %d\n", ResRef, StanceID); + abort(); + break; + + } + ResRef[6]=Part+'0'; + ResRef[7]=0; + } void CharAnimations::AddNFSuffix(char* ResRef, unsigned char StanceID, |