边缘世界 RimWorld

边缘世界 RimWorld

289 个评价
Drafted Auto-Combat
8
5
2
2
   
奖励
收藏
已收藏
取消收藏
Mod, 1.6
文件大小
发表于
更新日期
1.513 MB
8 月 10 日 上午 9:40
10 月 12 日 上午 2:56
13 项改动说明 ( 查看 )

订阅以下载
Drafted Auto-Combat

在 RedMattis 的 2 个合集中
Red's Workshop Mods
45 件物品
Quality of Life & Base Pack
69 件物品
描述
[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]
热门讨论 查看全部(1)
0
9 月 28 日 下午 7:13
just 1,6?
riley
129 条留言
i love fentanyl 10 月 23 日 下午 4:49 
Kinda bugged with DMS weapons (if auto cover is active while holding weapon from DMS pawns just use melee)
Mechanomical 10 月 17 日 下午 9:09 
A bit of a weird request but could you add a run away style for those with run and gun, I like to have one good shooting pawn run around and act like a coward to catch attention while everyone else does their thing
Albino Monkey 10 月 16 日 上午 8:40 
@RedMattis I would definitely do a add-on mod instead of adding it into this one. You could call it "Auto-Combat: Formations" which just add more options to this mod, or if you show me the ropes I could do it myself as I've always been interested in rimworld modding.
Squishyjellyfish 10 月 12 日 下午 11:00 
does this work with run and gun?
Alexander Zagirov 10 月 12 日 下午 5:00 
AI auto-combat ignore turrets for some reason.
RedMattis  [作者] 10 月 12 日 上午 2:51 
Update
Now works with the old VEF Abilities such as those from Dragon's Descent, probably psycasts, etc. as well.

It hooks into their code which includes things like random-chance-to-not-use, etc., so if a pawn doesn't use an ability it might be due to that kind of setting.

I've not checked how friendly-fire prone they are, but probably exactly the same how the VEF-style autocast usually is.

@Albino Monkey
It would be interesting, but I'm a bit worried that might over-complicate things. While the mod lets you turn off buttons I still don't want to go too crazy on the complexity, and options hidden in the mod menu 98% of users probably never learn about.
Zaphiel 10 月 11 日 上午 6:02 
This mod doesn't seem to be working well with Simple sidearms mod. The moment I enable the Auto-combat and AI control, all ranged pawns switches to their available melee weapon and starts chasing the enemy instead of using their ranged weapon.
Albino Monkey 10 月 10 日 上午 10:18 
An idea I have now that I see that you've added full AI drafting, maybe dive into squads and proper formations? I am running a full synthetic army playthrough right now and being able to have ai squads that stay together and fight a little more smart (more than what we have now) would be amazing. Also thank you for the work you have put in so far, the mod is awesome.
Minitialize 10 月 9 日 下午 9:22 
thank you for this. Everytime my colonists are downed, I feel the need to savescum hard because as vanilla AI is right now, drafted colonists are only as smart as the players handling them so if they die, 7 times out of 10, its def. player fault. At least that's how I view it, so thank you again.
Shampooh 10 月 9 日 下午 2:27 
Oh good call, now that I check Steam still hadn't downloaded the update. Check the time on your AutoCombat.dll on disk and if it's before the update time here (2:16 pm EDT), you're outdated. Unsub and resub, force a redownload through RimPy, restart Steam, whatever you gotta do. All good now for me.