All that remains in my code is this:
(eq, ":action_type", player_action_key_down_held),
(get_player_agent_no, ":player_agent"),
(try_begin),
(agent_set_speed_modifier, ":player_agent", 40),
(agent_set_walk_forward_animation, ":player_agent", "anim_walk_forward_crouch"),
# (assign, "$controller_keys", 0), common_controller_keys_end
(presentation_set_duration, 0),
# (clear_omitted_keys),
(try_end),
It all works fine when I am not holding a weapon, but when I am holding a weapon (like a musket) it simply turns it into normal walk mode. As soon as I sheath the weapon the crouch walk begins to work again. I'm not sure if there is some other code I need to edit...maybe the animation itself?
NOTE: I am using this code in the Napoleonic Wars DLC.
[edit] also, since this is set in walk mode, is there some way to make walking faster? I tried adjusting:
(agent_set_speed_modifier, ":player_agent", 40),
but anything higher than 40 simply makes it turn into running animation, and the crouch walk animation no longer works.
Thanks!