Custom HUD drawing and conditions

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
doomista
Forum Regular
Posts: 147
Joined: Sat Mar 07, 2015 6:58 pm
Location: I've been to hell. Twice

Custom HUD drawing and conditions

#1

Post by doomista » Tue Mar 31, 2015 12:41 pm

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

User avatar
doomista
Forum Regular
Posts: 147
Joined: Sat Mar 07, 2015 6:58 pm
Location: I've been to hell. Twice

RE: Custom HUD drawing and conditions

#2

Post by doomista » Tue Mar 31, 2015 8:50 pm

EDIT: I eventually figured out how to do what I wanted with DrawBar function. I am still lost with the stamina thing.

Kara Kurt
Frequent Poster Miles card holder
Posts: 887
Joined: Sat Oct 12, 2013 6:58 pm
Location: Strasbourg, France
Contact:

RE: Custom HUD drawing and conditions

#3

Post by Kara Kurt » Tue Mar 31, 2015 9:44 pm

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

Watermelon
Zandrone
Posts: 1244
Joined: Thu Jun 28, 2012 9:07 pm
Location: Rwanda

RE: Custom HUD drawing and conditions

#4

Post by Watermelon » Tue Mar 31, 2015 11:21 pm

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.
Last edited by Watermelon on Tue Mar 31, 2015 11:21 pm, edited 1 time in total.

User avatar
doomista
Forum Regular
Posts: 147
Joined: Sat Mar 07, 2015 6:58 pm
Location: I've been to hell. Twice

RE: Custom HUD drawing and conditions

#5

Post by doomista » Wed Apr 01, 2015 11:48 am

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.
Last edited by doomista on Wed Apr 01, 2015 11:49 am, edited 1 time in total.

User avatar
Fsn76
 
Posts: 39
Joined: Sat Jun 30, 2012 1:01 am
Location: France - Normandie
Contact:

RE: Custom HUD drawing and conditions

#6

Post by Fsn76 » Thu Apr 02, 2015 1:29 am

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.

Kara Kurt
Frequent Poster Miles card holder
Posts: 887
Joined: Sat Oct 12, 2013 6:58 pm
Location: Strasbourg, France
Contact:

RE: Custom HUD drawing and conditions

#7

Post by Kara Kurt » Thu Apr 02, 2015 1:49 am

He's also Shootmania's best railer just so you know!

Post Reply