XCOM 2
672 ratings
[WOTC] Unit Flag Extended
3
3
5
5
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.695 MB
13 Nov, 2020 @ 11:07am
17 Jul, 2024 @ 7:37am
44 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
[WOTC] Unit Flag Extended

Description
What is it?
This is a re-upload of a vanilla port. I failed to contact the original authors, but I think my changes are substantial enough to warrant a new mod.
This mod follows in the footsteps of Additional Icons and WOTC Additional Icons

So what does this do?
This mod, like the two it is based upon, expands the 'UI Unit Flag' display to have more information. This includes new icons for display and a loot indicator.
By default it will display Loot, Damage, Aim, Defence, Mobility, Will and Health.

That sounds just like the other versions ... what's new?
Well, first is the inclusion of all stats, Loot, Damage, Aim, Defence, Mobility, Dodge, Hack, Will, Health, Psi Offense, Shields and Armour.
You can toggle by config whatever you want.
You can also set to display on multiple lines if it exceeds the bar length(on by default).
  • I have made a new set of icons for all stats, except loot, which is a re-scale of the original.
  • Each stat text can now be individually coloured
  • Each stat icon can now be coloured
  • Mobility can be displayed as the stat or 'in tiles'. Defaults to stat.
  • Will can be displayed as actual stat or % of max. Defaults to %.
  • Health can be displayed as current/max or just current.
  • Loot can be toggled to only display after scanning protocol, battle scanners or scouting by Reaper target definition. Defaults to shown, no scanning needed.

  • FIXES: the damage stat now includes breakthrough damage bonuses
    Damage looks at Secondary Weapon Damage if Primary Weapon Damage is 'none'
    If still 'none', or no Weapons found, attempts to calculate min-max from Perks ...
    This should help show damage for melee enemies like Faceless and Chryssalids.
  • FIXES: Status effects on the unit are now displayed. Coloured Icons are an option.
  • FIXES: the offset for focus bars, including from mod-added CHL focus bar
    (the CHL bar is the one used by classes like Akimbo, Samurai, Proficiency Heroes)
  • FIXES: the offset for all alien rulers, including modded rulers
  • FIXES: the offset for when a soldier is bound or grabbed from a number of sources
  • FIXES: the offset for environmental objects like Psi Transmitters.
    (these will also only display their health)

  • The WOTC Will bar can now be toggled on/off and recoloured.
  • The Health and Shield bars can be hidden for both enemies and friendlies.
  • The Health and Shield bars can be recoloured to the team colour.
    By default the health bar is coloured and enemy shields.
    Frost Legion Damage Reduction Shields are now 'frosty' blue.
    Rulers have individual colour settings for their Healthbars. Defaults in the screenshots.
  • The Name can be coloured by team colour. Defaults to 'yellow/gold'.

  • Includes the HUD Target Icon next to the name.
  • Config Option to display the bars in set segments
    - with a %fill based on current/max (off by default)
  • Config Option to hide the cover shield icon
  • Config options.. lots of config options...
Known Issues
  1. Basegame has an issue where the UIUnitFlag sometimes fails to initialise and display.
    A save/reload should fix this. Added a console command that might fix this: RustyFix_UFE_RefreshUnitFlagOfActiveUnit > refreshes the unit flag of the currently active/selected unit [/stike]
    ~ Command does not fix, it actually makes it worse ;(
  2. Reload/Mid-Tactical Load, sometimes has an issue where the display scrunches up.
    See the screenshots. A blue move/action should fix this.

  3. Base game has an issue where the Shield Preview bar locks to flashing until an action is committed to, I tried to fix this but couldn't, the issue lies in the flash code not resetting the preview correctly. I have a fix by MCO in this mod, however it conflicts with Gotcha Again so is disabled by default. See the Update notes for 29th January 2021, v1.7.
    This MCO is not required at all with Gotcha Again Redux
  4. If you recolour the enemy shield bar/ablative HP and an ally unit gets mind-controlled the ablative bar gets recoloured to the enemy colour. It does not reset back to friendly colours. (Normal health bar works as expected). While this is undesirable I'm not going to fix it, as I think it's a cool little nod to 'this unit was mind controlled this mission'.
Compatibility
Overwrites UIUnitFlag by MCO and will NOT work with any other mod that does so, such as;
WOTC Additional Icons
Show Health Value WOTC
Numeric Health Display WOTC
Tactical Information Overhaul

Works with YAF1 Autopsy Required , which has settings to control the display of information from this mod.

Works with Extended Information and Gotcha Again Redux.
Not for Vanilla. Works with LWotC and CI.
Can be enabled mid save, mid campaign.

Credits and Thanks
As always many thanks to the good people of the XCOM2 Modders Discord.
Particular thanks to Iridar, Robojumper and Xymanek for help with the flash/UI aspects
And thanks to Grimy, SFlo and Alketi for the original mods.

Other Links
Mod is now built using X2 Mod Build Common [github.com]
Project is hosted on GitHub GitHub Link [github.com]

~ Enjoy !! and please buy me a Cuppa Tea[www.buymeacoffee.com]
516 Comments
Kryo 11 hours ago 
Wish this could be pinned: Ted Jam disables loot flag. Just delete the loot folder in the main Ted Jam overhaul - it's easier (or, you know, set it to True ;p).
EvilBob22 27 Nov @ 12:21pm 
Ahh, maybe it's something to do with LWotC then. I don't know enough about it to know what's going on.
Teezy 27 Nov @ 12:13pm 
So I play with lwotc and I also noticed this behviour is true for syken as well. check out one of his videos and you will see only one soldiers health bar will be bold at a time while the others remain faded. I thought this mod would change that.
EvilBob22 27 Nov @ 11:54am 
That's weird, it should work. Are they all on top of each other? I think they also fade if another bar is in front (but I'm not totally sure).
Teezy 27 Nov @ 11:08am 
nope, all my soldier have 2 actions but all other soldiers are faded. If i of course switch to another soldier then that one is highlighted and the rest faded aswell, im specifically talking about their health bar and other flag stats. I want it so all stat blocks are showing unless their actions are finished and then faded after.
EvilBob22 27 Nov @ 10:50am 
They fade when the soldier has no action points left, is that what you are seeing?
Teezy 26 Nov @ 10:16pm 
how do I make it so that when I focus on a particular soldier other soldiers stat block do not fade like how you have in the screenshots?
huntersorce20 8 Sep @ 3:23pm 
thanks @Dragon32, that worked.
Dragon32 8 Sep @ 8:11am 
@huntersorce20
I'd imagine this
bUseColouredStatusIcons = false
huntersorce20 8 Sep @ 1:03am 
i'm a bit lost in the configs, what do i have to change in order to get the different colored status icons i see in the last image on the mod page?