[XND] Targeting Modes (Forked)
Update of XeoNovaDans mod Based on the update by Odyssey Scorpio And Miles mod 1.
Update of XeoNovaDans mod https://steamcommunity.com/sharedfiles/filedetails/?id=1508165821
Based on the update by Odyssey Scorpio https://steamcommunity.com/sharedfiles/filedetails/?id=2026720565
And Miles mod https://steamcommunity.com/sharedfiles/filedetails/?id=3565359455
1. The logic has been improved. In the original mod, aiming at the torso would reduce the weight of internal organs within the body. Now, the mod treats the torso and its internal organs as a single entity.
2. The issue where the aiming effect did not match the description has also been fixed. The effect of the original mod was only half of what it claimed. Now, the aiming effect fully conforms to the description.
3. The zoom adjustment function has been added. If you feel that the aiming effect is too weak or too strong, you can modify it in the settings.
4. Some minor issues have been fixed.
5. The shooting hit rate adjustment has been increased. Do you think the shooting is inaccurate? Now, you can increase the shooting hit rate by the zoom rate (unrelated to the aiming function, but an additional feature I wanted to include).
The following are the effects when targeting humans (the numbers represent the estimated expected probabilities):
Head (3 times additional weight, 5 times additional weight for humans) 7.5% -> 37%
Torso (with 1.5 times additional weight): 40% -> 72%
Arms (with 2x additional weight): 24% -> 56%
Legs and feet (2 times additional weight): 28% -> 63%
Downed enemy: ~90% (at long range) or ~99% (at close range)
Original description:
Overview
Targeting Modes sort of brings V.A.T.S from the Fallout universe to RimWorld, so you can now have your colonists and obedience-trained animals lay waste to those who dare oppose you by having them prioritize which body part groups they target, whether it be in ranged or melee combat. If you're using What The Hack by Roolo, you can even have your mechanoids join in on the head-slicing/blasting fun when they're being controlled!
There are five possible targeting modes:
- General - This is the same as vanilla, and the default targeting mode for all pawns. There are no accuracy penalties.
- Head - Pawns will prioritize getting hits off on the target's head, with head hits being ~4x more likely (~8x against humans since their base chance is so low). There's a significant accuracy penalty of 30% though.
- Body - Pawns will prioritize outright mangling their target's body, with body hits being ~2x more likely. There's a minor accuracy penalty of 10%.
- Arms - Pawns will prioritize hindering their target's manipulation, with arm hits and so on being ~3x more likely. There's a moderate accuracy penalty of 20%.
- Legs - Pawns will prioritize inhibiting their target's movement, with leg hits and so on being ~3x more likely. There's a moderate accuracy penalty of 20%.
With the differing characteristics of each mode, an extra layer of strategy has been added to the game. To change a pawn's targeting mode, click the 'Targeting' button at the bottom of the screen, and then select which targeting mode you want your pawn to use:
This is also doable with multiple pawns via the same process. After a certain amount of time out of combat, targeting modes will automatically reset to the general mode to cover you if you forgot to reset everybody's modes.
Beware though, because raiders can also use targeting modes! With smart raids, any raider with a skill level of 8 or above with the weapon they have equipped could also target certain body parts. Some mechanoid raiders have also been programmed to favour a body part group over others, and some animals in manhunter packs may have an appetite for different body parts.
Don't like some of the above? Fret not for you can configure this mod through mod settings! Changeable aspects of this mod include whether certain targeting modes even affect accuracy, how often the game will try to reset targeting modes (or if it even tries to), whether hostiles can use targeting modes and how likely they are to use targeting modes.
I'd also recommend using this with something like Custom Death Randomness to be able to eliminate the random death-on-downed chance when even incapacitating your foes.
Powered by the Harmony Patch Library.
Compatibility
Mods:
Integrates with The Birds and The Bees by Fluffy. Works with What The Hack by Roolo. Should also work with all alien race and animal mods.
Incompatible with Combat Extended and I no longer plan on attempting a patch since it isn't really feasible.
Saves:
Can safely be added to ongoing saves. There may be some errors when removing this from a save, though they should be harmless.
Links
Showcase by BaRKy: https://www.youtube.com/watch?v=qpGxbPat__E - thanks!
GitHub releases: https://github.com/XeoNovaDan/TargetingModes/releases
Source code: https://github.com/XeoNovaDan/TargetingModes
Credits
Shotgunfrenzy - for his fantastic work with the preview image and the UI icons for each targeting mode!
Brrainz - for his fantastic work with the Harmony Patch Library. This wouldn't have been possible without it!
Why_is_that - for their Settings Helper which allowed for labeled sliders.
AUTOMATIC - for helping get the raider target mode functionality working
Fluffy - for letting me use part of TBATB's logo
Marnador - for their RimWorld-style font
Sentient_Worm - for their countless bug reports
License
As is standard with my mods: you may include this mod in a mod pack, and you may derive from this, but please inform me if you're doing so through Ludeon Forums (preferably) or the Steam Comments Section, and give credit where credit's due.