XCOM 2
626 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]
497 Comments
Dragon32 27 Jun @ 7:24am 
@Saiya
Cool, glad you got it working
Saiya 26 Jun @ 8:41pm 
@Dragon32
Thanks a lot, i indeed had 2 of those problems (remove -regenerateinis, and delete XComEngine.ini)
Finally my UI momds work! (fixed Cost Based Ability Colors too)
Dragon32 26 Jun @ 7:22am 
@Saiya
Have a look at this, whole page is worth a read
https://old.reddit.com/r/xcom2mods/wiki/mod_troubleshooting#wiki_the_game_is_not_loading_mods.21

I'd clear your user config. files for one.
Saiya 26 Jun @ 6:19am 
just absolutely can't get this to work
even when i unsub from all mods except this one + community highlander + Alien Hunters comm highlander
no matter how many times i reload or restart

Is there a log file somewhere so i can try to see why ?
RustyDios  [author] 20 Jun @ 3:30am 
Shields/Ablative are normally orange by default. That is the base game colour for them. The pip bar sits as the top row of pips as shown in the image showing the breakdown. This also is the same as vanilla.

This mod does change *enemy* shield colour to match their health colour by default (or blue for frosty shields), but by default it leaves XCOM shields orange. The position of the shield pip bar remains the same.
littlek0i 20 Jun @ 2:56am 
Ah, I've figured it out. So shields are "orange" for some reason. Changed the color in local config to prevent confusion.

Sorry, my bad!
Dragon32 19 Jun @ 9:51am 
@littlek0i
Image 11 of 16, above, shows how shields have always been displayed for me with this mod, is that not how it looks for you?

Check around in the .ini, there's a lot of configuration possibilities in there.
littlek0i 19 Jun @ 8:19am 
Everything works great, except one thing. I cannot find how to enable shield pips for player characters. Is it possible? Numeric shield works fine.

Shields come from "Delta Strike Redux" mod.

I also have "Gotcha Again Redux" installed.

Thanks!
ZeZo 18 Jun @ 10:00am 
Thank you.
RustyDios  [author] 18 Jun @ 3:10am 
1. No, I looked into it before but the class icon bugs out and resizes itself, I couldn't figure out why and gave up trying to make it work

2.There is no way to easily change the colour of xcom, advent, lost or resistance/civilians... but through the highlander you can change the colours of the faction teams.