Jump to content

New Noiseblip, weapon and Health Style


Recommended Posts

Posted

Hey,

I want to create a new Style for the noiseblip, the weapon window and the Health, e.g. like Counterstrike Source, or a long self-desgined bar at the bottom of the window, containing these informations.

Is it possible to make such new styles and bars?

Posted

I am not sure what you mean by noise blips? The others features are scriptable. Although creating a custom HUD overlay is a bit more complicated. You will have to hide the original HUD components and create overlay images that fit relative to the screen size. Creating a custom bar that completely replaces the HUD is less difficult. Just use any of the GUI functions and hide the original HUD components.

Sections in the API of interest:

http://development.mtasa.com/index.php? ... dComponent

http://development.mtasa.com/index.php? ... _functions

And in DP3 you can use draw functions as an alternative to static images to create simple 2D health bars:

http://development.mtasa.com/index.php? ... _functions

Posted

Hi,

thank you,

with noise blip I mean the nice bar which is growing when you are running in Stealth :D

So, you mean some parts are difficult, I am not a very good scripter. Have to learn lua first, the only thing i wrote was a script for weapon ammo ^^

So i have to teach Lua myself a bit.

Posted

I wouldn't want to use the word difficult but it does require novice scripting skills. You will have to understand the event system in order to create health bars and such. But once you get passed that point it shouldn't be too hard to script.

The noise bar in stealth is a good example of how to use GUI functions.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...