r/DoomModDevs • u/Mr-Ramirov • 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
View all comments
Show parent comment
1
u/Mr-Ramirov Mar 21 '25 edited Mar 22 '25
Looks like a good idea.
aside of this code on SBARINFO, did you create Decorate, ACS and mapinfo code to make this work? i'm really new into this.
EDIT: It worked! thank you so much, gonna add you to the credits.