mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-24 14:10:30 -05:00
Set player health to max on down
This commit is contained in:
@ -32,6 +32,7 @@ onplayerconnect()
|
|||||||
{
|
{
|
||||||
level waittill("connecting", player);
|
level waittill("connecting", player);
|
||||||
player thread onplayerspawned();
|
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()
|
post_all_players_spawned()
|
||||||
{
|
{
|
||||||
flag_wait( "start_zombie_round_logic" );
|
flag_wait( "start_zombie_round_logic" );
|
||||||
|
Reference in New Issue
Block a user