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

Encounter on Nuketown: add announcer vox

This commit is contained in:
Jbleezy
2024-04-12 01:04:15 -07:00
parent 752ef919e1
commit b602880a42
17 changed files with 69 additions and 3 deletions

View File

@ -357,8 +357,10 @@ add_fire_sale_vox()
return;
}
game["zmbdialog"]["fire_sale"] += "_rich";
level.vox.speaker["player"].alias["powerup"]["firesale"] += "_rich";
postfix = "_rich";
game["zmbdialog"]["fire_sale"] += postfix;
level.vox.speaker["player"].alias["powerup"]["firesale"] += postfix;
}
on_player_connect()

View File

@ -38,4 +38,27 @@ playleaderdialogonplayer(dialog, team, waittime)
self playlocalsound(full_alias);
}
}
init_griefvox(prefix)
{
postfix = "";
if (level.script == "zm_nuked")
{
postfix = "_rich";
}
init_gamemodecommonvox(prefix);
createvox("1_player_down", "1rivdown" + postfix, prefix);
createvox("2_player_down", "2rivdown" + postfix, prefix);
createvox("3_player_down", "3rivdown" + postfix, prefix);
createvox("4_player_down", "4rivdown" + postfix, prefix);
createvox("grief_restarted", "restart" + postfix, prefix);
createvox("grief_lost", "lose" + postfix, prefix);
createvox("grief_won", "win" + postfix, prefix);
createvox("1_player_left", "1rivup" + postfix, prefix);
createvox("2_player_left", "2rivup" + postfix, prefix);
createvox("3_player_left", "3rivup" + postfix, prefix);
createvox("last_player", "solo" + postfix, prefix);
}

View File

@ -23,6 +23,29 @@ postinit_func()
setmatchtalkflag("EveryoneHearsEveryone", 1);
}
zgrief_main()
{
level thread maps\mp\zombies\_zm::round_start();
level thread maps\mp\gametypes_zm\_zm_gametype::kill_all_zombies();
flag_wait("initial_blackscreen_passed");
level thread maps\mp\zombies\_zm_game_module::wait_for_team_death_and_round_end();
players = get_players();
foreach (player in players)
player.is_hotjoin = 0;
wait 1;
postfix = "";
if (level.script == "zm_nuked")
{
postfix = "_rich";
}
playsoundatposition("vox_zmba_grief_intro" + postfix + "_0", (0, 0, 0));
}
game_mode_spawn_player_logic()
{
if (isDefined(level.should_respawn_func) && [[level.should_respawn_func]]())

View File

@ -12,6 +12,7 @@ main()
}
replaceFunc(maps\mp\zombies\_zm::getfreespawnpoint, scripts\zm\replaced\_zm::getfreespawnpoint);
replaceFunc(maps\mp\zombies\_zm_audio_announcer::init_griefvox, scripts\zm\replaced\_zm_audio_announcer::init_griefvox);
replaceFunc(maps\mp\zombies\_zm_blockers::handle_post_board_repair_rewards, scripts\zm\replaced\_zm_blockers::handle_post_board_repair_rewards);
replaceFunc(maps\mp\zombies\_zm_game_module::wait_for_team_death_and_round_end, scripts\zm\replaced\_zm_game_module::wait_for_team_death_and_round_end);
replaceFunc(maps\mp\zombies\_zm_game_module_meat_utility::init_item_meat, scripts\zm\replaced\_zm_game_module_meat_utility::init_item_meat);
@ -19,6 +20,7 @@ main()
replaceFunc(maps\mp\gametypes_zm\_zm_gametype::onplayerspawned, scripts\zm\replaced\_zm_gametype::onplayerspawned);
replaceFunc(maps\mp\gametypes_zm\_zm_gametype::menu_onmenuresponse, scripts\zm\replaced\_zm_gametype::menu_onmenuresponse);
replaceFunc(maps\mp\gametypes_zm\zgrief::postinit_func, scripts\zm\replaced\zgrief::postinit_func);
replaceFunc(maps\mp\gametypes_zm\zgrief::zgrief_main, scripts\zm\replaced\zgrief::zgrief_main);
replaceFunc(maps\mp\gametypes_zm\zgrief::meat_stink, scripts\zm\replaced\zgrief::meat_stink);
replaceFunc(maps\mp\gametypes_zm\zmeat::create_item_meat_watcher, scripts\zm\replaced\zmeat::create_item_meat_watcher);
}

View File

@ -17,6 +17,11 @@ init()
{
level.zombie_init_done = ::zombie_init_done;
level.special_weapon_magicbox_check = ::nuked_special_weapon_magicbox_check;
if (is_gametype_active("zgrief"))
{
sndswitchannouncervox("richtofen");
}
}
zombie_init_done()