1
0
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:
Jbleezy
2023-05-05 03:34:48 -07:00
parent c4454dc3e7
commit a3df730760

View File

@ -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 );