order of stagger animation ?

正在查看此主题的用户

ardaarsen01

Sergeant
Hey ,
I want to obtain the  stagger animation but there are plenty  of animations . I tried to read and understand flags , but i have no idea about animations.py .
#(agent_set_animation, ":player_agent" , "anim_strike_head_left", 1),
#(agent_set_animation, ":player_agent" , "anim_strike_head_right", 1),
#(agent_set_animation, ":player_agent" , "anim_strike_head_front", 1),
#(agent_set_animation, ":player_agent" , "anim_strike_head_back", 1),
#(agent_set_animation, ":player_agent" , "anim_strike_chest_left", 1),
#(agent_set_animation, ":player_agent" , "anim_strike_chest_right", 1),
#(agent_set_animation, ":player_agent" , "anim_strike_chest_front", 1),
#(agent_set_animation, ":player_agent" , "anim_strike_chest_back", 1),
#(agent_set_animation, ":player_agent" , "anim_strike_abdomen_left", 1),
#(agent_set_animation, ":player_agent" , "anim_strike_abdomen_right", 1),
#(agent_set_animation, ":player_agent" , "anim_strike_abdomen_front", 1),
#(agent_set_animation, ":player_agent" , "anim_strike_abdomen_back", 1),
#(agent_set_animation, ":player_agent" , "anim_strike_legs_left", 0),
#(agent_set_animation, ":player_agent" , "anim_strike_legs_right", 0),
#(agent_set_animation, ":player_agent" , "anim_strike_legs_front", 0),
#(agent_set_animation, ":player_agent" , "anim_strike_legs_back", 0),

#(agent_set_animation, ":player_agent" , "anim_strike2_head_left", 1),
#(agent_set_animation, ":player_agent" , "anim_strike2_head_right", 1),
#(agent_set_animation, ":player_agent" , "anim_strike2_head_front", 1),
#(agent_set_animation, ":player_agent" , "anim_strike2_head_back", 1),
#(agent_set_animation, ":player_agent" , "anim_strike2_chest_left", 1),
#(agent_set_animation, ":player_agent" , "anim_strike2_chest_right", 1),
#(agent_set_animation, ":player_agent" , "anim_strike2_chest_front", 1),
#(agent_set_animation, ":player_agent" , "anim_strike2_chest_back", 1),
#(agent_set_animation, ":player_agent" , "anim_strike2_abdomen_left", 1),
#(agent_set_animation, ":player_agent" , "anim_strike2_abdomen_right", 1),
#(agent_set_animation, ":player_agent" , "anim_strike2_abdomen_front", 1),
#(agent_set_animation, ":player_agent" , "anim_strike2_abdomen_back", 1),
#(agent_set_animation, ":player_agent" , "anim_strike2_legs_left", 0),
#(agent_set_animation, ":player_agent" , "anim_strike2_legs_right", 0),
#(agent_set_animation, ":player_agent" , "anim_strike2_legs_front", 0),
#(agent_set_animation, ":player_agent" , "anim_strike2_legs_back", 0),


#(agent_set_animation, ":player_agent" , "anim_strike3_head_left", 1),
#(agent_set_animation, ":player_agent" , "anim_strike3_head_right", 1),
#(agent_set_animation, ":player_agent" , "anim_strike3_head_front", 1),
#(agent_set_animation, ":player_agent" , "anim_strike3_head_back", 1),
#(agent_set_animation, ":player_agent" , "anim_strike3_chest_left", 1),
#(agent_set_animation, ":player_agent" , "anim_strike3_chest_right", 1),
#(agent_set_animation, ":player_agent" , "anim_strike3_chest_front", 1),
#(agent_set_animation, ":player_agent" , "anim_strike3_abdomen_left", 1),
#(agent_set_animation, ":player_agent" , "anim_strike3_abdomen_right", 1),
#(agent_set_animation, ":player_agent" , "anim_strike3_abdomen_front", 1),
#(agent_set_animation, ":player_agent" , "anim_strike3_abdomen_back", 1),
I want my character to be kicked by a bot . The code for kicking is  done but i cant get the true stagger animation . Anyone knows how  to get stagger animation ???
 
You should try to watch the animations, and select what 's most representative to your need.

Example :
#(agent_set_animation, ":player_agent" , "anim_strike_head_left", 1)

1. Open module_animations.py and search for strike_head_left.
2. You will find this line :

["strike_head_left", 0, amf_priority_striked|amf_play|amf_accurate_body|amf_restart,
  [0.5, "strikes", 55, 71, arf_blend_in_3],

3.  "strikes" is the name of animation.
4. Open openbrf, select menu Module->Find in module.. . Select to search animations, type the keyword : strikes
5. Ok, you find the animation. 
6.  55, 71 are the time frame of beggining and the end of strike_head_left animation. In the game, the frames will be played in 0.5 seconds.
7. Play the animation frame by frame from time frame 55 to 71.
8. If the animation is ok for you, then use it, if it is not, then do it for the next animations.
 
后退
顶部 底部