mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 23:57:59 -05:00
Grief: round start HUD destroy on end game
This commit is contained in:
@ -368,6 +368,7 @@ round_start_countdown_hud(time)
|
|||||||
countdown.hidewheninmenu = true;
|
countdown.hidewheninmenu = true;
|
||||||
countdown maps/mp/gametypes_zm/_hud::fontpulseinit();
|
countdown maps/mp/gametypes_zm/_hud::fontpulseinit();
|
||||||
countdown thread round_start_countdown_hud_timer(time);
|
countdown thread round_start_countdown_hud_timer(time);
|
||||||
|
countdown thread round_start_countdown_hud_end_game_watcher();
|
||||||
|
|
||||||
countdown.countdown_text = createServerFontString( "objective", 1.5 );
|
countdown.countdown_text = createServerFontString( "objective", 1.5 );
|
||||||
countdown.countdown_text setPoint( "CENTER", "CENTER", 0, -40 );
|
countdown.countdown_text setPoint( "CENTER", "CENTER", 0, -40 );
|
||||||
@ -386,8 +387,19 @@ round_start_countdown_hud_destroy()
|
|||||||
self destroy();
|
self destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
round_start_countdown_hud_end_game_watcher()
|
||||||
|
{
|
||||||
|
self endon("death");
|
||||||
|
|
||||||
|
level waittill( "end_game" );
|
||||||
|
|
||||||
|
self round_start_countdown_hud_destroy();
|
||||||
|
}
|
||||||
|
|
||||||
round_start_countdown_hud_timer(time)
|
round_start_countdown_hud_timer(time)
|
||||||
{
|
{
|
||||||
|
level endon( "end_game" );
|
||||||
|
|
||||||
timer = time;
|
timer = time;
|
||||||
while ( true )
|
while ( true )
|
||||||
{
|
{
|
||||||
@ -405,7 +417,9 @@ round_start_countdown_hud_timer(time)
|
|||||||
countdown_pulse( hud_elem, duration )
|
countdown_pulse( hud_elem, duration )
|
||||||
{
|
{
|
||||||
level endon( "end_game" );
|
level endon( "end_game" );
|
||||||
|
|
||||||
waittillframeend;
|
waittillframeend;
|
||||||
|
|
||||||
while ( duration > 0 && !level.gameended )
|
while ( duration > 0 && !level.gameended )
|
||||||
{
|
{
|
||||||
hud_elem thread maps/mp/gametypes_zm/_hud::fontpulse( level );
|
hud_elem thread maps/mp/gametypes_zm/_hud::fontpulse( level );
|
||||||
|
Reference in New Issue
Block a user