mirror of
https://github.com/JezuzLizard/Public-BO2-Mods.git
synced 2025-06-26 03:48:00 -05:00
hopefully fixed player max healther setter
This commit is contained in:
@ -255,12 +255,20 @@ onplayerconnect()
|
||||
|
||||
onplayerspawned()
|
||||
{
|
||||
self waittill( "spawned_player" );
|
||||
self._retain_perks = getDvarIntDefault( "cmPlayerRetainPerks", 0 );
|
||||
self thread watch_for_respawn();
|
||||
self.health = level.cmPlayerMaxHealth;
|
||||
self.maxHealth = self.health;
|
||||
self setMaxHealth( level.cmPlayerMaxHealth );
|
||||
self endon( "disconnect" );
|
||||
while ( 1 )
|
||||
{
|
||||
self waittill( "spawned_player" );
|
||||
self._retain_perks = getDvarIntDefault( "cmPlayerRetainPerks", 0 );
|
||||
if ( !isDefined( isFirstSpawn ) || !isFirstSpawn )
|
||||
{
|
||||
isFirstSpawn = 1;
|
||||
self thread watch_for_respawn();
|
||||
self.health = level.cmPlayerMaxHealth;
|
||||
self.maxHealth = self.health;
|
||||
self setMaxHealth( level.cmPlayerMaxHealth );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
checks()
|
||||
@ -603,3 +611,4 @@ init_custom_zm_powerups_gsc_exclusive_dvars()
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user