0 of 0

File information

Last updated

Original upload

Created by

Takeshi

Uploaded by

CountTakeshi

Virus scan

Safe to use

Tags for this mod

About this mod

Forbids Blind Fire for Every Enemy in Single Missions / Operations

Permissions and credits
Changelogs
Now also available on Steam Workshop:
https://steamcommunity.com/sharedfiles/filedetails/?id=3473020403

BETA VERSION: Don't try this with Ironman mode!
Please let me know if you find something wrong.

I have read some posts/reviews that blind fire screws single plans.
This mod overwrites maps to forbid blind fire for enemies written there.
It seems to work with Single Missions / Operations, and would be able to combine with other enemy mods.

If you want to play RMG/ToD, then go to the page below.
These also overwrite enemy entities, so they must conflict with other enemy mods :(

RMG/ToD with vanilla enemies:
Here > "Files" tab > Optional File
All of the official missions with my modded enemies:
https://www.nexusmods.com/doorkickers2/mods/305?tab=files

Technical info
In MapName.xml, some human units have chanceToBlindFire="X", such as:
<Traits AAA BBB chanceToBlindFire="X" CCC />

So I have replaced them with "nothing", using a regular expression:
 chanceToBlindFire="[.0-9]*"

Then I have added chanceToBlindFire="0" to the traits of human units,
by replacing 
<Traits
with
<Traits chanceToBlindFire="0"

So the result is like this:
<Traits chanceToBlindFire="0" AAA BBB CCC />

That was 4000-ish overwrites...
I have tested some single missions, RMG, ToD Northern Belt, by playing or by the editor, but I also need your help!

Further info
Some units don't have the chanceToBlindFire trait, but then it would refer to its human entity, I suppose.
e.g. Grunt Insurgent has <Traits chanceToBlindFire="0.5" stopsToShoot="true"/>
in \data\entities\humans_badguys.xml

This mod also adds the traits to unnecessary units such as troopers, hostages, VIPs, civilians, executioners etc.
But they would be ignored, I suppose hope.

RMG/ToD seems to summon enemies with the default traits, so their entities must be overwritten.

Bug Report please!
I prefer the thread on Steam Workshop, but you can post it here.
https://steamcommunity.com/workshop/filedetails/discussion/3473020403/603029004750951335/