About this mod
A F4SE plugin that enhances companions' combat AI
- Requirements
- Permissions and credits
-
Translations
- Mandarin
- Donations
Companion Combat Distance
This is my attempt to improve the combat responsiveness of companions.
The major problem with Fallout 4's companions was that they were affected by NPC detection settings, which are severely limited to prevent bugs or some mess that might happen around the Boston area, due to packed placement of NPCs.
So, I simply intercepted the engine's detection code and made a separate settings and conditions for current companions.
They will now have a separate detection range of 5000 and they will engage in the fights as soon as the player starts one.
Also, your companions will perform a preemptive strike when your stealth meter goes above the threshold with aggressive mode switched on.
The default threshold is 50% while standing and 75% while sneaking.
You can switch the aggressive mode on/off by pressing a hotkey.
You can configure the hotkey and thresholds through the CCD.ini file located in Data\F4SE\Plugins.
Settings will be loaded upon game start and save/loads.
Binding Keys
Keyboard : See https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
Mouse : LButton = 0x100, RButton = 0x101, M3 = 0x102, M4 = 0x103, M5 = 0x104
Controller : Check the codes from CustomControlMap.txt in your Fallout 4 installation folder and add 0x10000 to them.
Ex) Right Trigger is 0x200 by default, so type in 0x10200 in the ini
For example, you can see that the default settings for ModeSwitchKey = 0xBA
0xBA is VK_OEM_1 according to the document, which is ;: in the US standard keyboard.