0 of 0

File information

Last updated

Original upload

Created by

aedenthorn

Uploaded by

aedenthorn

Virus scan

Safe to use

Tags for this mod

About this mod

Adds simple weapon logic for companions: switching to melee when close to target or when there are no arrows, and switching to a bow when far away.

Permissions and credits
Donations
This mod adds some useful companion AI to the game, allowing companions to switch between ranged and melee as appropriate.

There are three separate logic methods:

  • If using a bow with no arrows in inventory, switch to an available melee weapon
  • If close to target and using a bow, switch to an available melee weapon
  • If far from target and using a melee weapon, switch to an available bow

There is other AI going on, so switches might not always be immediate.

I tried looking for how the game deals with how different melee weapon types interact with armor, but so far I'm not sure the game even differentiates weapon types when an enemy is armored. So, no melee switching logic yet.



Technical

This mod requires BepInEx to be installed for SWPT. Detailed instructions on installing BepInEx are here.

To install this mod, place the contents of its zip file in the BepInEx/plugins folder (create it if the folder doesn't exist).

Code is at https://github.com/aedenthorn/SWPTMods.

If you want to complain or ask for help or help me test my mods, you can visit my Discord server.