Add Animation ?

正在查看此主题的用户

Alphα

Section Moderator
Hey guys, Could you explain me how to put new animations on a module system. I have already the brf file, the modification in the module.ini, and i have change the ani's name in "module_animation.py".

It not work. I need your help.

Regards,
AlphA
 
jacobhinds 说:
can you show your code?

Sure, there it is : "module_animation"

插入代码块:
["walk_staff_new", acf_enforce_lowerbody, amf_use_cycle_period|amf_client_prediction,
 [1.0, "walk_staff_new", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0],
the new ani, called walk_staff_new has the  same name compared with the brf.
 
you don't change the first name - that's the ID of the animation that the game has to read. assuming the original animation was walk_staff, your code should look like this:

插入代码块:
["walk_staff", acf_enforce_lowerbody, amf_use_cycle_period|amf_client_prediction,
 [1.0, "walk_staff_new", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0],
 
jacobhinds 说:
you don't change the first name - that's the ID of the animation that the game has to read. assuming the original animation was walk_staff, your code should look like this:

插入代码块:
["walk_staff", acf_enforce_lowerbody, amf_use_cycle_period|amf_client_prediction,
 [1.0, "walk_staff_new", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0],
thanks, I will test it soon.
 
There I have just change an existent animation, can I make new one ?
What module I need to work ?
 
jacobhinds 说:
but telling the game when to use them is far harder.

Yeah, do you know how class them ?


jacobhinds 说:
What did you have in mind?
I would like add more animations in order to make a better gameplay.
 
If you mean more animations for the same action (i.e. running), you can do something like this:

插入代码块:
["walk_staff", acf_enforce_lowerbody, amf_use_cycle_period|amf_client_prediction,
 [1.0, "walk_staff_1", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0],
 [1.0, "walk_staff_2", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0],
 [1.0, "walk_staff_3", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0],

Etc.

The game then picks a random animation for each agent per cycle.
 
jacobhinds 说:
If you mean more animations for the same action (i.e. running), you can do something like this:

插入代码块:
["walk_staff", acf_enforce_lowerbody, amf_use_cycle_period|amf_client_prediction,
 [1.0, "walk_staff_1", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0],
 [1.0, "walk_staff_2", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0],
 [1.0, "walk_staff_3", 0, 32, arf_use_walk_progress|arf_cyclic|blend_in_walk|arf_make_walk_sound,pack2f(0.4,0.9), (0, 0, 0), 0.0],

Etc.

The game then picks a random animation for each agent per cycle.


nice thanks
 
I'v some problem with my animations. All crossbows take staff_animation_new... why ?
 
后退
顶部 底部