mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 23:27:57 -05:00
Tranzit: add Mystery Box at Tunnel and Cornfield
This commit is contained in:
@ -216,7 +216,18 @@ spawn_mystery_box_blocks_and_collision()
|
||||
continue;
|
||||
}
|
||||
|
||||
if (level.script == "zm_highrise")
|
||||
if (level.script == "zm_transit")
|
||||
{
|
||||
if (chest.script_noteworthy == "tunnel_chest")
|
||||
{
|
||||
chests_to_spawn_ents[chests_to_spawn_ents.size] = chest;
|
||||
}
|
||||
else if (chest.script_noteworthy == "cornfield_chest")
|
||||
{
|
||||
chests_to_spawn_ents[chests_to_spawn_ents.size] = chest;
|
||||
}
|
||||
}
|
||||
else if (level.script == "zm_highrise")
|
||||
{
|
||||
if (chest.script_noteworthy == "gb1_chest")
|
||||
{
|
||||
|
@ -81,40 +81,26 @@ struct_init()
|
||||
|
||||
precache()
|
||||
{
|
||||
start_chest_zbarrier = getEnt("start_chest_zbarrier", "script_noteworthy");
|
||||
start_chest_zbarrier.origin = (13487, 33, -182);
|
||||
start_chest_zbarrier.angles = (0, 90, 0);
|
||||
start_chest = spawnStruct();
|
||||
start_chest.origin = start_chest_zbarrier.origin;
|
||||
start_chest.angles = start_chest_zbarrier.angles;
|
||||
start_chest.script_noteworthy = "start_chest";
|
||||
start_chest.zombie_cost = 950;
|
||||
collision = spawn("script_model", start_chest_zbarrier.origin + (0, 0, 64), 1);
|
||||
collision.angles = start_chest_zbarrier.angles;
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
collision = spawn("script_model", start_chest_zbarrier.origin + (0, -32, 64), 1);
|
||||
collision.angles = start_chest_zbarrier.angles;
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
collision = spawn("script_model", start_chest_zbarrier.origin + (0, 32, 64), 1);
|
||||
collision.angles = start_chest_zbarrier.angles;
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
|
||||
level.chests = [];
|
||||
level.chests[0] = start_chest;
|
||||
}
|
||||
|
||||
main()
|
||||
{
|
||||
treasure_chest_init();
|
||||
init_barriers();
|
||||
disable_zombie_spawn_locations();
|
||||
setup_standard_objects("cornfield");
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init(random(array("start_chest")));
|
||||
scripts\zm\locs\loc_common::init();
|
||||
}
|
||||
|
||||
treasure_chest_init()
|
||||
{
|
||||
chest = getstruct("cornfield_chest", "script_noteworthy");
|
||||
level.chests = [];
|
||||
level.chests[0] = chest;
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init("cornfield_chest");
|
||||
}
|
||||
|
||||
init_barriers()
|
||||
{
|
||||
model = spawn("script_model", (10176.5, -14.8391, -221.988), 1);
|
||||
|
@ -146,9 +146,9 @@ main()
|
||||
|
||||
treasure_chest_init()
|
||||
{
|
||||
chests = getstructarray("treasure_chest_use", "targetname");
|
||||
chest = getstruct("start_chest", "script_noteworthy");
|
||||
level.chests = [];
|
||||
level.chests[0] = chests[3];
|
||||
level.chests[0] = chest;
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init("start_chest");
|
||||
}
|
||||
|
||||
|
@ -91,9 +91,9 @@ main()
|
||||
|
||||
treasure_chest_init()
|
||||
{
|
||||
chests = getstructarray("treasure_chest_use", "targetname");
|
||||
chest = getstruct("pow_chest", "script_noteworthy");
|
||||
level.chests = [];
|
||||
level.chests[0] = chests[2];
|
||||
level.chests[0] = chest;
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init("pow_chest");
|
||||
}
|
||||
|
||||
|
@ -30,39 +30,25 @@ struct_init()
|
||||
|
||||
precache()
|
||||
{
|
||||
start_chest_zbarrier = getEnt("start_chest_zbarrier", "script_noteworthy");
|
||||
start_chest_zbarrier.origin = (-10803, -1897, 196);
|
||||
start_chest_zbarrier.angles = (0, 89, 0);
|
||||
start_chest = spawnStruct();
|
||||
start_chest.origin = start_chest_zbarrier.origin;
|
||||
start_chest.angles = start_chest_zbarrier.angles;
|
||||
start_chest.script_noteworthy = "start_chest";
|
||||
start_chest.zombie_cost = 950;
|
||||
collision = spawn("script_model", start_chest_zbarrier.origin + (0, 0, 64), 1);
|
||||
collision.angles = start_chest_zbarrier.angles;
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
collision = spawn("script_model", start_chest_zbarrier.origin + (0, -32, 64), 1);
|
||||
collision.angles = start_chest_zbarrier.angles;
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
collision = spawn("script_model", start_chest_zbarrier.origin + (0, 32, 64), 1);
|
||||
collision.angles = start_chest_zbarrier.angles;
|
||||
collision setmodel("collision_clip_32x32x128");
|
||||
collision disconnectpaths();
|
||||
|
||||
level.chests = [];
|
||||
level.chests[0] = start_chest;
|
||||
}
|
||||
|
||||
main()
|
||||
{
|
||||
treasure_chest_init();
|
||||
init_barriers();
|
||||
disable_zombie_spawn_locations();
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init(random(array("start_chest")));
|
||||
scripts\zm\locs\loc_common::init();
|
||||
}
|
||||
|
||||
treasure_chest_init()
|
||||
{
|
||||
chest = getstruct("tunnel_chest", "script_noteworthy");
|
||||
level.chests = [];
|
||||
level.chests[0] = chest;
|
||||
maps\mp\zombies\_zm_magicbox::treasure_chest_init("tunnel_chest");
|
||||
}
|
||||
|
||||
init_barriers()
|
||||
{
|
||||
origin = (-11270, -500, 255);
|
||||
|
Reference in New Issue
Block a user