Enemies Use Apparel Too - EUAT
Enemies Use Apparel Too (EUAT) Ever want to have enemy melee pawns fly at you?
Enemies Use Apparel Too (EUAT)
Ever want to have enemy melee pawns fly at you? No???? well this mod lets them do that.
Ever want Cataphracts to be able to fill your base with fire? No???? well now they can!
This mod converts listed Apparel Verbs into abilities that enemy AI can use.
With the harmony Patch, all violent apparel verbs are considered for use.
There are settings to toggle the ability/harmony functionality
Items affected:
Grenadier Armor
Phoenix Armor
Locust Armor
Jump Packs
Hunter Drone Packs
Turret Packs
Psychic/shard Shock Lance*
Psychic/shard Insanity Lance*
Deadlife Packs**
* haven't been added to enemy item generation
** The deadlife pack will mark all enemies and corpses with the faction of the caster. meaning Shamblers will fight for the caster. I suggest adding it to enemy cultists or canibal tribals with a faction editing mod for flavorful use
This mod adds the defense pop tag to the listed packs, meaning any enemies that could spawn with those(smokepop belt, loweshield pack, etc...) can spawn with the turret, jump, and hunter pack now.
The mod also adds the listed armors to spawn pools to allow them to spawn on enemies I deemed appropriate.
Note on jump logic:
Jump logic currently works in three ways:
1: if a non player humanlike is healthy and melee and more than 8 tiles away from it's target it will jump to its target
2: if a non player humanlike is unhealthy and threatened it will try to escape
3: if a non player humanlike is ranged it will look for cover that's more than 8 tiles away and jump to it
How this mod works:
This mod creates the core framework for the Enemy AI to use Vanilla Apparel. This is done by:
1. Converting relevant Apparel verbs into abilities (similar to the grenade launch of odyssey's unique weapons)
2. Creating C# that allows those abilities to consume charges from the apparel they're on
3. Creating C# that reads the the jump range from the apparel so item quality can still affect jump range
4. Adds think trees for Pawns to use this mod's jump ability
This mod will cause other mod's apparel verbs to used with the harmony patch on
PS: This mod would also allow for any apparel to have abilities(aka enemy usable) that consume ammo.
Check out:
https://github.com/Argotis-dev/Enemies-Use-Apparel-Too-EUAT/tree/main
if you want to take a look at all source code