From aa390070dd3be5a4ea5e3bf1183313331ae48990 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Wed, 15 Dec 2021 00:13:44 -0800 Subject: [PATCH] Set player health to max on down --- scripts/zm/main/_zm_reimagined.gsc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/zm/main/_zm_reimagined.gsc b/scripts/zm/main/_zm_reimagined.gsc index acbe908f..9363dada 100644 --- a/scripts/zm/main/_zm_reimagined.gsc +++ b/scripts/zm/main/_zm_reimagined.gsc @@ -32,6 +32,7 @@ onplayerconnect() { level waittill("connecting", player); player thread onplayerspawned(); + player thread onplayerdowned(); } } @@ -112,6 +113,19 @@ onplayerspawned() } } +onplayerdowned() +{ + level endon( "game_ended" ); + self endon( "disconnect" ); + + while(1) + { + self waittill( "entering_last_stand" ); + + self.health = self.maxhealth; + } +} + post_all_players_spawned() { flag_wait( "start_zombie_round_logic" );