Author Topic: Health Bar Hack  (Read 10622 times)

Could someone just edit halo shielded player so your max health is 1 and you still say ouch when in pain. Or make it so when you run out of shields you automatically die.

The Portal-Style Player in my Portal Gun dies when you run out of energy. (1HP+59Regen rather than the standard 100HP)

I can't find the player. And couldn't you just edit the halo shielded player or tell me how to? Also i was thinking 1hp health 99 regen shields.
« Last Edit: December 30, 2007, 02:35:04 AM by tommybricksetti »

It's when you enable the Portal Gun, it's in the minigame menu.

Under line 37 of Player_Shielded.cs, add the line maxDamage = 1;

You will only have 100 regenerating HP with 5-second delay instead of the 100 and then another 100 regnerating.

Sweet thanx but erm how do i make it show pain when you loose energy? Because since the shields are your health you kinda need to know when your dieing.

Break the armor::onDamage.

Break the armor::onDamage.
What exactly do i put on the line because "break the armor::onDammage" didn't work.

I'm sure this will work perfectly.
Code: [Select]
function armor::onDamage(%this, %obj){
%this.pain();
%this.delete();
}

That wouldn't delete you, that would delete PlayerStandardArmor!

Thats the entire point.


All that does is make every wep instant kill. I said i wanted you to emit pain particles whenever your energy decreases (because the energy is your health).

No it doesn't, it deletes the client that got damaged.
You should learn that delete(); delete's stuff.

But thats not what i wanted. I want it to emit pain particles when your energy decreases.

I think that shapebaseimagedatas you can use with %player.emote(); for pain particles exist.