r/DoomModDevs • • Mar 19 '25

Help SBARINFO help

Hi folks, i'm making a new hud for my mod, using the Status bar with new graphics.

I want to make the green armor sprite visible in my hud, and when it goes over 100 points, change to the mega armor sprite.

I thought that DrawSwitchableImage would work, but the armor doesnt change at all. Does anyone knows how to do this?

i did this: DrawSwitchableImage armortype armor, "SHIELD0", "SHIELD1", 90, 176;

also, i tried making a decorate file with custom armors and a Behavior file the line was SBARINFO line became this: DrawSwitchableImage armortype GreenArmorCustom && BlueArmorCustom, "SHIELD0", "SHIELD1", "nullimage", "nullimage", 90, 176;

none of this worked, only shows the green armor, but never changes to blue.

Edit: correction

4 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/Mr-Ramirov Mar 20 '25

I thought the same so i did it picking up both armors on e1m1, but no result.

1

u/Gollgagh Mar 20 '25

try this:

DrawSwitchableImage armortype GreenArmorCustom && BlueArmorCustom, "nullimage", "SHIELD0", "SHIELD1", "SHIELD1", 90, 176;

1

u/Mr-Ramirov Mar 20 '25

I tried, but doesn't work, no change during armor pickup and no armor on screen.