Author Topic: Add сrouching to game  (Read 561 times)

0 Members and 1 Guest are viewing this topic.

Offline Afina

  • Earl
  • ******
  • Renown: 314
  • Infamy: 135
  • cRPG Player
  • «This is where we fight, this is where they die!!»
    • View Profile
  • Faction: Other
  • Game nicks: Afina
  • IRC nick: Afina
Add сrouching to game
« on: March 04, 2018, 04:43:58 PM »
+4
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
Madness…? This is Sparta!

visitors can't see pics , please register or login

Offline Cassi

  • Game Admin
  • *****
  • Renown: 981
  • Infamy: 125
  • cRPG Player Sir White Bishop
  • I like animals
    • View Profile
  • Faction: plate goons club, Krems
  • Game nicks: Cassi, Antarctica
  • IRC nick: Cassi
Re: Add сrouching to game
« Reply #1 on: March 04, 2018, 05:06:45 PM »
+3
knee inside shield / 10
I am probably the only lancer that always charges up front

Offline Dalhi

  • Earl
  • ******
  • Renown: 412
  • Infamy: 39
  • cRPG Player Sir Black Pawn A Gentleman and a Scholar
    • View Profile
  • Game nicks: Dalhi
Re: Add сrouching to game
« Reply #2 on: March 04, 2018, 05:18:25 PM »
+7
visitors can't see pics , please register or login

Offline Rico

  • Item Manager
  • *
  • Renown: 1020
  • Infamy: 158
  • cRPG Player
    • View Profile
  • Game nicks: Rico, Mila
Re: Add сrouching to game
« Reply #3 on: March 04, 2018, 06:35:16 PM »
+1
why am i not surprised that this suggestion comes from russia?
Streaming cRPG, Supreme Commander and Age of Empires II on YouTube: https://www.youtube.com/c/HeavenTV

Offline Afina

  • Earl
  • ******
  • Renown: 314
  • Infamy: 135
  • cRPG Player
  • «This is where we fight, this is where they die!!»
    • View Profile
  • Faction: Other
  • Game nicks: Afina
  • IRC nick: Afina
Re: Add сrouching to game
« Reply #4 on: March 04, 2018, 07:21:13 PM »
+5
why am i not surprised that this suggestion comes from russia?
because you can not suggest anything
Madness…? This is Sparta!

visitors can't see pics , please register or login

Offline War_Ferret

  • Count
  • *****
  • Renown: 182
  • Infamy: 27
  • cRPG Player A Gentleman and a Scholar
    • View Profile
Re: Add сrouching to game
« Reply #5 on: March 04, 2018, 11:08:02 PM »
+1
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.

Offline Dalhi

  • Earl
  • ******
  • Renown: 412
  • Infamy: 39
  • cRPG Player Sir Black Pawn A Gentleman and a Scholar
    • View Profile
  • Game nicks: Dalhi
Re: Add сrouching to game
« Reply #6 on: March 05, 2018, 06:16:10 AM »
+2
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.
« Last Edit: March 05, 2018, 07:38:26 AM by Dalhi »

Online DaveUKR

  • Strategus Councillor
  • **
  • Renown: 1331
  • Infamy: 220
  • cRPG Player
  • Small rain lays great dust
    • View Profile
Re: Add сrouching to game
« Reply #7 on: March 05, 2018, 12:25:01 PM »
+2
Would use it for teabagging 24/7

Offline Afina

  • Earl
  • ******
  • Renown: 314
  • Infamy: 135
  • cRPG Player
  • «This is where we fight, this is where they die!!»
    • View Profile
  • Faction: Other
  • Game nicks: Afina
  • IRC nick: Afina
Re: Add сrouching to game
« Reply #8 on: March 05, 2018, 05:29:59 PM »
0
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
« Last Edit: March 05, 2018, 05:33:14 PM by Afina »
Madness…? This is Sparta!

visitors can't see pics , please register or login

Offline War_Ferret

  • Count
  • *****
  • Renown: 182
  • Infamy: 27
  • cRPG Player A Gentleman and a Scholar
    • View Profile
Re: Add сrouching to game
« Reply #9 on: March 05, 2018, 05:47:29 PM »
+1
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.

Offline njames89

  • the Leaf
  • Supreme Overlord
  • *******
  • Renown: 1449
  • Infamy: 449
  • cRPG Player
  • Deus vult, Dieu le veut, God wills it!
    • View Profile
  • Faction: Kingdom of Acre, The Holy Chadzian Empire
  • Game nicks: King James IV, John IV, Temujin of the Wolves, William III
Re: Add сrouching to game
« Reply #10 on: March 05, 2018, 05:58:18 PM »
+3
we also need to add the surrendering arms up animation from napoleonic wars

Offline Afina

  • Earl
  • ******
  • Renown: 314
  • Infamy: 135
  • cRPG Player
  • «This is where we fight, this is where they die!!»
    • View Profile
  • Faction: Other
  • Game nicks: Afina
  • IRC nick: Afina
Re: Add сrouching to game
« Reply #11 on: March 05, 2018, 06:16:14 PM »
0
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
Madness…? This is Sparta!

visitors can't see pics , please register or login

Offline Afina

  • Earl
  • ******
  • Renown: 314
  • Infamy: 135
  • cRPG Player
  • «This is where we fight, this is where they die!!»
    • View Profile
  • Faction: Other
  • Game nicks: Afina
  • IRC nick: Afina
Re: Add сrouching to game
« Reply #12 on: March 05, 2018, 06:25:31 PM »
+1
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),
   ])
Madness…? This is Sparta!

visitors can't see pics , please register or login

Offline Afina

  • Earl
  • ******
  • Renown: 314
  • Infamy: 135
  • cRPG Player
  • «This is where we fight, this is where they die!!»
    • View Profile
  • Faction: Other
  • Game nicks: Afina
  • IRC nick: Afina
Re: Add сrouching to game
« Reply #13 on: March 05, 2018, 07:03:17 PM »
0
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),
   ])
Madness…? This is Sparta!

visitors can't see pics , please register or login

Offline Cassi

  • Game Admin
  • *****
  • Renown: 981
  • Infamy: 125
  • cRPG Player Sir White Bishop
  • I like animals
    • View Profile
  • Faction: plate goons club, Krems
  • Game nicks: Cassi, Antarctica
  • IRC nick: Cassi
Re: Add сrouching to game
« Reply #14 on: March 05, 2018, 08:49:05 PM »
+2
wat
I am probably the only lancer that always charges up front