mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-20 20:20:30 -05:00
Buried: add Maze location
This commit is contained in:
@ -9,6 +9,7 @@
|
||||
#include maps\mp\zm_alcatraz_gamemodes;
|
||||
|
||||
#include scripts\zm\replaced\zm_alcatraz_grief_cellblock;
|
||||
#include scripts\zm\locs\zm_prison_loc_docks;
|
||||
|
||||
init()
|
||||
{
|
||||
|
@ -14,15 +14,24 @@
|
||||
#include maps\mp\zm_buried_gamemodes;
|
||||
|
||||
#include scripts\zm\replaced\zm_buried_grief_street;
|
||||
#include scripts\zm\locs\zm_buried_loc_maze;
|
||||
|
||||
init()
|
||||
{
|
||||
add_map_gamemode( "zclassic", maps\mp\zm_buried::zclassic_preinit, undefined, undefined );
|
||||
add_map_gamemode( "zcleansed", maps\mp\zm_buried::zcleansed_preinit, undefined, undefined );
|
||||
add_map_gamemode( "zgrief", maps\mp\zm_buried::zgrief_preinit, undefined, undefined );
|
||||
|
||||
add_map_location_gamemode( "zclassic", "processing", maps\mp\zm_buried_classic::precache, maps\mp\zm_buried_classic::main );
|
||||
|
||||
add_map_location_gamemode( "zcleansed", "street", maps\mp\zm_buried_turned_street::precache, maps\mp\zm_buried_turned_street::main );
|
||||
|
||||
add_map_location_gamemode( "zgrief", "street", scripts\zm\replaced\zm_buried_grief_street::precache, scripts\zm\replaced\zm_buried_grief_street::main );
|
||||
|
||||
if (getDvar("ui_zm_mapstartlocation_fake") == "maze")
|
||||
{
|
||||
scripts\zm\replaced\utility::add_struct_location_gamemode_func( "zgrief", "street", scripts\zm\locs\zm_buried_loc_maze::struct_init );
|
||||
}
|
||||
}
|
||||
|
||||
buildbuildable( buildable )
|
||||
|
@ -14,6 +14,12 @@
|
||||
|
||||
precache()
|
||||
{
|
||||
if (getDvar("ui_zm_mapstartlocation_fake") == "maze")
|
||||
{
|
||||
scripts\zm\locs\zm_buried_loc_maze::precache();
|
||||
return;
|
||||
}
|
||||
|
||||
precachemodel( "collision_wall_128x128x10_standard" );
|
||||
precachemodel( "collision_wall_256x256x10_standard" );
|
||||
precachemodel( "collision_wall_512x512x10_standard" );
|
||||
@ -43,26 +49,14 @@ precache()
|
||||
maps\mp\zombies\_zm_equip_headchopper::init( &"ZM_BURIED_EQ_HC_PHS", &"ZM_BURIED_EQ_HC_HTS" );
|
||||
}
|
||||
|
||||
street_treasure_chest_init()
|
||||
{
|
||||
start_chest = getstruct( "start_chest", "script_noteworthy" );
|
||||
court_chest = getstruct( "courtroom_chest1", "script_noteworthy" );
|
||||
jail_chest = getstruct( "jail_chest1", "script_noteworthy" );
|
||||
gun_chest = getstruct( "gunshop_chest", "script_noteworthy" );
|
||||
setdvar( "disableLookAtEntityLogic", 1 );
|
||||
level.chests = [];
|
||||
level.chests[ level.chests.size ] = start_chest;
|
||||
level.chests[ level.chests.size ] = court_chest;
|
||||
level.chests[ level.chests.size ] = jail_chest;
|
||||
level.chests[ level.chests.size ] = gun_chest;
|
||||
|
||||
chest_names = array("start_chest", "courtroom_chest1", "jail_chest1", "gunshop_chest");
|
||||
chest_name = random(chest_names);
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init( chest_name );
|
||||
}
|
||||
|
||||
main()
|
||||
{
|
||||
if (getDvar("ui_zm_mapstartlocation_fake") == "maze")
|
||||
{
|
||||
scripts\zm\locs\zm_buried_loc_maze::main();
|
||||
return;
|
||||
}
|
||||
|
||||
level.buildables_built[ "pap" ] = 1;
|
||||
level.equipment_team_pick_up = 1;
|
||||
level.zones["zone_mansion"].is_enabled = 0;
|
||||
@ -70,9 +64,7 @@ main()
|
||||
maps\mp\gametypes_zm\_zm_gametype::setup_standard_objects( "street" );
|
||||
street_treasure_chest_init();
|
||||
deleteslothbarricades();
|
||||
|
||||
disable_tunnels();
|
||||
|
||||
powerswitchstate( 1 );
|
||||
level.enemy_location_override_func = ::enemy_location_override;
|
||||
spawnmapcollision( "zm_collision_buried_street_grief" );
|
||||
@ -103,6 +95,24 @@ enemy_location_override( zombie, enemy )
|
||||
return location;
|
||||
}
|
||||
|
||||
street_treasure_chest_init()
|
||||
{
|
||||
start_chest = getstruct( "start_chest", "script_noteworthy" );
|
||||
court_chest = getstruct( "courtroom_chest1", "script_noteworthy" );
|
||||
jail_chest = getstruct( "jail_chest1", "script_noteworthy" );
|
||||
gun_chest = getstruct( "gunshop_chest", "script_noteworthy" );
|
||||
setdvar( "disableLookAtEntityLogic", 1 );
|
||||
level.chests = [];
|
||||
level.chests[ level.chests.size ] = start_chest;
|
||||
level.chests[ level.chests.size ] = court_chest;
|
||||
level.chests[ level.chests.size ] = jail_chest;
|
||||
level.chests[ level.chests.size ] = gun_chest;
|
||||
|
||||
chest_names = array("start_chest", "courtroom_chest1", "jail_chest1", "gunshop_chest");
|
||||
chest_name = random(chest_names);
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init( chest_name );
|
||||
}
|
||||
|
||||
builddynamicwallbuys()
|
||||
{
|
||||
builddynamicwallbuy( "morgue", "pdw57_zm" );
|
||||
|
Reference in New Issue
Block a user