Author Topic: Health Bar Hack  (Read 10690 times)

Ok so what do i put in front of this "%Player.emote(base/data/particles/pain.png);"? Or do i just place it below<insert shielded player line here>?
« Last Edit: December 30, 2007, 03:58:31 PM by tommybricksetti »

It would be something like %player.emote(hateImage,1); except you'd need to search through datablocks to find the emote image for the pain ones rather than the hate one. (The 1 is for the 'spam protection' thing, stopping you from going /alarm /alarm /alarm /alarm to spam the server)


Except it isn't exactly called that. Search through tree(); while hosting.

emote doesn't need the one.

Tutorial Source?
Quote from: Badspot's Code
Code: [Select]
%obj.emote(winStarProjectile, 1); //1 = skip spam protection

Spam protection can stop the emote happening if you get hurt a few times in 3-4 seconds or if you use /alarm /alarm /alarm to spam the server. If you add the 1, you always emit the emote so pain always does the "ouch".

I found painhighemiter, painmedemiter, and painlowemiter. The problem is that i need to know what to call those in the script. To implement them i will have to put something like %function::ifenergydrain = 1-25; emit painlowemiter;

Code: [Select]
if(%obj.getEnergyLevel() < 25)
{
 //You're on low health
}

I thought Player::emote needed a ShapeBaseImageData (hateimage, loveimage) not an emitter...?

i dunno there was the particle the emiter and something else for all 3 of them.

What was the Something Else? That was probably the image.

Tutorial Source?
Quote from: Badspot's Code
Code: [Select]
%obj.emote(winStarProjectile, 1); //1 = skip spam protection

Spam protection can stop the emote happening if you get hurt a few times in 3-4 seconds or if you use /alarm /alarm /alarm to spam the server. If you add the 1, you always emit the emote so pain always does the "ouch".

o wow, I didn't know that.

I found the part of the portal.cs that explains how fall damage works for it but... I still can't find the pain part.

findhpplsl();
del(hp.notdedpls);

Im gud @ script


surry me did wrung

if (hp=1);
Nodiepls