Indeed. I'm not sure have you arleady done the animation, exported it in the right format etc. If not:
Adding your own animation to warband
First, I'm going to assume you have your animation ready. Warband only supports .smd file format for animation, thus, you need to export your animation as an smd file. If your program does not support smd natively, try searching for a plugin. Blender 2.5 and older versions have an smd plugin.
Next, we need to get our animation to the brf file. It's a rather simple process. Open up open brf, go to import and click skeletal animation. Locate your file and press open. Now you should see your animation. Save up and open module_animations.py
Go to the end of the file and create a comment indicating your animation codes are starting here. Like this
Make sure you put your code before the last ]
Next, we need to create the actual animation codes. I have a simple prone animation. It's split into two parts, from stand to prone and from prone to stand. My code will look like this
插入代码块:
["stand_to_prone", acf_enforce_lowerbody, amf_priority_kick|amf_client_prediction|amf_keep,
[1.0, "prone_down", 1, 25, arf_blend_in_6],
],
["prone_to_stand", acf_enforce_lowerbody, amf_priority_kick|amf_client_prediction|amf_play,
[1.0, "prone_up", 1, 25, arf_blend_in_1],
],
So, the first "stand_to_prone" will be the id of our animation, used to refer in other files. acf and amf are animation flags. I'm not the best to talk about them so someone else should.
Next, we have the 1.0. That is the default animation play speed. Change it if it seems too slow.
"prone_up" is the actual name of the animation in the brf file. The number "1" is the starting frame of our animation. If you have open brf open, select your animation and look at the time of frame box. The first box indicates the frame your on currently. Where the animation starts. Mine is 1 so I want it to start from there. The next number after 1 is 25. That is the ending frame. The ending frame is easy to check. Just scroll up the number of frames until it's back to 1. Be sure to check what the last number was before it changed back to 1 as that is the last frame.
So, 25 is my last frame and 1 is my starting frame.
arf_blend_in_1. Not too sure what it does. Blends in the animation? Not sure about the number it has as there are a few arf_blends. 1, 2 , 3 , 4 etc.
So, that done, your animation is finally in the game.