1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-23 21:50:46 -05:00

Set player health to max on down

This commit is contained in:
Jbleezy
2021-12-15 00:13:44 -08:00
parent 2426fc1811
commit aa390070dd

View File

@ -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" );