diff --git a/scripts/zm/replaced/zm_alcatraz_gamemodes.gsc b/scripts/zm/replaced/zm_alcatraz_gamemodes.gsc new file mode 100644 index 00000000..ad6f5d7d --- /dev/null +++ b/scripts/zm/replaced/zm_alcatraz_gamemodes.gsc @@ -0,0 +1,20 @@ +#include common_scripts\utility; +#include maps\mp\_utility; +#include maps\mp\zombies\_zm_utility; +#include maps\mp\zombies\_zm_game_module; +#include maps\mp\gametypes_zm\_zm_gametype; +#include maps\mp\zm_prison; +#include maps\mp\zm_alcatraz_grief_cellblock; +#include maps\mp\zm_alcatraz_classic; +#include maps\mp\zm_alcatraz_gamemodes; + +#include scripts\zm\replaced\zm_alcatraz_grief_cellblock; + +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", maps\mp\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 ); +} \ No newline at end of file diff --git a/maps/mp/zm_alcatraz_grief_cellblock.gsc b/scripts/zm/replaced/zm_alcatraz_grief_cellblock.gsc similarity index 100% rename from maps/mp/zm_alcatraz_grief_cellblock.gsc rename to scripts/zm/replaced/zm_alcatraz_grief_cellblock.gsc diff --git a/scripts/zm/replaced/zm_buried_gamemodes.gsc b/scripts/zm/replaced/zm_buried_gamemodes.gsc index a161a23e..6f3e45e8 100644 --- a/scripts/zm/replaced/zm_buried_gamemodes.gsc +++ b/scripts/zm/replaced/zm_buried_gamemodes.gsc @@ -13,6 +13,18 @@ #include maps\mp\zombies\_zm_unitrigger; #include maps\mp\zm_buried_gamemodes; +#include scripts\zm\replaced\zm_buried_grief_street; + +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 ); +} + buildbuildable( buildable ) { player = get_players()[0]; diff --git a/maps/mp/zm_buried_grief_street.gsc b/scripts/zm/replaced/zm_buried_grief_street.gsc similarity index 100% rename from maps/mp/zm_buried_grief_street.gsc rename to scripts/zm/replaced/zm_buried_grief_street.gsc diff --git a/scripts/zm/replaced/zm_transit_gamemodes.gsc b/scripts/zm/replaced/zm_transit_gamemodes.gsc index d140fd44..143c15d8 100644 --- a/scripts/zm/replaced/zm_transit_gamemodes.gsc +++ b/scripts/zm/replaced/zm_transit_gamemodes.gsc @@ -12,7 +12,10 @@ #include maps\mp\zombies\_zm_utility; #include maps\mp\_utility; #include common_scripts\utility; +#include maps\mp\zm_transit_gamemodes; +#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; @@ -25,14 +28,14 @@ init() add_map_location_gamemode( "zclassic", "transit", maps\mp\zm_transit_classic::precache, maps\mp\zm_transit_classic::main ); - add_map_location_gamemode( "zstandard", "transit", maps\mp\zm_transit_standard_station::precache, maps\mp\zm_transit_standard_station::main ); + add_map_location_gamemode( "zstandard", "transit", scripts\zm\replaced\zm_transit_standard_station::precache, scripts\zm\replaced\zm_transit_standard_station::main ); add_map_location_gamemode( "zstandard", "farm", maps\mp\zm_transit_standard_farm::precache, maps\mp\zm_transit_standard_farm::main ); add_map_location_gamemode( "zstandard", "town", maps\mp\zm_transit_standard_town::precache, maps\mp\zm_transit_standard_town::main ); add_map_location_gamemode( "zstandard", "diner", scripts\zm\locs\zm_transit_loc_diner::precache, scripts\zm\locs\zm_transit_loc_diner::main ); add_map_location_gamemode( "zstandard", "power", scripts\zm\locs\zm_transit_loc_power::precache, scripts\zm\locs\zm_transit_loc_power::main ); add_map_location_gamemode( "zstandard", "tunnel", scripts\zm\locs\zm_transit_loc_tunnel::precache, scripts\zm\locs\zm_transit_loc_tunnel::main ); - add_map_location_gamemode( "zgrief", "transit", maps\mp\zm_transit_grief_station::precache, maps\mp\zm_transit_grief_station::main ); + add_map_location_gamemode( "zgrief", "transit", scripts\zm\replaced\zm_transit_grief_station::precache, scripts\zm\replaced\zm_transit_grief_station::main ); add_map_location_gamemode( "zgrief", "farm", maps\mp\zm_transit_grief_farm::precache, maps\mp\zm_transit_grief_farm::main ); add_map_location_gamemode( "zgrief", "town", maps\mp\zm_transit_grief_town::precache, maps\mp\zm_transit_grief_town::main ); add_map_location_gamemode( "zgrief", "diner", scripts\zm\locs\zm_transit_loc_diner::precache, scripts\zm\locs\zm_transit_loc_diner::main ); diff --git a/maps/mp/zm_transit_grief_station.gsc b/scripts/zm/replaced/zm_transit_grief_station.gsc similarity index 100% rename from maps/mp/zm_transit_grief_station.gsc rename to scripts/zm/replaced/zm_transit_grief_station.gsc diff --git a/maps/mp/zm_transit_standard_station.gsc b/scripts/zm/replaced/zm_transit_standard_station.gsc similarity index 100% rename from maps/mp/zm_transit_standard_station.gsc rename to scripts/zm/replaced/zm_transit_standard_station.gsc diff --git a/scripts/zm/zm_buried/zm_buried_reimagined.gsc b/scripts/zm/zm_buried/zm_buried_reimagined.gsc index 2d0929eb..1f5fd9af 100644 --- a/scripts/zm/zm_buried/zm_buried_reimagined.gsc +++ b/scripts/zm/zm_buried/zm_buried_reimagined.gsc @@ -15,6 +15,7 @@ main() { precachemodel( "collision_wall_128x128x10_standard" ); + replaceFunc(maps\mp\zm_buried_gamemodes::init, scripts\zm\replaced\zm_buried_gamemodes::init); replaceFunc(maps\mp\zm_buried_gamemodes::buildbuildable, scripts\zm\replaced\zm_buried_gamemodes::buildbuildable); replaceFunc(maps\mp\zombies\_zm_buildables_pooled::add_buildable_to_pool, scripts\zm\replaced\_zm_buildables_pooled::add_buildable_to_pool); replaceFunc(maps\mp\zombies\_zm_buildables_pooled::randomize_pooled_buildables, scripts\zm\replaced\_zm_buildables_pooled::randomize_pooled_buildables); diff --git a/scripts/zm/zm_prison/zm_prison_reimagined.gsc b/scripts/zm/zm_prison/zm_prison_reimagined.gsc index b3974c0c..3595b49f 100644 --- a/scripts/zm/zm_prison/zm_prison_reimagined.gsc +++ b/scripts/zm/zm_prison/zm_prison_reimagined.gsc @@ -5,6 +5,9 @@ #include maps\mp\zm_alcatraz_utility; #include scripts\zm\replaced\zm_alcatraz_classic; +#include scripts\zm\replaced\zm_alcatraz_gamemodes; +#include scripts\zm\replaced\zm_alcatraz_utility; +#include scripts\zm\replaced\zm_alcatraz_weap_quest; #include scripts\zm\replaced\_zm_afterlife; #include scripts\zm\replaced\_zm_ai_brutus; #include scripts\zm\replaced\_zm_craftables; @@ -14,6 +17,7 @@ main() { replaceFunc(maps\mp\zm_alcatraz_classic::give_afterlife, scripts\zm\replaced\zm_alcatraz_classic::give_afterlife); + replaceFunc(maps\mp\zm_alcatraz_gamemodes::init, scripts\zm\replaced\zm_alcatraz_gamemodes::init); replaceFunc(maps\mp\zm_alcatraz_utility::blundergat_upgrade_station, scripts\zm\replaced\zm_alcatraz_utility::blundergat_upgrade_station); replaceFunc(maps\mp\zm_alcatraz_weap_quest::grief_soul_catcher_state_manager, scripts\zm\replaced\zm_alcatraz_weap_quest::grief_soul_catcher_state_manager); replaceFunc(maps\mp\zombies\_zm_afterlife::afterlife_add, scripts\zm\replaced\_zm_afterlife::afterlife_add);