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:
@ -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" );
|
||||
|
Reference in New Issue
Block a user