How Do I SBARINFO? - A Tutorial

Forum rules
Please don't start threads here asking for help. This forum is not for requesting guides, only for posting them. If you need help, the Editing forum is for you.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: How Do I SBARINFO? - A Tutorial

Re: How Do I SBARINFO? - A Tutorial

by artagon96 » Thu Oct 26, 2017 9:42 am

hello i have a small problem with creating custom pain effect on hud when taking damage health bar turn red. is there any way that someone could explain my how to do it

ps : sorry for my english
Attachments
it's something like that
it's something like that

Re: How Do I SBARINFO? - A Tutorial

by wildweasel » Wed Oct 18, 2017 12:17 pm

According to commit logs, it'd probably be this one.

Re: How Do I SBARINFO? - A Tutorial

by Major Cooke » Wed Oct 18, 2017 12:09 pm

Which is your latest updated mod?

Re: How Do I SBARINFO? - A Tutorial

by wildweasel » Tue Oct 17, 2017 6:08 pm

Just pick a mod at random. I can't guarantee a lot of them will work okay on their own, due to having special indicators for mod-specific functions (like ww-terror's weapon level gauges), but really, go ahead.

Re: How Do I SBARINFO? - A Tutorial

by Major Cooke » Tue Oct 17, 2017 5:05 pm

...I really need to write a tutorial on how to make 'zbarinfo' soon.

I mean, I can start making one but there's still things left unexplored.

But to give me a good refresher course, Weasel, you could point me to a mod of yours that I can convert for you and document along the way, which will be the perfect instrument for writing a tutorial down.
Unless someone beat met to the chase already.

Oh and, if you want some extra nifty features that have been floating in your head yet you couldn't do it with sbarinfo, do tell. :mrgreen:

I'll start off with a straight conversion, one to one, and then I'll add those extra ideas.

Re: How Do I SBARINFO? - A Tutorial

by olzhas1one » Tue Aug 29, 2017 7:01 am

Thank you so much. Finally placed health and ammo on the places I wanted and managed to add scores

Re: How Do I SBARINFO? - A Tutorial

by artagon96 » Fri Jun 09, 2017 10:49 am

Yes, it works, and now I need some help so you can change the status bar between two types of grenades when equipped with an assault rifle with a grenade launcher the grenade status bar changes to grenade ammunition and when I change the weapon it again goes back to the previous statusbar

PS: sorry for my bad english

Re: How Do I SBARINFO? - A Tutorial

by wildweasel » Tue Jun 06, 2017 3:53 pm

artagon96 wrote:hey guys i want to know how to make status bar not showable when armor is depleted can someone help me with this
There's probably a more elegant way to do this now, but you'd do this by enclosing all the relevant parts of your status bar in an InInventory block. For example, this would show only if you had GreenArmor in your inventory:

Code: Select all

statusbar normal
{
   InInventory GreenArmor
   {
      [...]
   }
}

Re: How Do I SBARINFO? - A Tutorial

by artagon96 » Tue Jun 06, 2017 3:51 pm

hey guys i want to know how to make status bar not showable when armor is depleted can someone help me with this

Re: How Do I SBARINFO? - A Tutorial

by Silentdarkness12 » Mon Sep 12, 2016 3:59 pm

Tapwave wrote:
Silentdarkness12 wrote: Already did that. No luck. It's still there. Also tried unchecking 'null texture'. Also no good.
Have you tried taking the image you used to make your full bar, make it completely blank, then give it the same offsets? Normally the TEXTURES thing should do exactly that, but it shouldn't hurt to try.
Yes, I already tried that too.

Re: How Do I SBARINFO? - A Tutorial

by Tapwave » Mon Sep 12, 2016 3:57 pm

Silentdarkness12 wrote: Already did that. No luck. It's still there. Also tried unchecking 'null texture'. Also no good.
Have you tried taking the image you used to make your full bar, make it completely blank, then give it the same offsets? Normally the TEXTURES thing should do exactly that, but it shouldn't hurt to try.

Re: How Do I SBARINFO? - A Tutorial

by Silentdarkness12 » Mon Sep 12, 2016 3:43 pm

wildweasel wrote:Your back image must have the same dimensions as the front image. Try creating a Textures entry with no patches, with a canvas size equal to the size of the front image.
Already did that. No luck. It's still there. Also tried unchecking 'null texture'. Also no good.

Re: How Do I SBARINFO? - A Tutorial

by wildweasel » Mon Sep 12, 2016 3:30 pm

Your back image must have the same dimensions as the front image. Try creating a Textures entry with no patches, with a canvas size equal to the size of the front image.

Re: How Do I SBARINFO? - A Tutorial

by Silentdarkness12 » Mon Sep 12, 2016 3:19 pm

It's me again.

The rest of the forum: dear god why doesn't he just go away


So i'm trying to make a bar to measure the airburst time on the grenade launchers and such in Hideous Destructor. However, I don't want a background image for the bar, and no matter what I do, whether it's putting in nullimage, a null TEXTURE or TNT1A0, a blacked out version of the bar appears in the extreme upper left corner of the screen, seemingly independent of the X and Y coordinates. What am I doing wrong here?

Code: Select all

InInventory AirburstCount,1
{
DrawImage "BPSIA0",30,190,center,40,40;
DrawBar "AIRBA0","null",AirburstCount,horizontal,interpolate(3),90,150;
}
else
{
DrawImage "BPSIB0",30,190,center,40,40;
}

Re: How Do I SBARINFO? - A Tutorial

by Tapwave » Thu Sep 08, 2016 1:49 pm

Sure! Here is the code I use in FragTrak to display the prestige medals. It'll only display the top level one you own.
Spoiler:
The WeaponPrestige items are given via ACS after checking a CVAR, if you're wondering.

Top