Mount & Blade II: Bannerlord

File information

Last updated

Original upload

Created by

xtul

Uploaded by

noafk9

Virus scan

Safe to use

About this mod

A mod expanding upon Leadership skill in field combat, featuring cheering with a morale effect, AI support, Responsive Soldiers clone and commander interaction. Very customizable and compatible.

Permissions and credits
Translations
Previously known as Cheering Reloaded. Works on 1.4.2, will update for 1.4.3 if needed soon.

Cheer with V key
. Configuration file is located at [Bannerlord directory]\Modules\LeadershipReloaded\bin\Win64_Shipping_Client\config.xml.

A mod highly inspired by Cheer Mod. I noticed it had few problems on newest patches and decided to make a fix. I was curious how it was made and realized it required a complete rewrite. As the time went the mod expanded from cheering rewrite to Leadership expansion in field battles.

I work on the mod continuously in order to integrate it with the base game as much as possible.

Features

1.3.0:
- Whenever you give out an order a specified horn sound will be played. By default, there are three sounds (Charge, PullBack and Advance). You can use your own files, for any culture, for any order type. Also includes victory cheer horn, can be disabled. Certain technical aspects at the bottom of description.

1.2.7:
- Your troops can now cheer for a while longer when ordered to charge.
- Added player clan renown increase and relationship hit if you personally kill enemy commander.

1.2.4:
- You can change/translate the lines that are displayed in a message box.

1.2.0:
- Your soldiers will now react to your orders. This is first, basic implementation and will be expanded in the future.
- Leader deaths will now have morale impact on their nearby soldiers.

1.1.0:
- AI commanders can now cheer. Can be disabled in config file. By default, they obey almost the same rules as the player, and will usually cheer when one of the nearby soldiers is about to rout.

1.0.4:
- The amount of times you can cheer is determined by your Leadership skill. By default, you receive a baseline of 2 cheers and an extra every 50 Leadership levels.

1.0.2:
- Voice lines change depending on amount of morale received, that includes enemies.
- Cheering uses more flexible animations that don't force the character to stay in place.

1.0.1:
- You can set maximum possible morale change to prevent instant routing at high Leadership levels. The morale decrease effect on
enemies is halved.

1.0:
- Increase your Leadership skill by cheering.
- Increase your cheer effectiveness with Leadership skill - the higher level you have, the range gets higher and more morale is granted.
- Optionally if you're a terrible leader and you're fighting at overwhelming odds, your cheering may have a reverse effect - it will decrease your allies morale.
- When you reach 75 Leadership level (configurable) your cheering will affect enemies. For example, if you increase your allies' morale by 3, your enemies will receive -3 penalty. Note that if above point is enabled, it will result in your allies receiving -3 and enemies getting +3 morale. Though at certain Leadership skill it shouldn't ever happen.
- The amount of times you can cheer is limited; after all, nobody wants a leader that sounds fake. The amount is configurable.
- You can cheer after victory unlimited times, though without morale effect.

Planned features

- Expand Responsive Orders functionality
- Implement more aggressive AI - if possible, depending on their personality, some leaders will use cheering to defend their soldiers and others will prefer to save their cheering to maximize losses of their enemies

Also check out my other mods - they play together very well, and I use them myself on each playthrough.

Tested on 1.4.2, though I found that mission code barely changes, this mod shouldn't have any problems on older versions.

Source code available on my GitHub.

Technical details about Battle Horns
Unfortunately the method I've used is rather artificial. Bannerlord seems to have no way to play a sound file outside it's compiled .bank files, and while you can use predefined horns or replace them in these .bank files, your choices will be rather limited. The ideal solution was to create my own .bank file but from what I gathered, it is simply impossible unless TaleWorlds posts a FMOD template. Which I expect, though not soon.

Instead, I decided to make use of the fact that Bannerlord also uses Windows Forms and see how well would SoundPlayer class work. It would've been fine if it allowed me to set sound file volume, this one thing forced me to embed NAudio, which is roughly 10 times the size of my mod. I've looked at other similar mods and noticed they essentially did the same thing.