Dateien

> > CS2D > Lua Scripts > [CSP] Healthbar [v 1.1] -script-
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

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

35 Kommentare3 kb, 876 Downloads

alt [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
3× editiert, zuletzt 05.07.12 15:54:26
Zugelassen von Yates

Download Download

3 kb, 876 Downloads

Kommentare

35 Kommentare
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

Alistaire
User Off Offline

If you use that method the scale will be 100 times the normal size at max health.

alt

Infinite Rain
Reviewer Off Offline

Alistaire with my way you can do more things.
And actually I using per cent maths rule
Ich mag es!

alt

Fiz
User Off Offline

@user Alistaire:
1: Lol, thanks I guess...
2: ..oops
Ich mag es!

alt

Alistaire
User Off Offline

@user Fiz

1. I've added your request
2. I didn't spell it wrong

alt

buraxia3
User Off Offline

@user Fiz:are you expecting something like mirror effect?
Ich mag es!

alt

Fiz
User Off Offline

Zitat
?tfel ot thgir morf daer uoy oD

Do I read from right to left? Nope, but if you look in most if not all classic hp bar-needed games, you will see what I mean. Take Age of empires for example, or minecraft, or most tower-defence games...
btw, you spelt 'right' wrong backwards.
Ich mag es!

alt

buraxia3
User Off Offline

Good idea, but..
What happens on fog? And isn't it not allowing you to hide?
Ich mag es!

alt

Alistaire
User Off Offline

@user Infinite Rain

Actually it's;

1
2
local d = player(id, 'health') / player(id, 'maxhealth')
imagescale(healthbar[id], d, 1)

alt

Infinite Rain
Reviewer Off Offline

Well colculating is way easy.
1
2
local d = (currenthealth * 100) / maxhealth
imagescale(healthbarID, d * barsize, 1)

lol

Script is mega awesome
Ich mag es!

alt

BcY
Reviewer Off Offline

very good idea.thanks alistaire
Ich mag es!

alt

Alistaire
User Off Offline

@user Fiz

?tfel ot thgir morf daer uoy oD

alt

Cure Pikachu
User Off Offline

I'll like that.
I think I'll use this for my mission map that has health regeneration.
EDIT: It kinda bugs me that the health bar is covering part of my weapons... And yay, new mode!
Ich mag es!
2× editiert, zuletzt 28.05.12 16:12:51

alt

Fiz
User Off Offline

It should go from right to left...
Ich mag es!

alt

Apache uwu
User Off Offline

tbh: I don't see much difference.

However since you used the correct way to calculate color from percentage in health--I'll like it.
Ich mag es!

alt

Misho
User Off Offline

Finaly a good HealthBar script.
Great job!
Ich mag es!
Zum Anfang Vorherige 1 2 Nächste Zum Anfang