1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-07-09 05:18:17 -05:00

Convert fake locations to real locations

This commit is contained in:
Jbleezy
2024-01-08 16:36:21 -08:00
parent d510b4b67e
commit 2abfbb82c4
21 changed files with 91 additions and 125 deletions

View 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");
}

View File

@ -8,9 +8,6 @@
#include maps\mp\zm_alcatraz_grief_cellblock;
#include maps\mp\zm_alcatraz_classic;
#include scripts\zm\replaced\zm_alcatraz_grief_cellblock;
#include scripts\zm\locs\zm_prison_loc_docks;
init()
{
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("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")
{
scripts\zm\replaced\utility::add_struct_location_gamemode_func("zgrief", "cellblock", scripts\zm\locs\zm_prison_loc_docks::struct_init);
}
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("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);
}

View File

@ -14,11 +14,7 @@
precache()
{
if (getDvar("ui_zm_mapstartlocation_fake") == "docks")
{
scripts\zm\locs\zm_prison_loc_docks::precache();
return;
}
}
zgrief_preinit()
@ -108,12 +104,6 @@ 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");

View File

@ -57,49 +57,38 @@ wolf_spit_out_powerup()
if (!(isdefined(level.enable_magic) && level.enable_magic))
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")
{
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;
}
power_origin_struct = struct;
break;
}
}
if (getDvar("ui_zm_mapstartlocation_fake") == "docks")
if (!isdefined(power_origin_struct))
{
power_origin_struct = spawnStruct();
power_origin_struct.origin = (41.4695, 6096.17, -102.9326);
return;
}
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);
if (isdefined(power_ups[0]))

View File

@ -13,9 +13,6 @@
#include maps\mp\zombies\_zm_weapons;
#include maps\mp\zombies\_zm_unitrigger;
#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);
@ -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("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")
{
scripts\zm\replaced\utility::add_struct_location_gamemode_func("zgrief", "street", scripts\zm\locs\zm_buried_loc_maze::struct_init);
}
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("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)

View File

@ -14,12 +14,6 @@
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");
@ -51,12 +45,6 @@ precache()
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;

View File

@ -14,12 +14,6 @@
#include maps\mp\_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()
{
add_map_gamemode("zclassic", maps\mp\zm_transit::zclassic_preinit, undefined, undefined);