Game Development Community

Adding weapon animation

by Supernova · in Game Design and Creative Issues · 04/21/2009 (4:08 pm) · 3 replies

Hi,

I would like to add weapon animations to my sniper rifle, such as reload, recoil, and firing kick. How would I do this?

#1
04/22/2009 (5:31 am)
hey Supernova,

the only design tool i'm familiar with is 3ds max and it's been a while since i have used it. so this isn't going to be an indepth explanation...

to create animation for weapons in max you just assign each animation to a certain set of frames (within the same file that you will export as dts), then add a sequence object for each one and set the start frame and end frame for each sequence object.

for example you could assign the first 20 frames for the fire animation. then add a sequence object and call it Fire. Then set the start frame for the sequence object to 1 and the end frame to 20.

hope this helps you in some way :)
#2
04/22/2009 (12:28 pm)
The next step, I think, is to call these animations in the weapon image datablock's state system - I'm pretty sure that each state can have an animation. You'd have to use the names of your animation sequences to reference them in the state data.
#3
04/22/2009 (8:58 pm)
I got it working. Thanks guys!