mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-08 22:31:36 -05:00
Convert fake locations to real locations
This commit is contained in:
parent
d510b4b67e
commit
2abfbb82c4
@ -15953,12 +15953,20 @@
|
|||||||
"guid" "4966C5A8"
|
"guid" "4966C5A8"
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
"script_string" "cellblock"
|
||||||
"classname" "script_struct"
|
"classname" "script_struct"
|
||||||
"targetname" "wolf_puke_powerup_origin"
|
"targetname" "wolf_puke_powerup_origin"
|
||||||
"origin" "880 9680 1312"
|
"origin" "880 9680 1312"
|
||||||
"guid" "E985C3B5"
|
"guid" "E985C3B5"
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
"script_string" "docks"
|
||||||
|
"classname" "script_struct"
|
||||||
|
"targetname" "wolf_puke_powerup_origin"
|
||||||
|
"origin" "41 6096 -103"
|
||||||
|
"guid" "E985C3B5"
|
||||||
|
}
|
||||||
|
{
|
||||||
"model" "*136"
|
"model" "*136"
|
||||||
"origin" "19 6252 129"
|
"origin" "19 6252 129"
|
||||||
"classname" "trigger_hurt"
|
"classname" "trigger_hurt"
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
#include common_scripts\utility;
|
#include common_scripts\utility;
|
||||||
#include maps\mp\_utility;
|
#include maps\mp\_utility;
|
||||||
#include maps\mp\zombies\_zm_zonemgr;
|
#include maps\mp\zombies\_zm_zonemgr;
|
||||||
#include scripts\zm\locs\loc_common;
|
|
||||||
|
|
||||||
struct_init()
|
struct_init()
|
||||||
{
|
{
|
||||||
@ -88,8 +87,6 @@ struct_init()
|
|||||||
{
|
{
|
||||||
if (isDefined(initial_spawn.script_string) && isSubStr(initial_spawn.script_string, "zgrief_maze"))
|
if (isDefined(initial_spawn.script_string) && isSubStr(initial_spawn.script_string, "zgrief_maze"))
|
||||||
{
|
{
|
||||||
initial_spawn.script_string = "zgrief_street";
|
|
||||||
|
|
||||||
initial_spawns[initial_spawns.size] = initial_spawn;
|
initial_spawns[initial_spawns.size] = initial_spawn;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -141,15 +138,15 @@ struct_init()
|
|||||||
intermission_cam.origin = (3694, 569, 253);
|
intermission_cam.origin = (3694, 569, 253);
|
||||||
intermission_cam.angles = (30, 0, 0);
|
intermission_cam.angles = (30, 0, 0);
|
||||||
intermission_cam.targetname = "intermission";
|
intermission_cam.targetname = "intermission";
|
||||||
intermission_cam.script_string = "street";
|
intermission_cam.script_string = "maze";
|
||||||
intermission_cam.speed = 30;
|
intermission_cam.speed = 30;
|
||||||
intermission_cam.target = "intermission_street_end";
|
intermission_cam.target = "intermission_maze_end";
|
||||||
scripts\zm\replaced\utility::add_struct(intermission_cam);
|
scripts\zm\replaced\utility::add_struct(intermission_cam);
|
||||||
|
|
||||||
intermission_cam_end = spawnStruct();
|
intermission_cam_end = spawnStruct();
|
||||||
intermission_cam_end.origin = (5856, 569, 253);
|
intermission_cam_end.origin = (5856, 569, 253);
|
||||||
intermission_cam_end.angles = (30, 0, 0);
|
intermission_cam_end.angles = (30, 0, 0);
|
||||||
intermission_cam_end.targetname = "intermission_street_end";
|
intermission_cam_end.targetname = "intermission_maze_end";
|
||||||
scripts\zm\replaced\utility::add_struct(intermission_cam_end);
|
scripts\zm\replaced\utility::add_struct(intermission_cam_end);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
#include maps\mp\_utility;
|
#include maps\mp\_utility;
|
||||||
#include maps\mp\zm_prison;
|
#include maps\mp\zm_prison;
|
||||||
#include maps\mp\zombies\_zm_zonemgr;
|
#include maps\mp\zombies\_zm_zonemgr;
|
||||||
#include scripts\zm\locs\loc_common;
|
|
||||||
|
|
||||||
struct_init()
|
struct_init()
|
||||||
{
|
{
|
||||||
@ -69,15 +68,15 @@ struct_init()
|
|||||||
intermission_cam.origin = (402, 6197, 142);
|
intermission_cam.origin = (402, 6197, 142);
|
||||||
intermission_cam.angles = (0, 190, 0);
|
intermission_cam.angles = (0, 190, 0);
|
||||||
intermission_cam.targetname = "intermission";
|
intermission_cam.targetname = "intermission";
|
||||||
intermission_cam.script_string = "cellblock";
|
intermission_cam.script_string = "docks";
|
||||||
intermission_cam.speed = 30;
|
intermission_cam.speed = 30;
|
||||||
intermission_cam.target = "intermission_cellblock_end";
|
intermission_cam.target = "intermission_docks_end";
|
||||||
scripts\zm\replaced\utility::add_struct(intermission_cam);
|
scripts\zm\replaced\utility::add_struct(intermission_cam);
|
||||||
|
|
||||||
intermission_cam_end = spawnStruct();
|
intermission_cam_end = spawnStruct();
|
||||||
intermission_cam_end.origin = (-1043, 5931, -47);
|
intermission_cam_end.origin = (-1043, 5931, -47);
|
||||||
intermission_cam_end.angles = (0, 190, 0);
|
intermission_cam_end.angles = (0, 190, 0);
|
||||||
intermission_cam_end.targetname = "intermission_cellblock_end";
|
intermission_cam_end.targetname = "intermission_docks_end";
|
||||||
scripts\zm\replaced\utility::add_struct(intermission_cam_end);
|
scripts\zm\replaced\utility::add_struct(intermission_cam_end);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,9 +5,6 @@
|
|||||||
#include maps\mp\zombies\_zm;
|
#include maps\mp\zombies\_zm;
|
||||||
#include maps\mp\zombies\_zm_zonemgr;
|
#include maps\mp\zombies\_zm_zonemgr;
|
||||||
|
|
||||||
#include scripts\zm\replaced\utility;
|
|
||||||
#include scripts\zm\locs\loc_common;
|
|
||||||
|
|
||||||
struct_init()
|
struct_init()
|
||||||
{
|
{
|
||||||
scripts\zm\replaced\utility::register_perk_struct("", "", (0, 0, 0), (0, 0, 0)); // need this for pap to work
|
scripts\zm\replaced\utility::register_perk_struct("", "", (0, 0, 0), (0, 0, 0)); // need this for pap to work
|
||||||
|
@ -4,9 +4,6 @@
|
|||||||
#include maps\mp\_utility;
|
#include maps\mp\_utility;
|
||||||
#include maps\mp\zombies\_zm;
|
#include maps\mp\zombies\_zm;
|
||||||
|
|
||||||
#include scripts\zm\replaced\utility;
|
|
||||||
#include scripts\zm\locs\loc_common;
|
|
||||||
|
|
||||||
struct_init()
|
struct_init()
|
||||||
{
|
{
|
||||||
scripts\zm\replaced\utility::register_perk_struct("specialty_armorvest", "zombie_vending_jugg", (-3563, -7196, -59), (0, 0, 0));
|
scripts\zm\replaced\utility::register_perk_struct("specialty_armorvest", "zombie_vending_jugg", (-3563, -7196, -59), (0, 0, 0));
|
||||||
|
@ -5,9 +5,6 @@
|
|||||||
#include maps\mp\zombies\_zm;
|
#include maps\mp\zombies\_zm;
|
||||||
#include maps\mp\zombies\_zm_zonemgr;
|
#include maps\mp\zombies\_zm_zonemgr;
|
||||||
|
|
||||||
#include scripts\zm\replaced\utility;
|
|
||||||
#include scripts\zm\locs\loc_common;
|
|
||||||
|
|
||||||
struct_init()
|
struct_init()
|
||||||
{
|
{
|
||||||
scripts\zm\replaced\utility::register_perk_struct("specialty_armorvest", "zombie_vending_jugg", (10952, 8055, -565), (0, 270, 0));
|
scripts\zm\replaced\utility::register_perk_struct("specialty_armorvest", "zombie_vending_jugg", (10952, 8055, -565), (0, 270, 0));
|
||||||
|
@ -5,9 +5,6 @@
|
|||||||
#include maps\mp\zombies\_zm;
|
#include maps\mp\zombies\_zm;
|
||||||
#include maps\mp\zombies\_zm_zonemgr;
|
#include maps\mp\zombies\_zm_zonemgr;
|
||||||
|
|
||||||
#include scripts\zm\replaced\utility;
|
|
||||||
#include scripts\zm\locs\loc_common;
|
|
||||||
|
|
||||||
struct_init()
|
struct_init()
|
||||||
{
|
{
|
||||||
scripts\zm\replaced\utility::register_perk_struct("specialty_armorvest", "zombie_vending_jugg", (-11541, -2630, 194), (0, -180, 0));
|
scripts\zm\replaced\utility::register_perk_struct("specialty_armorvest", "zombie_vending_jugg", (-11541, -2630, 194), (0, -180, 0));
|
||||||
|
16
scripts/zm/replaced/zgrief.csc
Normal file
16
scripts/zm/replaced/zgrief.csc
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
onprecachegametype()
|
||||||
|
{
|
||||||
|
if (getdvar("mapname") == "zm_prison")
|
||||||
|
{
|
||||||
|
setteamreviveicon("allies", "waypoint_revive_guards");
|
||||||
|
setteamreviveicon("axis", "waypoint_revive_inmates");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
setteamreviveicon("allies", "waypoint_revive_cdc_zm");
|
||||||
|
setteamreviveicon("axis", "waypoint_revive_cia_zm");
|
||||||
|
}
|
||||||
|
|
||||||
|
level._effect["meat_stink_camera"] = loadfx("maps/zombie/fx_zmb_meat_stink_camera");
|
||||||
|
level._effect["meat_stink_torso"] = loadfx("maps/zombie/fx_zmb_meat_stink_torso");
|
||||||
|
}
|
@ -8,9 +8,6 @@
|
|||||||
#include maps\mp\zm_alcatraz_grief_cellblock;
|
#include maps\mp\zm_alcatraz_grief_cellblock;
|
||||||
#include maps\mp\zm_alcatraz_classic;
|
#include maps\mp\zm_alcatraz_classic;
|
||||||
|
|
||||||
#include scripts\zm\replaced\zm_alcatraz_grief_cellblock;
|
|
||||||
#include scripts\zm\locs\zm_prison_loc_docks;
|
|
||||||
|
|
||||||
init()
|
init()
|
||||||
{
|
{
|
||||||
level.custom_vending_precaching = maps\mp\zm_prison::custom_vending_precaching;
|
level.custom_vending_precaching = maps\mp\zm_prison::custom_vending_precaching;
|
||||||
@ -20,10 +17,12 @@ init()
|
|||||||
|
|
||||||
add_map_location_gamemode("zclassic", "prison", maps\mp\zm_alcatraz_classic::precache, maps\mp\zm_alcatraz_classic::main);
|
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);
|
add_map_location_gamemode("zstandard", "cellblock", scripts\zm\replaced\zm_alcatraz_grief_cellblock::precache, scripts\zm\replaced\zm_alcatraz_grief_cellblock::main);
|
||||||
|
add_map_location_gamemode("zstandard", "docks", scripts\zm\locs\zm_prison_loc_docks::precache, scripts\zm\locs\zm_prison_loc_docks::main);
|
||||||
|
|
||||||
if (getDvar("ui_zm_mapstartlocation_fake") == "docks")
|
add_map_location_gamemode("zgrief", "cellblock", scripts\zm\replaced\zm_alcatraz_grief_cellblock::precache, scripts\zm\replaced\zm_alcatraz_grief_cellblock::main);
|
||||||
{
|
add_map_location_gamemode("zgrief", "docks", scripts\zm\locs\zm_prison_loc_docks::precache, scripts\zm\locs\zm_prison_loc_docks::main);
|
||||||
scripts\zm\replaced\utility::add_struct_location_gamemode_func("zgrief", "cellblock", scripts\zm\locs\zm_prison_loc_docks::struct_init);
|
|
||||||
}
|
scripts\zm\replaced\utility::add_struct_location_gamemode_func("zstandard", "docks", scripts\zm\locs\zm_prison_loc_docks::struct_init);
|
||||||
|
scripts\zm\replaced\utility::add_struct_location_gamemode_func("zgrief", "docks", scripts\zm\locs\zm_prison_loc_docks::struct_init);
|
||||||
}
|
}
|
@ -14,11 +14,7 @@
|
|||||||
|
|
||||||
precache()
|
precache()
|
||||||
{
|
{
|
||||||
if (getDvar("ui_zm_mapstartlocation_fake") == "docks")
|
|
||||||
{
|
|
||||||
scripts\zm\locs\zm_prison_loc_docks::precache();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
zgrief_preinit()
|
zgrief_preinit()
|
||||||
@ -108,12 +104,6 @@ grief_treasure_chest_init()
|
|||||||
|
|
||||||
main()
|
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");
|
maps\mp\gametypes_zm\_zm_gametype::setup_standard_objects("cellblock");
|
||||||
grief_treasure_chest_init();
|
grief_treasure_chest_init();
|
||||||
precacheshader("zm_al_wth_zombie");
|
precacheshader("zm_al_wth_zombie");
|
||||||
|
@ -57,49 +57,38 @@ wolf_spit_out_powerup()
|
|||||||
if (!(isdefined(level.enable_magic) && level.enable_magic))
|
if (!(isdefined(level.enable_magic) && level.enable_magic))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
power_origin_struct = getstruct("wolf_puke_powerup_origin", "targetname");
|
power_origin_structs = getstructarray("wolf_puke_powerup_origin", "targetname");
|
||||||
|
power_origin_struct = undefined;
|
||||||
|
|
||||||
if (level.scr_zm_ui_gametype_obj != "zmeat" && randomint(100) < 20)
|
foreach (struct in power_origin_structs)
|
||||||
{
|
{
|
||||||
for (i = 0; i < level.zombie_powerup_array.size; i++)
|
if (isdefined(struct.script_string) && struct.script_string == level.scr_zm_map_start_location)
|
||||||
{
|
{
|
||||||
if (level.zombie_powerup_array[i] == "meat_stink")
|
power_origin_struct = struct;
|
||||||
{
|
|
||||||
level.zombie_powerup_index = i;
|
|
||||||
found = 1;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
while (true)
|
|
||||||
{
|
|
||||||
level.zombie_powerup_index = randomint(level.zombie_powerup_array.size);
|
|
||||||
|
|
||||||
if (level.zombie_powerup_array[level.zombie_powerup_index] == "nuke")
|
|
||||||
{
|
|
||||||
wait 0.05;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (level.scr_zm_ui_gametype_obj == "zmeat" && level.zombie_powerup_array[level.zombie_powerup_index] == "meat_stink")
|
|
||||||
{
|
|
||||||
wait 0.05;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getDvar("ui_zm_mapstartlocation_fake") == "docks")
|
if (!isdefined(power_origin_struct))
|
||||||
{
|
{
|
||||||
power_origin_struct = spawnStruct();
|
return;
|
||||||
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]);
|
powerup_array = array_randomize(level.zombie_powerup_array);
|
||||||
|
wolf_powerup = undefined;
|
||||||
|
|
||||||
|
foreach (powerup in powerup_array)
|
||||||
|
{
|
||||||
|
if (powerup == "meat_stink" && level.scr_zm_ui_gametype_obj != "zmeat")
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
wolf_powerup = powerup;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
spawn_infinite_powerup_drop(power_origin_struct.origin, wolf_powerup);
|
||||||
power_ups = get_array_of_closest(power_origin_struct.origin, level.active_powerups, undefined, undefined, 100);
|
power_ups = get_array_of_closest(power_origin_struct.origin, level.active_powerups, undefined, undefined, 100);
|
||||||
|
|
||||||
if (isdefined(power_ups[0]))
|
if (isdefined(power_ups[0]))
|
||||||
|
@ -13,9 +13,6 @@
|
|||||||
#include maps\mp\zombies\_zm_weapons;
|
#include maps\mp\zombies\_zm_weapons;
|
||||||
#include maps\mp\zombies\_zm_unitrigger;
|
#include maps\mp\zombies\_zm_unitrigger;
|
||||||
|
|
||||||
#include scripts\zm\replaced\zm_buried_grief_street;
|
|
||||||
#include scripts\zm\locs\zm_buried_loc_maze;
|
|
||||||
|
|
||||||
init()
|
init()
|
||||||
{
|
{
|
||||||
add_map_gamemode("zclassic", maps\mp\zm_buried::zclassic_preinit, undefined, undefined);
|
add_map_gamemode("zclassic", maps\mp\zm_buried::zclassic_preinit, undefined, undefined);
|
||||||
@ -26,12 +23,14 @@ init()
|
|||||||
|
|
||||||
add_map_location_gamemode("zcleansed", "street", maps\mp\zm_buried_turned_street::precache, maps\mp\zm_buried_turned_street::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);
|
add_map_location_gamemode("zstandard", "street", scripts\zm\replaced\zm_buried_grief_street::precache, scripts\zm\replaced\zm_buried_grief_street::main);
|
||||||
|
add_map_location_gamemode("zstandard", "maze", scripts\zm\locs\zm_buried_loc_maze::precache, scripts\zm\locs\zm_buried_loc_maze::main);
|
||||||
|
|
||||||
if (getDvar("ui_zm_mapstartlocation_fake") == "maze")
|
add_map_location_gamemode("zgrief", "street", scripts\zm\replaced\zm_buried_grief_street::precache, scripts\zm\replaced\zm_buried_grief_street::main);
|
||||||
{
|
add_map_location_gamemode("zgrief", "maze", scripts\zm\locs\zm_buried_loc_maze::precache, scripts\zm\locs\zm_buried_loc_maze::main);
|
||||||
scripts\zm\replaced\utility::add_struct_location_gamemode_func("zgrief", "street", scripts\zm\locs\zm_buried_loc_maze::struct_init);
|
|
||||||
}
|
scripts\zm\replaced\utility::add_struct_location_gamemode_func("zstandard", "maze", scripts\zm\locs\zm_buried_loc_maze::struct_init);
|
||||||
|
scripts\zm\replaced\utility::add_struct_location_gamemode_func("zgrief", "maze", scripts\zm\locs\zm_buried_loc_maze::struct_init);
|
||||||
}
|
}
|
||||||
|
|
||||||
buildbuildable(buildable)
|
buildbuildable(buildable)
|
||||||
|
@ -14,12 +14,6 @@
|
|||||||
|
|
||||||
precache()
|
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_128x128x10_standard");
|
||||||
precachemodel("collision_wall_256x256x10_standard");
|
precachemodel("collision_wall_256x256x10_standard");
|
||||||
precachemodel("collision_wall_512x512x10_standard");
|
precachemodel("collision_wall_512x512x10_standard");
|
||||||
@ -51,12 +45,6 @@ precache()
|
|||||||
|
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
if (getDvar("ui_zm_mapstartlocation_fake") == "maze")
|
|
||||||
{
|
|
||||||
scripts\zm\locs\zm_buried_loc_maze::main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
level.buildables_built["pap"] = 1;
|
level.buildables_built["pap"] = 1;
|
||||||
level.equipment_team_pick_up = 1;
|
level.equipment_team_pick_up = 1;
|
||||||
level.zones["zone_mansion"].is_enabled = 0;
|
level.zones["zone_mansion"].is_enabled = 0;
|
||||||
|
@ -14,12 +14,6 @@
|
|||||||
#include maps\mp\_utility;
|
#include maps\mp\_utility;
|
||||||
#include common_scripts\utility;
|
#include common_scripts\utility;
|
||||||
|
|
||||||
#include scripts\zm\replaced\zm_transit_standard_station;
|
|
||||||
#include scripts\zm\replaced\zm_transit_grief_station;
|
|
||||||
#include scripts\zm\locs\zm_transit_loc_diner;
|
|
||||||
#include scripts\zm\locs\zm_transit_loc_power;
|
|
||||||
#include scripts\zm\locs\zm_transit_loc_tunnel;
|
|
||||||
|
|
||||||
init()
|
init()
|
||||||
{
|
{
|
||||||
add_map_gamemode("zclassic", maps\mp\zm_transit::zclassic_preinit, undefined, undefined);
|
add_map_gamemode("zclassic", maps\mp\zm_transit::zclassic_preinit, undefined, undefined);
|
||||||
|
7
scripts/zm/zgrief/zgrief_reimagined.csc
Normal file
7
scripts/zm/zgrief/zgrief_reimagined.csc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#include clientscripts\mp\_utility;
|
||||||
|
#include clientscripts\mp\zombies\_zm_utility;
|
||||||
|
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
replaceFunc(clientscripts\mp\gametypes\zgrief::onprecachegametype, scripts\zm\replaced\zgrief::onprecachegametype);
|
||||||
|
}
|
@ -2941,28 +2941,22 @@ containment_get_zones()
|
|||||||
{
|
{
|
||||||
if (level.scr_zm_map_start_location == "cellblock")
|
if (level.scr_zm_map_start_location == "cellblock")
|
||||||
{
|
{
|
||||||
if (getDvar("ui_zm_mapstartlocation_fake") == "docks")
|
containment_zones = array("zone_cellblock_west", "zone_cellblock_west_gondola", "zone_cellblock_west_barber", "zone_cellblock_east", "zone_start", "zone_library", "zone_cafeteria", "zone_warden_office");
|
||||||
{
|
}
|
||||||
containment_zones = array("zone_dock", "zone_dock_gondola", "zone_studio", "zone_citadel_basement_building");
|
else if (level.scr_zm_map_start_location == "docks")
|
||||||
}
|
{
|
||||||
else
|
containment_zones = array("zone_dock", "zone_dock_gondola", "zone_studio", "zone_citadel_basement_building");
|
||||||
{
|
|
||||||
containment_zones = array("zone_cellblock_west", "zone_cellblock_west_gondola", "zone_cellblock_west_barber", "zone_cellblock_east", "zone_start", "zone_library", "zone_cafeteria", "zone_warden_office");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (level.script == "zm_buried")
|
else if (level.script == "zm_buried")
|
||||||
{
|
{
|
||||||
if (level.scr_zm_map_start_location == "street")
|
if (level.scr_zm_map_start_location == "street")
|
||||||
{
|
{
|
||||||
if (getDvar("ui_zm_mapstartlocation_fake") == "maze")
|
containment_zones = array("zone_street_lightwest", "zone_street_darkwest", "zone_street_darkeast", "zone_stables", "zone_general_store", "zone_gun_store", "zone_underground_bar", "zone_underground_courthouse", "zone_toy_store", "zone_candy_store", "zone_street_fountain", "zone_church_main", "zone_mansion_lawn");
|
||||||
{
|
}
|
||||||
containment_zones = array("zone_maze", "zone_mansion_backyard", "zone_maze_staircase");
|
else if (level.scr_zm_map_start_location == "maze")
|
||||||
}
|
{
|
||||||
else
|
containment_zones = array("zone_maze", "zone_mansion_backyard", "zone_maze_staircase");
|
||||||
{
|
|
||||||
containment_zones = array("zone_street_lightwest", "zone_street_darkwest", "zone_street_darkeast", "zone_stables", "zone_general_store", "zone_gun_store", "zone_underground_bar", "zone_underground_courthouse", "zone_toy_store", "zone_candy_store", "zone_street_fountain", "zone_church_main", "zone_mansion_lawn");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ player_initial_spawn_override()
|
|||||||
{
|
{
|
||||||
initial_spawns = getstructarray("initial_spawn", "script_noteworthy");
|
initial_spawns = getstructarray("initial_spawn", "script_noteworthy");
|
||||||
|
|
||||||
if (level.scr_zm_map_start_location == "street" && getDvar("ui_zm_mapstartlocation_fake") != "maze")
|
if (level.scr_zm_map_start_location == "street")
|
||||||
{
|
{
|
||||||
// remove existing initial spawns
|
// remove existing initial spawns
|
||||||
level.struct_class_names["script_noteworthy"]["initial_spawn"] = [];
|
level.struct_class_names["script_noteworthy"]["initial_spawn"] = [];
|
||||||
|
@ -191,7 +191,7 @@ player_initial_spawn_override()
|
|||||||
initial_spawns = getstructarray("initial_spawn", "script_noteworthy");
|
initial_spawns = getstructarray("initial_spawn", "script_noteworthy");
|
||||||
remove_initial_spawns = [];
|
remove_initial_spawns = [];
|
||||||
|
|
||||||
if (level.scr_zm_map_start_location == "cellblock" && getDvar("ui_zm_mapstartlocation_fake") != "docks")
|
if (level.scr_zm_map_start_location == "cellblock")
|
||||||
{
|
{
|
||||||
foreach (initial_spawn in initial_spawns)
|
foreach (initial_spawn in initial_spawns)
|
||||||
{
|
{
|
||||||
|
@ -260,19 +260,15 @@ local function locationListSelectionClickedEventHandler( self, event )
|
|||||||
elseif location == "ZMUI_CELLBLOCK_CAPS" then
|
elseif location == "ZMUI_CELLBLOCK_CAPS" then
|
||||||
Engine.SetDvar("ui_mapname", "zm_prison")
|
Engine.SetDvar("ui_mapname", "zm_prison")
|
||||||
Engine.SetDvar("ui_zm_mapstartlocation", "cellblock")
|
Engine.SetDvar("ui_zm_mapstartlocation", "cellblock")
|
||||||
Engine.SetDvar("ui_zm_mapstartlocation_fake", "")
|
|
||||||
elseif location == "ZMUI_DOCKS_CAPS" then
|
elseif location == "ZMUI_DOCKS_CAPS" then
|
||||||
Engine.SetDvar("ui_mapname", "zm_prison")
|
Engine.SetDvar("ui_mapname", "zm_prison")
|
||||||
Engine.SetDvar("ui_zm_mapstartlocation", "cellblock")
|
Engine.SetDvar("ui_zm_mapstartlocation", "docks")
|
||||||
Engine.SetDvar("ui_zm_mapstartlocation_fake", "docks")
|
|
||||||
elseif location == "ZMUI_STREET_LOC_CAPS" then
|
elseif location == "ZMUI_STREET_LOC_CAPS" then
|
||||||
Engine.SetDvar("ui_mapname", "zm_buried")
|
Engine.SetDvar("ui_mapname", "zm_buried")
|
||||||
Engine.SetDvar("ui_zm_mapstartlocation", "street")
|
Engine.SetDvar("ui_zm_mapstartlocation", "street")
|
||||||
Engine.SetDvar("ui_zm_mapstartlocation_fake", "")
|
|
||||||
elseif location == "ZMUI_MAZE_CAPS" then
|
elseif location == "ZMUI_MAZE_CAPS" then
|
||||||
Engine.SetDvar("ui_mapname", "zm_buried")
|
Engine.SetDvar("ui_mapname", "zm_buried")
|
||||||
Engine.SetDvar("ui_zm_mapstartlocation", "street")
|
Engine.SetDvar("ui_zm_mapstartlocation", "maze")
|
||||||
Engine.SetDvar("ui_zm_mapstartlocation_fake", "maze")
|
|
||||||
elseif location == "ZMUI_TRENCHES_CAPS" then
|
elseif location == "ZMUI_TRENCHES_CAPS" then
|
||||||
-- TODO: set dvars when location is added
|
-- TODO: set dvars when location is added
|
||||||
elseif location == "ZMUI_EXCAVATION_SITE_CAPS" then
|
elseif location == "ZMUI_EXCAVATION_SITE_CAPS" then
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
script,scripts/zm/_zm_reimagined.csc
|
script,scripts/zm/_zm_reimagined.csc
|
||||||
script,scripts/zm/zm_buried/zm_buried_reimagined.csc
|
script,scripts/zm/zm_buried/zm_buried_reimagined.csc
|
||||||
|
script,scripts/zm/zgrief/zgrief_reimagined.csc
|
||||||
script,scripts/zm/replaced/_zm.csc
|
script,scripts/zm/replaced/_zm.csc
|
||||||
script,scripts/zm/replaced/_zm_weapons.csc
|
script,scripts/zm/replaced/_zm_weapons.csc
|
||||||
|
script,scripts/zm/replaced/zgrief.csc
|
Loading…
x
Reference in New Issue
Block a user