Game Development Community

Multiple animations sets.

by Ehab Yosry Amer · in Technical Issues · 03/17/2010 (5:56 am) · 0 replies

I was trying to understand a bit about how the engine picks animations according to the current action.
What I managed to figure out so far is that the 1st 9 animations (0-8) are preset to the regular movement (root, forward, back, side, ...) they are fixed through preknown indeeces (0-8)
I was trying to figure out a way of how to make a few sets of those animations according to the current equipped weapon (1 handed, 2 handed or non for example) so my idea was, lets say that the 1st 9 animations are for unarmed, the 2nd 9 (9-18) for one handed, the 3rd 9 (19-27) for the 2handed weapons. so the code to do this is to check for which mounted weapon in the function "pickActionAnimation" and add a 9 or 18 to the animation index that was already picked (which would send me to the set i need)

what I'm not sure about is, I don't know how to set the player animation script file, I mean .. some animations are named. What else do i need to change to get those animations to work, I guess i'll have to change the "ActionAnimationDef" values too, or add something to the constructor of the playerdata.

I hope some1 understands what I'm trying to say coz clearly I fail to explain it :D (If i knew how I would have managed to figure it out :D )

well ... plz help :D :D
thanks in advance :)