mirror of
https://github.com/JezuzLizard/Public-BO2-Mods.git
synced 2025-06-10 20:18:05 -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()
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -20,6 +20,12 @@ Install _zm_powerups.gsc in in maps/mp/zombies
|
||||
|
||||
This will add support for changing a few aspects of the vanilla powerups
|
||||
|
||||
# Update 5/18/20
|
||||
|
||||
## Main Changes
|
||||
|
||||
Hopefully fixed maxhealth not being set for all players
|
||||
|
||||
# Update 5/12/20
|
||||
|
||||
## Main Changes
|
||||
|
Reference in New Issue
Block a user