Segmented Health Bar

Hello everyone, i am working on a fps in unreal engine and I was wondering how can I make a segmented health bar like overwatch’s in unreal engine? I want it to be dynamic and the segments represent a certain amount of health, and the amount of segments to be based off of the max health, I got to a point where i have a horizontal box that adds a progress bar (a segment) for every 25 hp in the max hp, and its great and all but my issue is making it work like a progress bar, as when the player’s health depletes (say to 180/200) that means that the last segment’s percentage won’t be full, how do I do that?

You could try to leverage this: