Page 1 of 1

Custom HUD drawing and conditions

Posted: Tue Mar 31, 2015 12:41 pm
by doomista
Hi, I am currently teaching myself DECORATE and stuff and I have a problem. I am doing Shootmania mod (I mean that online game, no silly name for weapon madness).
So far I have the basic weapon, ammo recharge and stuff, but I started working on HUD.
I need to draw images based on how much ammo player has and how much health he has (I am not dealing with stamina right now, but some guidelines will be appreciated too), because ammo and health indicators are just image chunks.
So far I discovered that SBARINFO has not conditions, I definitely don't want to use ACS if possible.
Thanks for help in advance

RE: Custom HUD drawing and conditions

Posted: Tue Mar 31, 2015 8:50 pm
by doomista
EDIT: I eventually figured out how to do what I wanted with DrawBar function. I am still lost with the stamina thing.

RE: Custom HUD drawing and conditions

Posted: Tue Mar 31, 2015 9:44 pm
by Kara Kurt
Out of curiosity what do you mean by Shootmania, are you adapting a game mode for Zandro? If so, you might want to check this:

https://www.youtube.com/watch?v=iDiXhEbjqTc

RE: Custom HUD drawing and conditions

Posted: Tue Mar 31, 2015 11:21 pm
by Watermelon
Why not use ACS? It would require a ton of work, but it definitely could fill in for when SBARINFO doesn't cover what you want.

RE: Custom HUD drawing and conditions

Posted: Wed Apr 01, 2015 11:48 am
by doomista
Watermelon wrote: Why not use ACS? It would require a ton of work, but it definitely could fill in for when SBARINFO doesn't cover what you want.
For now, I've solved it with just one DrawBar call and that's cool for me.
Kara Kurt wrote: Out of curiosity what do you mean by Shootmania, are you adapting a game mode for Zandro? If so, you might want to check this:

https://www.youtube.com/watch?v=iDiXhEbjqTc
Yes I do. Actually I want to do a different Shootmania mode - Royal, but when I'll have youtube friendly net access, I will check this one out. But I have this project more for an education purposes.

RE: Custom HUD drawing and conditions

Posted: Thu Apr 02, 2015 1:29 am
by Fsn76
If you need any help for test and suggestions, im here. I m in love with shootmania :D The one i made with xsnake is joust!

Image

A beta wad is actually hosted in a BaseQ server if you want to see it.

RE: Custom HUD drawing and conditions

Posted: Thu Apr 02, 2015 1:49 am
by Kara Kurt
He's also Shootmania's best railer just so you know!