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:
@ -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);
|
||||
}
|
12
scripts/zm/zm_prison/zm_prison_reimagined.csc
Normal file
12
scripts/zm/zm_prison/zm_prison_reimagined.csc
Normal file
@ -0,0 +1,12 @@
|
||||
#include clientscripts\mp\_utility;
|
||||
#include clientscripts\mp\zombies\_zm_utility;
|
||||
|
||||
main()
|
||||
{
|
||||
if (is_gametype_active("zstandard"))
|
||||
{
|
||||
level.zombiemode_using_additionalprimaryweapon_perk = 1;
|
||||
level.zombiemode_using_divetonuke_perk = 1;
|
||||
clientscripts\mp\zombies\_zm_perk_divetonuke::enable_divetonuke_perk_for_level();
|
||||
}
|
||||
}
|
@ -61,6 +61,13 @@ main()
|
||||
replaceFunc(maps\mp\zombies\_zm_weap_tomahawk::tomahawk_return_player, scripts\zm\replaced\_zm_weap_tomahawk::tomahawk_return_player);
|
||||
replaceFunc(maps\mp\zombies\_zm_zonemgr::manage_zones, ::manage_zones);
|
||||
|
||||
if (is_gametype_active("zstandard"))
|
||||
{
|
||||
level.zombiemode_using_additionalprimaryweapon_perk = 1;
|
||||
level.zombiemode_using_divetonuke_perk = 1;
|
||||
maps\mp\zombies\_zm_perk_divetonuke::enable_divetonuke_perk_for_level();
|
||||
}
|
||||
|
||||
door_changes();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user