mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-07-01 09:30:08 -05:00
MOTD: add Docks location
This commit is contained in:
@ -13,8 +13,16 @@
|
||||
init()
|
||||
{
|
||||
level.custom_vending_precaching = maps\mp\zm_prison::custom_vending_precaching;
|
||||
|
||||
add_map_gamemode( "zclassic", maps\mp\zm_prison::zclassic_preinit, undefined, undefined );
|
||||
add_map_gamemode( "zgrief", scripts\zm\replaced\zm_alcatraz_grief_cellblock::zgrief_preinit, undefined, undefined );
|
||||
|
||||
add_map_location_gamemode( "zclassic", "prison", maps\mp\zm_alcatraz_classic::precache, maps\mp\zm_alcatraz_classic::main );
|
||||
|
||||
add_map_location_gamemode( "zgrief", "cellblock", scripts\zm\replaced\zm_alcatraz_grief_cellblock::precache, scripts\zm\replaced\zm_alcatraz_grief_cellblock::main );
|
||||
|
||||
if (getDvar("ui_zm_mapstartlocation_fake") == "docks")
|
||||
{
|
||||
scripts\zm\replaced\utility::add_struct_location_gamemode_func( "zgrief", "cellblock", scripts\zm\locs\zm_prison_loc_docks::struct_init );
|
||||
}
|
||||
}
|
@ -14,7 +14,11 @@
|
||||
|
||||
precache()
|
||||
{
|
||||
|
||||
if (getDvar("ui_zm_mapstartlocation_fake") == "docks")
|
||||
{
|
||||
scripts\zm\locs\zm_prison_loc_docks::precache();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
zgrief_preinit()
|
||||
@ -99,6 +103,12 @@ grief_treasure_chest_init()
|
||||
|
||||
main()
|
||||
{
|
||||
if (getDvar("ui_zm_mapstartlocation_fake") == "docks")
|
||||
{
|
||||
scripts\zm\locs\zm_prison_loc_docks::main();
|
||||
return;
|
||||
}
|
||||
|
||||
maps\mp\gametypes_zm\_zm_gametype::setup_standard_objects( "cellblock" );
|
||||
grief_treasure_chest_init();
|
||||
precacheshader( "zm_al_wth_zombie" );
|
||||
|
@ -93,6 +93,12 @@ wolf_spit_out_powerup()
|
||||
}
|
||||
}
|
||||
|
||||
if (level.scr_zm_map_start_location == "docks")
|
||||
{
|
||||
power_origin_struct = spawnStruct();
|
||||
power_origin_struct.origin = ( 41.4695, 6096.17, -102.9326 );
|
||||
}
|
||||
|
||||
spawn_infinite_powerup_drop( power_origin_struct.origin, level.zombie_powerup_array[level.zombie_powerup_index] );
|
||||
power_ups = get_array_of_closest( power_origin_struct.origin, level.active_powerups, undefined, undefined, 100 );
|
||||
|
||||
|
Reference in New Issue
Block a user