mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-07-06 11:58:41 -05:00
Encounter: add intro HUD message
This commit is contained in:
@ -75,6 +75,7 @@ init()
|
|||||||
level.show_grief_hud_msg_func = ::show_grief_hud_msg;
|
level.show_grief_hud_msg_func = ::show_grief_hud_msg;
|
||||||
level.player_suicide_func = ::player_suicide;
|
level.player_suicide_func = ::player_suicide;
|
||||||
|
|
||||||
|
level thread grief_intro_msg();
|
||||||
level thread round_start_wait(5, true);
|
level thread round_start_wait(5, true);
|
||||||
level thread remove_round_number();
|
level thread remove_round_number();
|
||||||
level thread unlimited_zombies();
|
level thread unlimited_zombies();
|
||||||
@ -812,8 +813,6 @@ on_player_spawned()
|
|||||||
{
|
{
|
||||||
self.grief_initial_spawn = false;
|
self.grief_initial_spawn = false;
|
||||||
|
|
||||||
//self thread grief_intro_text();
|
|
||||||
|
|
||||||
if(is_respawn_gamemode() && flag("start_zombie_round_logic"))
|
if(is_respawn_gamemode() && flag("start_zombie_round_logic"))
|
||||||
{
|
{
|
||||||
self thread wait_and_award_grenades();
|
self thread wait_and_award_grenades();
|
||||||
@ -1433,64 +1432,89 @@ wait_and_award_grenades()
|
|||||||
self setWeaponAmmoClip(self get_player_lethal_grenade(), 2);
|
self setWeaponAmmoClip(self get_player_lethal_grenade(), 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
grief_intro_text()
|
grief_intro_msg()
|
||||||
{
|
{
|
||||||
level endon("end_game");
|
level endon("end_game");
|
||||||
self endon("disconnect");
|
|
||||||
|
|
||||||
// player spawns for a frame when hotjoining
|
level waittill("restart_round_start");
|
||||||
if(is_true(self.is_hotjoining))
|
|
||||||
{
|
|
||||||
self waittill( "spawned_spectator" );
|
|
||||||
self waittill( "spawned_player" );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
wait 5;
|
|
||||||
}
|
|
||||||
|
|
||||||
flag_wait( "initial_blackscreen_passed" );
|
players = get_players();
|
||||||
|
|
||||||
self iPrintLn("Welcome to " + get_gamemode_display_name() + "!");
|
|
||||||
wait 5;
|
|
||||||
|
|
||||||
if(level.scr_zm_ui_gametype_obj == "zgrief")
|
if(level.scr_zm_ui_gametype_obj == "zgrief")
|
||||||
{
|
{
|
||||||
self iPrintLn("Gain score by making enemy players bleed out.");
|
foreach (player in players)
|
||||||
wait 5;
|
{
|
||||||
self iPrintLn("Make " + get_gamemode_winning_score() + " enemy players bleed out to win the game.");
|
player thread show_grief_hud_msg( "Make enemy players bleed out to gain score!" );
|
||||||
wait 5;
|
}
|
||||||
}
|
}
|
||||||
else if(level.scr_zm_ui_gametype_obj == "zsnr")
|
else if(level.scr_zm_ui_gametype_obj == "zsnr")
|
||||||
{
|
{
|
||||||
self iPrintLn("Win rounds by getting all enemy players down.");
|
foreach (player in players)
|
||||||
wait 5;
|
{
|
||||||
self iPrintLn("Win " + get_gamemode_winning_score() + " rounds to win the game.");
|
player thread show_grief_hud_msg( "Get all enemy players down to win a round!" );
|
||||||
wait 5;
|
}
|
||||||
}
|
}
|
||||||
else if(level.scr_zm_ui_gametype_obj == "zrace")
|
else if(level.scr_zm_ui_gametype_obj == "zrace")
|
||||||
{
|
{
|
||||||
self iPrintLn("Gain score by getting kills.");
|
foreach (player in players)
|
||||||
wait 5;
|
{
|
||||||
self iPrintLn("Get " + get_gamemode_winning_score() + " kills to win the game.");
|
player thread show_grief_hud_msg( "Kill zombies to gain score!" );
|
||||||
wait 5;
|
}
|
||||||
}
|
}
|
||||||
else if(level.scr_zm_ui_gametype_obj == "zcontainment")
|
else if(level.scr_zm_ui_gametype_obj == "zcontainment")
|
||||||
{
|
{
|
||||||
self iPrintLn("Gain score by controlling the containment zone.");
|
foreach (player in players)
|
||||||
wait 5;
|
{
|
||||||
self iPrintLn("Gain " + get_gamemode_winning_score() + " score to win the game.");
|
player thread show_grief_hud_msg( "Control the containment zone to gain score!" );
|
||||||
wait 5;
|
}
|
||||||
}
|
}
|
||||||
else if(level.scr_zm_ui_gametype_obj == "zmeat")
|
else if(level.scr_zm_ui_gametype_obj == "zmeat")
|
||||||
{
|
{
|
||||||
self iPrintLn("Gain score by holding the meat.");
|
foreach (player in players)
|
||||||
wait 5;
|
{
|
||||||
self iPrintLn("Gain " + get_gamemode_winning_score() + " score to win the game.");
|
player thread show_grief_hud_msg( "Hold the meat to gain score!" );
|
||||||
wait 5;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
self iPrintLn("Good luck!");
|
wait 5;
|
||||||
|
|
||||||
|
players = get_players();
|
||||||
|
|
||||||
|
if(level.scr_zm_ui_gametype_obj == "zgrief")
|
||||||
|
{
|
||||||
|
foreach (player in players)
|
||||||
|
{
|
||||||
|
player thread show_grief_hud_msg( "" + get_gamemode_winning_score() + " score to win the game!" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if(level.scr_zm_ui_gametype_obj == "zsnr")
|
||||||
|
{
|
||||||
|
foreach (player in players)
|
||||||
|
{
|
||||||
|
player thread show_grief_hud_msg( "" + get_gamemode_winning_score() + " round wins to win the game!" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if(level.scr_zm_ui_gametype_obj == "zrace")
|
||||||
|
{
|
||||||
|
foreach (player in players)
|
||||||
|
{
|
||||||
|
player thread show_grief_hud_msg( "" + get_gamemode_winning_score() + " score to win the game!" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if(level.scr_zm_ui_gametype_obj == "zcontainment")
|
||||||
|
{
|
||||||
|
foreach (player in players)
|
||||||
|
{
|
||||||
|
player thread show_grief_hud_msg( "" + get_gamemode_winning_score() + " score to win the game!" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if(level.scr_zm_ui_gametype_obj == "zmeat")
|
||||||
|
{
|
||||||
|
foreach (player in players)
|
||||||
|
{
|
||||||
|
player thread show_grief_hud_msg( "" + get_gamemode_winning_score() + " score to win the game!" );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
get_gamemode_display_name(gamemode = level.scr_zm_ui_gametype_obj)
|
get_gamemode_display_name(gamemode = level.scr_zm_ui_gametype_obj)
|
||||||
|
Reference in New Issue
Block a user