Jump to content
Sign in to follow this  
Madin

Garrisoned Banner Carrier issue

Recommended Posts

Has anyone been able to solve the issue where if a squad is garrisoned in any building (but especially noticeable with the Civilian bunker), and get a banner carrier upgrade (ie the Confessor upgrade), the banner unit will be visible?

Is it fixable?

 

 

 

Share this post


Link to post

I know some nasty bugs you can do with garrisoned inf, that whole garrison code seem to be buggy xP

 

Did setting the banner's model to use invisible/gun model while inside garrisons didn't helped?

I think I may have bumped into something in the definitions that allow us to hide it in some conditions but don't sure...

Edited by Egozi44

Share this post


Link to post

It happens with banner carriers often, I think its because of inside garrison models. Havent tried to change it yet though to check if it resolves the issue. 🔜

Share this post


Link to post

I did a quick fix.

A structures where garrisoned units can fire their weapon have 'AttributeModifierAuraUpdate' that gives the garrisoned units certain buffs.

If you find the 'AttributeModifier' referenced in the 'AttributeModifierAuraUpdate': 'AttributeModifierName' attribute, add a 'ModelConditionsSet' attribute to it with  the model condition: 'INSIDE_GARRISON'.

Result = When a squad that is garrisoned is upgraded with a banner carrier upgrade, the 'Banner Carrier' will briefly show, then correctly disappear (this depends upon what point the 'AttributeModifierAuraUpdate' 'RefreshDelay' is).

There is certainly a better solution out there, but I do not have hours to spend testing for it.

Edited by Madin

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×