1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-11 15:48:05 -05:00

Grief: decrease sv_connectTimeout dvar

Remove replacing _zm::onallplayersready
This commit is contained in:
Jbleezy
2021-12-31 03:45:14 -08:00
parent 4564e105c7
commit cae7de75eb
2 changed files with 2 additions and 54 deletions

View File

@ -7,56 +7,6 @@ check_quickrevive_for_hotjoin(disconnecting_player)
// always use coop quick revive
}
onallplayersready()
{
while ( getPlayers().size == 0 )
{
wait 0.1;
}
game[ "state" ] = "playing";
wait_for_all_players_to_connect( level.crash_delay );
setinitialplayersconnected();
flag_set( "initial_players_connected" );
while ( !aretexturesloaded() )
{
wait 0.05;
}
thread maps/mp/zombies/_zm::start_zombie_logic_in_x_sec( 3 );
maps/mp/zombies/_zm::fade_out_intro_screen_zm( 5, 1.5, 1 );
}
wait_for_all_players_to_connect( max_wait )
{
timeout = int( max_wait * 10 );
cur_time = 0;
player_count_actual = 0;
while ( getnumconnectedplayers() < getnumexpectedplayers() || player_count_actual != getnumexpectedplayers() )
{
players = getPlayers();
player_count_actual = 0;
for ( i = 0; i < players.size; i++ )
{
players[ i ] freezecontrols( 1 );
if ( players[ i ].sessionstate == "playing" )
{
player_count_actual++;
}
}
wait 0.1;
if ( getPlayers().size >= getDvarInt( "zombies_minplayers" ) )
{
cur_time++;
}
if ( cur_time >= timeout )
{
return;
}
}
}
actor_damage_override( inflictor, attacker, damage, flags, meansofdeath, weapon, vpoint, vdir, shitloc, psoffsettime, boneindex )
{
if ( !isDefined( self ) || !isDefined( attacker ) )