mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-07 13:49:33 -05:00
Encounter on Nuketown: add announcer vox
This commit is contained in:
parent
752ef919e1
commit
b602880a42
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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()
|
||||
|
@ -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);
|
||||
}
|
@ -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]]())
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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()
|
||||
|
@ -11,4 +11,15 @@ vox_plr_2_powerup_firesale_rich_2,raw\english\sound\vox\scripted\zmb\vox_plr_2_p
|
||||
vox_plr_3_powerup_firesale_rich_0,raw\english\sound\vox\scripted\zmb\vox_plr_3_powerup_firesale_d_0.SN50.pc.snd,,,,grp_voice,11653,11653,,125,1250,2250,default,default,allon,rev65,1,reject,8,oldest,32767,32767,,80,90,0,-1,,streamed,nonlooping,volume,-1,0,9257,,snp_voice,3d,0,37,50,46395,89,,no,no,none,0,,,,no,0,822242733,0,,yes,no,0,0,,yes,yes,bus_voice,
|
||||
vox_plr_3_powerup_firesale_rich_1,raw\english\sound\vox\scripted\zmb\vox_plr_3_powerup_firesale_d_1.SN50.pc.snd,,,,grp_voice,11653,11653,,125,1250,2250,default,default,allon,rev65,1,reject,8,oldest,32767,32767,,80,90,0,-1,,streamed,nonlooping,volume,-1,0,9257,,snp_voice,3d,0,37,50,46395,89,,no,no,none,0,,,,no,0,822242733,0,,yes,no,0,0,,yes,yes,bus_voice,
|
||||
vox_plr_3_powerup_firesale_rich_2,raw\english\sound\vox\scripted\zmb\vox_plr_3_powerup_firesale_d_2.SN50.pc.snd,,,,grp_voice,11653,11653,,125,1250,2250,default,default,allon,rev65,1,reject,8,oldest,32767,32767,,80,90,0,-1,,streamed,nonlooping,volume,-1,0,9257,,snp_voice,3d,0,37,50,46395,89,,no,no,none,0,,,,no,0,822242733,0,,yes,no,0,0,,yes,yes,bus_voice,
|
||||
vox_zmba_powerup_firesale_rich_0,devraw\english\sound\vox\scripted\zmc\vox_zmba_powerup_firesale_0.SN55.pc.snd,,,,grp_voice,10386,10386,,0,5000,5000,default,default,allon,allon,8,priority,8,oldest,32767,32767,,100,100,0,-1,,streamed,nonlooping,volume,-1,0,0,,snp_never_duck,2d,0,0,0,0,0,,no,yes,none,0,,,,no,0,822242733,0,,yes,no,0,0,,yes,yes,bus_voice,
|
||||
vox_zmba_powerup_firesale_rich_0,devraw\english\sound\vox\scripted\zmc\vox_zmba_powerup_firesale_0.SN55.pc.snd,,,,grp_voice,10386,10386,,0,5000,5000,default,default,allon,allon,8,priority,8,oldest,32767,32767,,100,100,0,-1,,streamed,nonlooping,volume,-1,0,0,,snp_never_duck,2d,0,0,0,0,0,,no,yes,none,0,,,,no,0,822242733,0,,yes,no,0,0,,yes,yes,bus_voice,
|
||||
vox_zmba_grief_1rivdown_rich_0,raw\english\sound\vox\scripted\zmc\vox_zmba_grief_1rivdown_0.SN55.pc.snd,,,,grp_voice,10386,10386,,0,5000,5000,default,default,allon,allon,8,priority,8,oldest,32767,32767,,100,100,0,-1,,streamed,nonlooping,volume,-1,0,0,,snp_never_duck,2d,0,0,0,0,0,,no,yes,none,0,,,,no,0,822242733,0,,yes,no,0,0,,yes,yes,bus_voice,
|
||||
vox_zmba_grief_1rivup_rich_0,raw\english\sound\vox\scripted\zmc\vox_zmba_grief_1rivup_0.SN55.pc.snd,,,,grp_voice,10386,10386,,0,5000,5000,default,default,allon,allon,8,priority,8,oldest,32767,32767,,100,100,0,-1,,streamed,nonlooping,volume,-1,0,0,,snp_never_duck,2d,0,0,0,0,0,,no,yes,none,0,,,,no,0,822242733,0,,yes,no,0,0,,yes,yes,bus_voice,
|
||||
vox_zmba_grief_2rivdown_rich_0,raw\english\sound\vox\scripted\zmc\vox_zmba_grief_2rivdown_0.SN55.pc.snd,,,,grp_voice,10386,10386,,0,5000,5000,default,default,allon,allon,8,priority,8,oldest,32767,32767,,100,100,0,-1,,streamed,nonlooping,volume,-1,0,0,,snp_never_duck,2d,0,0,0,0,0,,no,yes,none,0,,,,no,0,822242733,0,,yes,no,0,0,,yes,yes,bus_voice,
|
||||
vox_zmba_grief_2rivup_rich_0,raw\english\sound\vox\scripted\zmc\vox_zmba_grief_2rivup_0.SN55.pc.snd,,,,grp_voice,10386,10386,,0,5000,5000,default,default,allon,allon,8,priority,8,oldest,32767,32767,,100,100,0,-1,,streamed,nonlooping,volume,-1,0,0,,snp_never_duck,2d,0,0,0,0,0,,no,yes,none,0,,,,no,0,822242733,0,,yes,no,0,0,,yes,yes,bus_voice,
|
||||
vox_zmba_grief_3rivdown_rich_0,raw\english\sound\vox\scripted\zmc\vox_zmba_grief_3rivdown_0.SN55.pc.snd,,,,grp_voice,10386,10386,,0,5000,5000,default,default,allon,allon,8,priority,8,oldest,32767,32767,,100,100,0,-1,,streamed,nonlooping,volume,-1,0,0,,snp_never_duck,2d,0,0,0,0,0,,no,yes,none,0,,,,no,0,822242733,0,,yes,no,0,0,,yes,yes,bus_voice,
|
||||
vox_zmba_grief_3rivup_rich_0,raw\english\sound\vox\scripted\zmc\vox_zmba_grief_3rivup_0.SN55.pc.snd,,,,grp_voice,10386,10386,,0,5000,5000,default,default,allon,allon,8,priority,8,oldest,32767,32767,,100,100,0,-1,,streamed,nonlooping,volume,-1,0,0,,snp_never_duck,2d,0,0,0,0,0,,no,yes,none,0,,,,no,0,822242733,0,,yes,no,0,0,,yes,yes,bus_voice,
|
||||
vox_zmba_grief_intro_rich_0,raw\english\sound\vox\scripted\zmc\vox_zmba_grief_intro_0.SN55.pc.snd,,,,grp_voice,10386,10386,,0,5000,5000,default,default,allon,allon,8,priority,8,oldest,32767,32767,,100,100,0,-1,,streamed,nonlooping,volume,-1,0,0,,snp_never_duck,2d,0,0,0,0,0,,no,yes,none,0,,,,no,0,822242733,0,,yes,no,0,0,,yes,yes,bus_voice,
|
||||
vox_zmba_grief_lose_rich_0,raw\english\sound\vox\scripted\zmc\vox_zmba_grief_lose_0.SN55.pc.snd,,,,grp_voice,10386,10386,,0,5000,5000,default,default,allon,allon,8,priority,8,oldest,32767,32767,,100,100,0,-1,,streamed,nonlooping,volume,-1,0,0,,snp_never_duck,2d,0,0,0,0,0,,no,yes,none,0,,,,no,0,822242733,0,,yes,no,0,0,,yes,yes,bus_voice,
|
||||
vox_zmba_grief_restart_rich_0,raw\english\sound\vox\scripted\zmc\vox_zmba_grief_restart_0.SN55.pc.snd,,,,grp_voice,10386,10386,,0,5000,5000,default,default,allon,allon,8,priority,8,oldest,32767,32767,,100,100,0,-1,,streamed,nonlooping,volume,-1,0,0,,snp_never_duck,2d,0,0,0,0,0,,no,yes,none,0,,,,no,0,822242733,0,,yes,no,0,0,,yes,yes,bus_voice,
|
||||
vox_zmba_grief_solo_rich_0,raw\english\sound\vox\scripted\zmc\vox_zmba_grief_solo_0.SN55.pc.snd,,,,grp_voice,10386,10386,,0,5000,5000,default,default,allon,allon,8,priority,8,oldest,32767,32767,,100,100,0,-1,,streamed,nonlooping,volume,-1,0,0,,snp_never_duck,2d,0,0,0,0,0,,no,yes,none,0,,,,no,0,822242733,0,,yes,no,0,0,,yes,yes,bus_voice,
|
||||
vox_zmba_grief_win_rich_0,raw\english\sound\vox\scripted\zmc\vox_zmba_grief_win_0.SN55.pc.snd,,,,grp_voice,10386,10386,,0,5000,5000,default,default,allon,allon,8,priority,8,oldest,32767,32767,,100,100,0,-1,,streamed,nonlooping,volume,-1,0,0,,snp_never_duck,2d,0,0,0,0,0,,no,yes,none,0,,,,no,0,822242733,0,,yes,no,0,0,,yes,yes,bus_voice,
|
|
Loading…
x
Reference in New Issue
Block a user