diff --git a/Configuration Mod/_clientids.gsc b/Configuration Mod/_clientids.gsc index 42008f9..262901a 100644 --- a/Configuration Mod/_clientids.gsc +++ b/Configuration Mod/_clientids.gsc @@ -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() + diff --git a/Configuration Mod/readme.md b/Configuration Mod/readme.md index b4f9104..bd6dea3 100644 --- a/Configuration Mod/readme.md +++ b/Configuration Mod/readme.md @@ -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