1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 15:17:57 -05:00

MOTD: add Survival maps

This commit is contained in:
Jbleezy
2024-01-10 03:31:38 -08:00
parent fd8bcad722
commit 37a2f0dbb6
13 changed files with 557 additions and 31 deletions

View File

@ -13,6 +13,7 @@ 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("zstandard", ::zstandard_preinit, undefined, undefined);
add_map_gamemode("zgrief", scripts\zm\replaced\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);
@ -25,4 +26,46 @@ 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);
}
zstandard_preinit()
{
level.force_team_characters = 1;
level.should_use_cia = 0;
if (randomint(100) > 50)
level.should_use_cia = 1;
level.givecustomloadout = maps\mp\zm_prison::givecustomloadout;
level.precachecustomcharacters = ::precache_team_characters;
level.givecustomcharacters = ::give_team_characters;
level.gamemode_post_spawn_logic = ::give_player_shiv;
flag_wait("start_zombie_round_logic");
}
give_team_characters()
{
self detachall();
self set_player_is_female(0);
if (isdefined(level.should_use_cia))
{
if (level.should_use_cia)
{
self setmodel("c_zom_player_grief_inmate_fb");
self setviewmodel("c_zom_oleary_shortsleeve_viewhands");
self.characterindex = 0;
}
else
{
self setmodel("c_zom_player_grief_guard_fb");
self setviewmodel("c_zom_grief_guard_viewhands");
self.characterindex = 1;
}
}
self setmovespeedscale(1);
self setsprintduration(4);
self setsprintcooldown(0);
}