1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-07-05 19:38:30 -05:00

Buried: add buildable took hint string

Buildables: fix took hint string
Buildables: fix other triggers being disabled when all buildables were built
Optimize buildable code
This commit is contained in:
Jbleezy
2023-03-06 21:05:43 -08:00
parent 50fff6466f
commit a89e5ef5fd
5 changed files with 80 additions and 234 deletions

View File

@ -50,16 +50,12 @@ init()
level.check_for_valid_spawn_near_team_callback = ::zgrief_respawn_override;
}
level.zombie_buildables["turbine"].bought = &"ZOMBIE_BUILD_PIECE_HAVE_ONE";
level.zombie_buildables["springpad_zm"].bought = &"ZOMBIE_BUILD_PIECE_HAVE_ONE";
level.zombie_buildables["subwoofer_zm"].bought = &"ZOMBIE_BUILD_PIECE_HAVE_ONE";
level.zombie_buildables["headchopper_zm"].bought = &"ZOMBIE_BUILD_PIECE_HAVE_ONE";
turn_power_on();
deleteslothbarricades();
add_jug_collision();
level thread update_buildable_stubs();
level thread enable_fountain_transport();
level thread disable_ghost_free_perk_on_damage();
}
@ -244,6 +240,21 @@ deleteslothbarricades()
array_thread( sloth_trigs, ::self_delete );
}
update_buildable_stubs()
{
flag_wait( "initial_blackscreen_passed" );
wait 1;
foreach (stub in level.buildablepools["buried"].stubs)
{
if (isDefined(level.zombie_buildables[stub.equipname]))
{
level.zombie_buildables[stub.equipname].bought = "Took " + stub scripts\zm\_zm_reimagined::get_equipment_display_name();
}
}
}
enable_fountain_transport()
{
if(!(is_classic() && level.scr_zm_map_start_location == "processing"))