It's a long time to dig into this, I'm already up to my ears at work. Here's a script for squat when you click on the letter "C", but only to sit down. I mean, he will not go with him.
In the file module_animations.py, replace the following lines:
["unused_human_anim_14", 0, 0, [1.0, "anim_human", 0, 1, 0]],
on
["crouch_down", acf_enforce_lowerbody, amf_play|amf_client_prediction, [1.0, "crouch_down", 0, 160, arf_blend_in_1],],
],
In the file module_mission_templates.py before the lines:
tournament_triggers = [
put
new_anim_start = (0, 0, 0, [(key_is_down, key_c)],
[
(get_player_agent_no,":agent_no"),
(agent_set_animation, ":agent_no", "anim_crouch_down"),
])
And in order to get up after squatting, the code should look like this:
new_anim_start = (0, 0, 0, [(key_clicked, key_c)],
[
(get_player_agent_no,":agent_no"),
(agent_get_animation, ":cur_anim", ":agent_no", 0),
(try_begin),
(eq, ":cur_anim", "anim_crouch_down"),
(agent_set_animation, ":agent_no", "anim_stand_from_crouch"),
(else_try),
(agent_set_animation, ":agent_no", "anim_crouch_down"),
(try_end),
])