mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-12 16:18:00 -05:00
Tranzit: fix assets not loading for players joining during pregame
This commit is contained in:
@ -174,23 +174,30 @@ onplayerspawned()
|
|||||||
|
|
||||||
hide_gump_loading_for_hotjoiners()
|
hide_gump_loading_for_hotjoiners()
|
||||||
{
|
{
|
||||||
if(isDefined(level.should_respawn_func) && [[level.should_respawn_func]]())
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
self endon( "disconnect" );
|
self endon( "disconnect" );
|
||||||
|
|
||||||
self.rebuild_barrier_reward = 1;
|
self.rebuild_barrier_reward = 1;
|
||||||
self.is_hotjoining = 1;
|
self.is_hotjoining = 1;
|
||||||
|
|
||||||
num = self getsnapshotackindex();
|
num = self getsnapshotackindex();
|
||||||
|
|
||||||
|
wait 0.5;
|
||||||
|
|
||||||
while ( num == self getsnapshotackindex() )
|
while ( num == self getsnapshotackindex() )
|
||||||
{
|
{
|
||||||
wait 0.25;
|
wait 0.05;
|
||||||
}
|
}
|
||||||
wait 0.5;
|
|
||||||
self maps\mp\zombies\_zm::spawnspectator();
|
self maps\mp\zombies\_zm::spawnspectator();
|
||||||
self.is_hotjoining = 0;
|
self.is_hotjoining = 0;
|
||||||
self.is_hotjoin = 1;
|
self.is_hotjoin = 1;
|
||||||
|
|
||||||
|
if(isDefined(level.should_respawn_func) && [[level.should_respawn_func]]())
|
||||||
|
{
|
||||||
|
level thread maps\mp\zombies\_zm::spectators_respawn();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ( is_true( level.intermission ) || is_true( level.host_ended_game ) )
|
if ( is_true( level.intermission ) || is_true( level.host_ended_game ) )
|
||||||
{
|
{
|
||||||
setclientsysstate( "levelNotify", "zi", self );
|
setclientsysstate( "levelNotify", "zi", self );
|
||||||
|
Reference in New Issue
Block a user