About this mod
Forbids Blind Fire for Every Enemy in Official Missions
- Permissions and credits
- Changelogs
Please let me know if you find something wrong.
Don't try this with Ironman mode!
I have read some posts/reviews that blind fire screws single plans.
This mod overwites human unit traits with chanceToBlindFire="0".
It will work with Single Missions and Operations,
and may work with Random Mission Generator and Tour of Duty.
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"
That was 9000-ish overwrites...
I have tested 3 single missions by playing or by the editor, and playing 3 days of ToD Northern Belt (Ironman mode!).
It seems to work fine to me, but I 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