1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-07-09 05:18:17 -05:00

Add back solo_game flag change mid game

This commit is contained in:
Jbleezy
2023-04-13 03:59:14 -07:00
parent 6772d58426
commit 599a4cb23d
2 changed files with 15 additions and 5 deletions

View File

@ -1853,5 +1853,19 @@ end_game()
check_quickrevive_for_hotjoin(disconnecting_player)
{
// always use coop quick revive
subtract_num = 0;
if ( isdefined( disconnecting_player ) )
subtract_num = 1;
players = get_players();
if ( players.size - subtract_num == 1 )
{
flag_set( "solo_game" );
}
else
{
flag_clear( "solo_game" );
}
}

View File

@ -182,10 +182,6 @@ screecher_detach( player )
if ( isdefined( player.screecher_weapon ) && player.screecher_weapon != "none" && is_player_valid( player ) && !is_equipment_that_blocks_purchase( player.screecher_weapon ) )
player switchtoweapon( player.screecher_weapon );
else if ( flag( "solo_game" ) && player hasperk( "specialty_quickrevive" ) )
{
}
else if ( !player maps\mp\zombies\_zm_laststand::player_is_in_laststand() )
{
primaryweapons = player getweaponslistprimaries();