RimWorld

RimWorld

325 betyg
Drafted Auto-Combat
9
5
2
2
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Mod, 1.6
Filstorlek
Lades upp
Uppdaterades
1.516 MB
10 aug @ 9:40
28 okt @ 3:47
14 ändringsnotiser ( visa )

Abonnera för att ladda ner
Drafted Auto-Combat

I 2 samlingar av RedMattis
Red's Workshop Mods
45 artiklar
Quality of Life & Base Pack
69 artiklar
Beskrivning
[www.patreon.com]

Adds drafted auto-combat feature for any draftable player-controlled pawn.


Features

Colonists will engage enemies reasonably nearby that they can see.

They will somewhat try to use cover when choosing how to approach.

Abilities on auto-cast will automatically be used (including self-buffs) in combat, and the AI will try to avoid friendly fire.


Pawns can be toggle to automatically seek cover. When active pawns will actively seek out cover against their target, including finding new cover if their previous cover becomes sub-optimal.




When "Long-charge" is disabled melee pawns will only engage visible foes within a short distance. This helps avoid them "running off" when threatened by a distant foe


Design Goal

The goal of the mod was to create a sort of "reactive" drafted mode where colonists don't run off to the other side of the map (like search and destroy) or relentlessly chase distant foes... but also don't stand around being shot in the face if enemies are out of range or you forget about them for 10 seconds.

I also wanted to get them to utilize abilities automatically since with large colonies this can become a bit of a hassle.


Instructions

When drafted colonists will have a new "Auto-Combat" button, this enables the auto-combat.

To let them use abilities, either right-click the ability to toggle auto-use, or right click auto-combat to toggle auto-use of all abilities.

Abilities without AI parameters
The mod does let you toggle abilities from other mods not set for AI use, but if they have no AI targeting logic the use may be...unpredictable.

Generally ranged attacks will be fine, but self-cast AoEs and such might just get mindlessly spammed if there is no targeting data.

The mass-toggle won't touch such abilities, so this is an easy way to identify abilities that may lack the required data for intelligent use.

UI & Settings

You can disable various buttons or change what they do in the settings menu.

If you have Big & Small Framework (as above) it will instead be a tab there.



Compatibility

It should work with almost any ability, "verb" or weapon approved for AI-use. This includes Vanilla Expanded's custom ability class.

Search & Destroy
Reportedly works well together.

If combined with S&D I expect this mod will take over once the pawns spot the foes, which should make them try to take position to shoot, use abilities, or go into melee.

Big and Small Framework
This also exists built into Big and Small Framework as an optional setting (Mod Option Menu). If both are used it will simply force-enable the auto-combat in B&S Framework instead and otherwise load no extra code.


For modders

The AI can use almost any "AI Can Use" ability that can target foes or themselves.

It relies on Ludeon's "AICanTargetNow" method on abilities for avoiding friendly-fire, so if you find that abilities are often used in a way that harms friends you need to update that method to check so no friends are in the radius.



Mod Discord
[discord.gg][ko-fi.com]
Populära diskussioner Visa alla (1)
1
6 nov @ 21:45
just 1,6?
riley
140 kommentarer
TAW | Shadow_Beetle 20 nov @ 12:31 
gonna try, looks promising!
Some_one 17 nov @ 12:38 
i want to sugest individual deactivation on autoskills, my pawn keeps spaming word of joy against my enemies
galesdeloscien 10 nov @ 5:55 
its this compatible with auto abilities?????
plsss.
Dan 7 nov @ 7:19 
Running into a bug where auto combat seems to ignore turrets. Other than that this mod is really great :steamthumbsup:
RedMattis  [skapare] 6 nov @ 13:29 
@Fyrex
This mod adds a job that is parented under the "Drafted" state, and aborts if the auto-combat toggle isn't on.

Unless those drone are drafted it shouldn't affect them.
Fyrex 6 nov @ 5:12 
Seem this doesn't work well with project rimfactory drones. Both mods seem to completely break down. Autocombat does nothing and the drones hardly do tasks or start wondering which they should never do.
Miku, Miku Beam! 1 nov @ 16:19 
How does this differ from search and destroy? Is this better or the same?
XXXMAN69 30 okt @ 14:12 
10/10
IroncladLion 29 okt @ 12:17 
Actually works very well. Works with Run and Gun for those wondering. Great mod :mhwgood:
Arthur GC 28 okt @ 12:08 
Most of probably this conflicts with Auto Abilities , right?