Cavalry Charge AI - Deadly Cavalry Charges

Cavalry Charge AI - Deadly Cavalry Charges

AI cavalry charges like shock cavalry: full gallop with couched lances, through the enemy line, re-form and charge again. Charging horses hit, push and knock down by weight and speed. Every feature has its own switch and adjusment options (MCM).

[center][size=6][b]Cavalry Charge AI [/b][/size][/center]

[size=2][b]Game version[/b]
Built and tested on [b]Bannerlord v1.5.5 (Steam beta branch)[/b] . Works on 1.4.x and 1.3.15 too.[/size]

[line]

[size=5][b]What it does[/b][/size]
In the base game, AI cavalry often trots into the enemy, rarely couches their lances and then gets stuck in a slow melee. This mod makes cavalry fight like shock cavalry: riders gallop in with couched lances, ride straight through the enemy, re-form beyond them and charge again. Charging horses also hit slighly harder and push or knock men down depending on their weight and speed.

The goal is [b][color=#cc4125]deadly charges[/color][/b], not longer melee.

[i]The direct buffs to cavalry are slight, and adjustable. The main purpose of the mod is to improve cavalry AI without directly buffing them. (There are many mods that increase charge damage, this mod increase that only by about 17%)[/i]

[size=5][b]Features[/b][/size]

[size=4][b]AI cavalry behaviour[/b][/size]
[list]
[][b]Full gallop:[/b] charging cavalry normally holds back to keep formation. Within 70 m of the enemy they break into a full gallop, fast enough to couch their lances.[/]
[][b]Lance switch:[/b] AI riders switch to their couchable lance once their horse passes 6 m/s. Riders holding a bow or throwing weapons are left alone unless you give hold fire order.[/]
[][b]Cycle charge:[/b] after the first clash, cavalry rides through the enemy, re-forms about 80 m beyond and charges again with couched lances.
[list]
[
]Works for AI cavalry, and for your own cavalry when you give them a Charge order (or right-click an enemy infantry formation). Any other movement order stops it.[/]
[
]If a large group of enemy cavalry attacks nearby, no new cycle starts: your riders fight back instead of turning their backs.[/]
[
]Cavalry with two-handed lances that cannot be couched (e.g. Imperial cataphracts) stays in melee as in the base game; for them that works better, and it's more historically accurate that way.[/]
[/list][/
]
[][b]Spread out targets:[/b] in each charge every rider goes for the enemy in front of him, instead of several riders piling onto the same man.[/]
[][b]Push through crowds:[/b] a rider hemmed in by foot soldiers during a cycle charge spurs his horse on instead of standing still.[/]
[][b]Follow Me:[/b] when you order your cavalry to follow you, they keep up with your gallop, set off as soon as you do, and when you stop they ride up at speed and halt right behind you instead of trailing far behind.[/]
[/list]
[size=4][b]Horse charge[/b] (applies to every horse, yours and the enemy's)[/size]
[list]
[][b]Charge impact:[/b] galloping horses hit harder (default 1.08 speed factor, about 17% more impact).[/]
[][b]Knockdown strength / push-back angle:[/b] charging horses knock infantry down and push them aside more easily than in the vanilla.[/]
[][b]Weight and speed:[/b] the horse, its armour and the rider's armour are weighed. Heavy knights push men aside even with glancing hits and bowl them over even when slowed; fast riders knock down men their weight alone would not. Damage is unchanged.[/]
[][b]Charge fear[/b] [i](experimental, off by default)[/i]: foot soldiers knocked down or pushed back by a charging horse may panic for a moment, run, and return to their ranks within 2-5 seconds. Recruits break far more often than veterans; hits from the side or behind frighten more; shield walls and squares hold better. Lords and your own character are never affected, and morale is not changed.[/]
[/list]
[size=4][b]Other rules[/b][/size]
[list]
[][b]Lance crushes weak blocks:[/b] a rider at speed thrusting a lance into a foot soldier who blocks with a weapon (not a shield) may break through. Veterans usually hold, recruits usually don't.[/]
[][b]Every commander knows every tactic:[/b] every army led by a lord can choose from all field battle tactics, as if its commander had at least 50 Tactics. In the base game a commander with little Tactics skill can only order an all-out charge. Bandits and other parties without a lord still just charge. Yeah it's u[size=2][i]nrelated to cav AI, but the purpose is to prevent stupid lords to perform better againts cav as it happens in vanilla[/i][/size][/]
[/list]

[youtube]UiveVMtSZYQ[/youtube]


[size=5][b]Settings[/b][/size]
[left]Everything is adjustable in [b]Mod Options > Cavalry Charge AI[/b] (English and Turkish). Every feature has its own switch, and [b]Mod enabled[/b] turns everything off at once. Everything except Charge fear is on by default. Changes apply from the next battle.[/left]
[left][/left]
[left][b]AI only preset:[/b] want the smarter cavalry without any combat rule changes and any cav buffs? In the settings screen, pick [b]AI only (base game combat rules)[/b] from the preset list at the top left. Horse charges and lance blocks then work exactly as in the base game; only the AI behaviour changes.[/left]

[line]

[center][color=#ffff00]You can buy me a coffee, or a beer, or anything else if you'd like: [url=https://buymeacoffee.com/uirosrios]https://buymeacoffee.com/uirosrios[/url][/color][/center]

[line]


[size=5][b]Requirements[/b][/size]
[list]
[]Bannerlord [b]v1.5.5[/b] beta - works on 1.4.x and 1.3.15 too[/]
[][url=https://www.nexusmods.com/mountandblade2bannerlord/mods/2006]Harmony[/url][/]
[][url=https://www.nexusmods.com/mountandblade2bannerlord/mods/2018]ButterLib[/url][/]
[][url=https://www.nexusmods.com/mountandblade2bannerlord/mods/2102]UIExtenderEx[/url][/]
[][url=https://www.nexusmods.com/mountandblade2bannerlord/mods/612]Mod Configuration Menu v5[/url][/]
[/list]
[size=5][b]Installation[/b][/size]
[list=1]
[]Extract the [b]CavalryChargeAI[/b] folder into [i]Mount & Blade II Bannerlord\Modules\[/i].[/]
[]In the launcher, enable it and load it [b]after[/b] Harmony, ButterLib, UIExtenderEx, Mod Configuration Menu and the official modules.[/]
[/list]The mod stores nothing in save files and can be added to or removed from an ongoing campaign.

[size=5][b]Compatibility[/b][/size]
[list]
[]Not designed to be used together with [b]RBM[/b] (Realistic Battle Mod): both change cavalry AI and horse charges. [b]Untested, you can try and tell me the behaviour. Combat module is probably fine.[/b][/]
[]Mods that change horse charge damage stack with [b]Charge impact[/b]. Set it to 1.00 if you use one, or don't if you want really OP cavs...[/]
[/list]
[size=5][b]Known limitations[/b][/size]
[list]
[]On the first approach, AI riders raise their shields against incoming missiles and then cannot couch their lances. This is decided inside the game engine and cannot be changed by a mod. Later charges usually couch.[/]
[]The cycle charge targets infantry. Against enemy cavalry or horse archers, cavalry fights as in the base game.[/]
[/list]
[line]

[size=5][b]Reporting bugs[/b][/size]
Please report problems in the [b]Bugs[/b] tab or in the comments, with your game version and mod list.

For battle behaviour problems, turn on [b]Test logs[/b] in the settings, play the battle, and attach the files from [i]Documents\Mount and Blade II Bannerlord\CavalryChargeAI_Logs[/i] ([i]CavalryChargeAI_speed.csv[/i], [i]CavalryChargeAI_formation.csv[/i], [i]CavalryChargeAI_player.csv[/i], [i]CavalryChargeAI_info.txt[/i]). The previous battle's files are kept with a time stamp in their names. Turn Test logs off again for normal play.

For donations: [url=https://buymeacoffee.com/uirosrios]https://buymeacoffee.com/uirosrios[/url]