cRPG

cRPG => Suggestions Corner => Topic started by: Afina on March 04, 2018, 04:43:58 pm

Title: Add сrouching to game
Post by: Afina on March 04, 2018, 04:43:58 pm
Add please the squat function in the game. This is a great help to the players. Squatting will help very much the archers, who can find the best shelters for shooting. In many modes it is. Example Full Invasion 2 AMBER


visitors can't see pics , please register or login

visitors can't see pics , please register or login
Title: Re: Add сrouching to game
Post by: Casul on March 04, 2018, 05:06:45 pm
knee inside shield / 10
Title: Re: Add сrouching to game
Post by: Dalhi on March 04, 2018, 05:18:25 pm
visitors can't see pics , please register or login
Title: Re: Add сrouching to game
Post by: Rico on March 04, 2018, 06:35:16 pm
why am i not surprised that this suggestion comes from russia?
Title: Re: Add сrouching to game
Post by: Afina on March 04, 2018, 07:21:13 pm
why am i not surprised that this suggestion comes from russia?
because you can not suggest anything
Title: Re: Add сrouching to game
Post by: War_Ferret on March 04, 2018, 11:08:02 pm
Correct me if I'm wrong, but isn't crouching a hardcoded feature only available in WFaS and not in Warband? Would be cool though, especially if you could also do a pikewall like in WFaS.
Title: Re: Add сrouching to game
Post by: Dalhi on March 05, 2018, 06:16:10 am
They even have it in Merc module, it's a native feature afaik that come with one of the patches, but disabled by default.

Edit. Warband support crouching since 1.150 according to changelog.
Title: Re: Add сrouching to game
Post by: DaveUKR on March 05, 2018, 12:25:01 pm
Would use it for teabagging 24/7
Title: Re: Add сrouching to game
Post by: Afina on March 05, 2018, 05:29:59 pm
Correct me if I'm wrong, but isn't crouching a hardcoded feature only available in WFaS and not in Warband? Would be cool though, especially if you could also do a pikewall like in WFaS.

I played very long in FI2. and I know a lot of players there, they regularly used this option. and we always won. archers will be able to use not large shelters such as low fences, infantry to use wall shields in 2 rows
Title: Re: Add сrouching to game
Post by: War_Ferret on March 05, 2018, 05:47:29 pm
I played very long in FI2. and I know a lot of players there, they regularly used this option. and we always won. archers will be able to use not large shelters such as low fences, infantry to use wall shields in 2 rows
Sure, if it's possible, I don't see a reason why it shouldn't be enabled. It's not like it will have a big impact on game/class balance or anything.
Title: Re: Add сrouching to game
Post by: njames89 on March 05, 2018, 05:58:18 pm
we also need to add the surrendering arms up animation from napoleonic wars
Title: Re: Add сrouching to game
Post by: Afina on March 05, 2018, 06:16:14 pm
Sure, if it's possible, I don't see a reason why it shouldn't be enabled. It's not like it will have a big impact on game/class balance or anything.

this is not how the game does not affect the balance
Title: Re: Add сrouching to game
Post by: Afina on March 05, 2018, 06:25:31 pm
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),
   ])
Title: Re: Add сrouching to game
Post by: Afina on March 05, 2018, 07:03:17 pm
Here is a detailed instruction on how to enter a squat into the game:
This is from the animations:


["crouch_down", acf_enforce_lowerbody, amf_priority_reload|amf_play|amf_client_prediction, [1.0, "crouch_down", 130, 130, arf_blend_in_1],
],
["stand_from_crouch", acf_enforce_lowerbody, amf_priority_jump|amf_play|amf_client_prediction, [1.0, "crouch_down", 130, 130, arf_blend_in_1],
],


As for the numbers, do not worry, this was done in order to be able to crouch just by holding down the button, and not pressing to sit / climb, in my opinion it is more convenient.
From the flash templates:


#Crouch Down
new_anim_start = (0, 0, 0, [(key_is_down, клавиша на выбор)],[
(get_player_agent_no,":agent_no"),
(agent_get_horse,":horse",":agent_no"),
(lt,":horse",0),   
(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),
   ])
Title: Re: Add сrouching to game
Post by: Casul on March 05, 2018, 08:49:05 pm
wat
Title: Re: Add сrouching to game
Post by: Asheram on March 05, 2018, 09:02:12 pm
Here is a detailed instruction on how to enter a squat into the game:

(click to show/hide)
Ok maybe the ruskie will like this one.
visitors can't see pics , please register or login