Files

> > CS2D > Lua Scripts > [CSP] Healthbar [v 1.1] -script-
Files overviewCS2D overviewLua Scripts overview

English [CSP] Healthbar [v 1.1] -script- >

35 comments3 kb, 895 Downloads

old [CSP] Healthbar [v 1.1] -script-

Alistaire
User Off Offline

So I've made a healthbar script to beat all the others. It's a pretty easy one but it looks way better than some ugly 'colorjumping' one which changes on damage only, and it's not as CPU-demanding as e.g the ones that use a super complex code with angles and shit.

Enjoy,

~Alistaire

----

There are 3 modes;

HB_mode = 1 ; Healthbar goes from sides to middle
HB_mode = 2 ; Healthbar goes from left to right
HB_mode = 3 ; Healthbar goes from right to left

----

Updates:

[1.1]     Hpbar updates at hit
edited 3×, last 05.07.12 03:54:26 pm
Approved by Yates

Download Download

3 kb, 895 Downloads

Comments

35 comments
Page
To the start Previous 1 2 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

GeoB99
Moderator Off Offline

@user SSGLemon: All Lua scripts are located in the sys/lua directory path. Once you have extracted the script file to the right path, you must dofile it in order to make it work while you start the server. Copy the following line below and paste it through server.lua.
dofile("sys/lua/Hpbar.lua")

old

SSGLemon
User Off Offline

were to put this script? autorun? server?
I like it!

old

KimKart
Idiot Off Offline

Such script.
very code
such doge.
I like it!

old

Pagyra
User Off Offline

HB_mode = 4 ; Healthbar goes from up to down
plz

Change color and hpbar size for different values
I like it!

old

okeyman
User Off Offline

yah awesome!
I like it!

old

Avo
User Off Offline

Yeap it's nice. Best HP bars that I have ever seen.
I like it!

old

Sniper_x
User Off Offline

Very nice! This is a real healthbar script!
I like it!

old

J4x
User Off Offline

Maybe i'll test, the one I saw was pretty good.

old

Yates
Reviewer Off Offline

@user J4x: If it has been done before it does not mean that it is not good or useful. I find this one better than others, so it's an improvement. There is point in making something again to improve it, that's life. Get used to it.
I like it!
edited 1×, last 29.05.12 01:56:34 pm

old

maPmaKer
User Off Offline

I don't care how you did the math, I just love the sprite! Nice, I'll use it.
I like it!

old

Alistaire
User Off Offline

@user J4x

This is better. Also, Mapmaker asked for this so I've made it for that reason, not because I want to get loads of likes on something that's 'Already done before..'.

old

SkullzOrig
User Off Offline

I thought it was for all servers, I had brain fart.

old

BlackBelt
User Off Offline

yeah, its good to 4fun, thx you.
I like it!

old

sheeL
User Off Offline

i like your script ^^'
I like it!

old

J4x
User Off Offline

Already done before..

old

Lubo
User Off Offline

your Picture suck!
But the script is fine...

old

Infinite Rain
Reviewer Off Offline

Nope... lol, you will have lot less mess with sprites and script will be more lower. If you know how to use this method right.
I like it!

old

Alistaire
User Off Offline

@user Infinite Rain

But that is not my script. Also you'd need a lot more functions and shit to do what you want.

old

Apache uwu
User Off Offline

yeah most games I've seen go from right to left

centered ftw!
I like it!

old

Infinite Rain
Reviewer Off Offline

If I will use one pixel image weight then it will be OK.
I using that method.
I like it!
To the start Previous 1 2 Next To the start