RimWorld
Ocen: 2,356
PawnTargetFix
5
2
2
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Mod, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6
Rozmiar pliku
Zamieszczono
Zaktualizowano
297.405 KB
5 marca 2020 o 18:04
16 sierpnia o 7:21
Listy zmian: 10 ( zobacz )

Zasubskrybuj, aby pobrać
PawnTargetFix

Opis


Proximity vs. Accuracy Targeting

Left: Proximity-first (vanilla style) — pawns shoot the nearest enemy, even if they’re in heavy cover.
Right: Accuracy-first (new option) — pawns prefer enemies they’re more likely to hit, even if they’re further away.

Switch instantly in Mod Settings to match your playstyle.


**Pawn Target Fix** improves how pawns automatically pick their shooting targets.
Instead of only preferring the *closest* target, you can configure them to prefer the *most accurate* shot — taking into account distance, cover, weapon, and shooter skill.

Performance improved with smarter caching.

Features
  • Toggle between accuracy-first or proximity-first targeting
  • Configurable weighting for accuracy vs. distance
  • Optional near-range nudge to focus on close threats
  • Settings for downed enemies: none, deprioritize, or ignore
  • Stickiness: keep current target if “close enough” to best, reducing twitchy swaps
  • Minimum retarget interval via recent-target bonus
  • Built-in friendly-fire awareness
  • Fully translatable (English, 简体中文, 日本語, Deutsch, Français, Русский)

Compatibility
- Only patches AttackTargetFinder.GetShootingTargetScore.
- Compatible with most combat mods.
- Manual targeting is always respected.
- Should work in existing saves.

Settings
All options are configurable in the Mod Settings menu. Tune accuracy weight, penalties, bonuses, and stickiness to match your playstyle.

Notes
• Ignore downed enemies for smoother performance in very large battles.
• Combine with RunAndGun or similar mods for more natural auto-fire behavior.
Komentarzy: 105
lucky_one 🍀 16 sierpnia o 16:07 
So far I didnt notice any performance hit (I would even say it feels better), played a few hours and faced lots of raids (100-200+ pawns-mechs), so looks like the default settings work just fine.

Thanks for your time boss
Proxyer 16 sierpnia o 8:16 
@Jellypowered
Thank you for quick fix work!
lucky_one 🍀 16 sierpnia o 8:06 
I will come back with some feedback if I have something worth commenting!
Jellypowered  [autor] 16 sierpnia o 7:45 
We will give this update some time to cook, but I would be very interested in getting some feedback regarding the performance in larger raids.
Did it get better?

Also If you guys find the "sweet spot" for the customization settings, I will gladly set them as defaults. I just threw some random numbers as starting points, as the bulk of the functions are just math, I know there will be some room for improvement.
lucky_one 🍀 16 sierpnia o 7:38 
Amazing update, thanks chief
Jellypowered  [autor] 16 sierpnia o 7:19 
Fixed:
- Forgot to remove the gif's in the About folder.
- Moved the Japanese translation to it's proper home after drinking some coffee.


@Ishchyaboi The settings are Mod Wide :)
无声飞雪 16 sierpnia o 6:30 
About文件夹下,2张gif图片,11.3M
Ishchyaboi 16 sierpnia o 5:57 
Is the *-first targetting a mod-wide setting or a colonist toggle?
Proxyer 16 sierpnia o 5:24 
Thank you for update!
I have one issue to report. The Japanese translation PawnTargetFix.xml file does not exist in the Keyed folder, but appears to exist directly under the Japanese folder. Please check it. Thank you.
Jellypowered  [autor] 16 sierpnia o 0:46 
Hey everyone! 🎯

Big update just dropped for Pawn Target Fix:

• You can now toggle between accuracy-first or proximity-first targeting.
• New settings for handling downed enemies, target stickiness, and retarget timing.
• Fully translatable (English, Chinese, Japanese, German, French, Russian).
• Performance improved with smarter caching.

Thanks for all the feedback in the comments, this update is based directly on your requests.
As always, let me know how it plays and if you spot anything odd!