From b5cb954672a03f468ad8aa2f3bf2e7f2f6fd186e Mon Sep 17 00:00:00 2001 From: JezuzLizard Date: Mon, 18 May 2020 05:43:11 -0700 Subject: [PATCH] fixed a bug relating the first spawn check Where the variable checking for first spawn wasn't attached to the player struct. --- Configuration Mod/_clientids.gsc | 5 +++-- Configuration Mod/readme.md | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Configuration Mod/_clientids.gsc b/Configuration Mod/_clientids.gsc index 262901a..3f93a7d 100644 --- a/Configuration Mod/_clientids.gsc +++ b/Configuration Mod/_clientids.gsc @@ -260,9 +260,9 @@ onplayerspawned() { self waittill( "spawned_player" ); self._retain_perks = getDvarIntDefault( "cmPlayerRetainPerks", 0 ); - if ( !isDefined( isFirstSpawn ) || !isFirstSpawn ) + if ( !isDefined( self.cmIsFirstSpawn ) || !self.cmIsFirstSpawn ) { - isFirstSpawn = 1; + self.cmIsFirstSpawn = 1; self thread watch_for_respawn(); self.health = level.cmPlayerMaxHealth; self.maxHealth = self.health; @@ -612,3 +612,4 @@ init_custom_zm_powerups_gsc_exclusive_dvars() + diff --git a/Configuration Mod/readme.md b/Configuration Mod/readme.md index bd6dea3..a6376d8 100644 --- a/Configuration Mod/readme.md +++ b/Configuration Mod/readme.md @@ -26,6 +26,8 @@ This will add support for changing a few aspects of the vanilla powerups Hopefully fixed maxhealth not being set for all players +Properly set the variable checking for first spawn to be attached to the player struct + # Update 5/12/20 ## Main Changes