How do i make a custom hud mugshot for a custom player class?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
User avatar
JetteboyTV
Posts: 52
Joined: Mon Sep 04, 2023 9:17 am

How do i make a custom hud mugshot for a custom player class?

Post by JetteboyTV »

How do i do this?
User avatar
ramon.dexter
Posts: 1543
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: How do i make a custom hud mugshot for a custom player class?

Post by ramon.dexter »

Well, you get your preferred graphics editing ptogram and draw it. Or you can covert a photo into a mugshot, or anything else. The possibilities are endless.

If you are looking for a more specific advcie, pleae elaborate further.
User avatar
JetteboyTV
Posts: 52
Joined: Mon Sep 04, 2023 9:17 am

Re: How do i make a custom hud mugshot for a custom player class?

Post by JetteboyTV »

ramon.dexter wrote: Wed Dec 06, 2023 12:46 am Well, you get your preferred graphics editing ptogram and draw it. Or you can covert a photo into a mugshot, or anything else. The possibilities are endless.

If you are looking for a more specific advcie, pleae elaborate further.
i meant like, how do i code the sprites into the hud?
User avatar
ramon.dexter
Posts: 1543
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: How do i make a custom hud mugshot for a custom player class?

Post by ramon.dexter »

If you use the same names of the sprites as the original mugshot, you dont need to code anything.

If you use different names, you have to write you own new statusbar in zscript. There is also older deprecated sbarinfo, but that way less features than zscript statusbar.

And if your next question would be something like'but I want to change mugshot only', the only answer is graphics replacement.

Return to “Scripting”