Hello,
Does anyone have an example of an HP bar (The HP bar of an other player like level.killer = self.health and then level.killer as the value of the HP bar or something)
Thanksss,
Anonymuis.
Printable View
Hello,
Does anyone have an example of an HP bar (The HP bar of an other player like level.killer = self.health and then level.killer as the value of the HP bar or something)
Thanksss,
Anonymuis.
Its already in cod2. You only need to enable it in the menu file
I want to create my own HP bar with an HUDelem
You should hook into callback_playerdamage and _healthoverlay.gsc for that then. Also, read some hud elem tutorials
Are those tutorials on this website?
Why would you want to waste a hud element on something which is already available through the game itself, and which does a better job than any hud element could ever do (the stock health bar pulses when your health is not at max - you can't do that in a hud element)?
To enable the stock health bar you need to do the following:
1. You need to turn health regeneration off;
2. You need to turn on certain cvars on the client in onPlayerSpawned():
Code:self setClientCvar( "cg_drawhealth", "1" );
self setClientCvar( "hud_fade_healthbar", "0" );
Thats not what i want. There is one player in the game that has level.hp = ...., I want a hud elem so EVeryone in the game can see HIS HP