mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 15:17:57 -05:00
Nuketown: add Grief
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
#include clientscripts\mp\gametypes\zgrief;
|
||||
|
||||
onprecachegametype()
|
||||
{
|
||||
if (getdvar("mapname") == "zm_prison")
|
||||
@ -13,4 +15,11 @@ onprecachegametype()
|
||||
|
||||
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");
|
||||
|
||||
registerclientfield("toplayer", "meat_stink", 1, 1, "int", ::meat_stink_cb, 0, 1);
|
||||
}
|
||||
|
||||
premain()
|
||||
{
|
||||
// removed
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
#include maps\mp\gametypes_zm\zgrief;
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
|
21
scripts/zm/replaced/zm_nuked.csc
Normal file
21
scripts/zm/replaced/zm_nuked.csc
Normal file
@ -0,0 +1,21 @@
|
||||
#include clientscripts\mp\zm_nuked;
|
||||
#include clientscripts\mp\_utility;
|
||||
#include clientscripts\mp\zombies\_zm_weapons;
|
||||
#include clientscripts\mp\zombies\_zm_utility;
|
||||
#include clientscripts\mp\zm_nuked_ffotd;
|
||||
#include clientscripts\mp\zm_nuked_fx;
|
||||
#include clientscripts\mp\zm_nuked_amb;
|
||||
#include clientscripts\mp\zm_nuked_standard;
|
||||
#include clientscripts\mp\zombies\_zm;
|
||||
#include clientscripts\mp\_sticky_grenade;
|
||||
#include clientscripts\mp\zombies\_zm_weap_cymbal_monkey;
|
||||
#include clientscripts\mp\zombies\_zm_weap_tazer_knuckles;
|
||||
|
||||
init_gamemodes()
|
||||
{
|
||||
add_map_gamemode("zstandard", undefined, undefined);
|
||||
add_map_gamemode("zgrief", undefined, undefined);
|
||||
|
||||
add_map_location_gamemode("zstandard", "nuked", clientscripts\mp\zm_nuked_standard::precache, undefined, clientscripts\mp\zm_nuked_standard::main);
|
||||
add_map_location_gamemode("zgrief", "nuked", clientscripts\mp\zm_nuked_standard::precache, undefined, clientscripts\mp\zm_nuked_standard::main);
|
||||
}
|
90
scripts/zm/replaced/zm_nuked.gsc
Normal file
90
scripts/zm/replaced/zm_nuked.gsc
Normal file
@ -0,0 +1,90 @@
|
||||
#include maps\mp\zm_nuked;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\_utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps\mp\zombies\_zm_weapons;
|
||||
#include maps\mp\zm_nuked_gamemodes;
|
||||
#include maps\mp\zm_nuked_ffotd;
|
||||
#include maps\mp\zm_nuked_fx;
|
||||
#include maps\mp\zombies\_zm;
|
||||
#include maps\mp\animscripts\zm_death;
|
||||
#include maps\mp\zombies\_load;
|
||||
#include maps\mp\teams\_teamset_cdc;
|
||||
#include maps\mp\gametypes_zm\_spawning;
|
||||
#include maps\mp\zm_nuked_perks;
|
||||
#include maps\mp\_sticky_grenade;
|
||||
#include maps\mp\zombies\_zm_weap_tazer_knuckles;
|
||||
#include maps\mp\zombies\_zm_weap_bowie;
|
||||
#include maps\mp\zombies\_zm_weap_cymbal_monkey;
|
||||
#include maps\mp\zombies\_zm_weap_claymore;
|
||||
#include maps\mp\zombies\_zm_weap_ballistic_knife;
|
||||
#include maps\mp\zombies\_zm_zonemgr;
|
||||
#include maps\mp\zombies\_zm_net;
|
||||
#include maps\mp\zombies\_zm_powerups;
|
||||
#include maps\mp\zombies\_zm_laststand;
|
||||
#include maps\mp\animscripts\zm_run;
|
||||
#include maps\mp\zombies\_zm_score;
|
||||
#include maps\mp\zombies\_zm_audio;
|
||||
#include maps\mp\zombies\_zm_blockers;
|
||||
#include maps\mp\zombies\_zm_sidequests;
|
||||
#include maps\mp\_compass;
|
||||
|
||||
give_team_characters()
|
||||
{
|
||||
if (isdefined(level.hotjoin_player_setup) && [[level.hotjoin_player_setup]]("c_zom_suit_viewhands"))
|
||||
return;
|
||||
|
||||
self detachall();
|
||||
self set_player_is_female(0);
|
||||
|
||||
if (isdefined(level.should_use_cia))
|
||||
{
|
||||
if (level.should_use_cia)
|
||||
{
|
||||
self setmodel("c_zom_player_cia_fb");
|
||||
self setviewmodel("c_zom_suit_viewhands");
|
||||
self.characterindex = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
self setmodel("c_zom_player_cdc_fb");
|
||||
self setviewmodel("c_zom_hazmat_viewhands");
|
||||
self.characterindex = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!isdefined(self.characterindex))
|
||||
{
|
||||
self.characterindex = 1;
|
||||
|
||||
if (self.team == "axis")
|
||||
self.characterindex = 0;
|
||||
}
|
||||
|
||||
switch (self.characterindex)
|
||||
{
|
||||
case 0:
|
||||
case 2:
|
||||
self setmodel("c_zom_player_cia_fb");
|
||||
self.voice = "american";
|
||||
self.skeleton = "base";
|
||||
self setviewmodel("c_zom_suit_viewhands");
|
||||
self.characterindex = 0;
|
||||
break;
|
||||
|
||||
case 1:
|
||||
case 3:
|
||||
self setmodel("c_zom_player_cdc_fb");
|
||||
self.voice = "american";
|
||||
self.skeleton = "base";
|
||||
self setviewmodel("c_zom_hazmat_viewhands");
|
||||
self.characterindex = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
self setmovespeedscale(1);
|
||||
self setsprintduration(4);
|
||||
self setsprintcooldown(0);
|
||||
}
|
21
scripts/zm/replaced/zm_nuked_gamemodes.gsc
Normal file
21
scripts/zm/replaced/zm_nuked_gamemodes.gsc
Normal file
@ -0,0 +1,21 @@
|
||||
#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_nuked;
|
||||
#include maps\mp\zm_nuked_standard;
|
||||
|
||||
init()
|
||||
{
|
||||
add_map_gamemode("zstandard", maps\mp\zm_nuked::zstandard_preinit, undefined, undefined);
|
||||
add_map_gamemode("zgrief", ::zgrief_preinit, undefined, undefined);
|
||||
|
||||
add_map_location_gamemode("zstandard", "nuked", maps\mp\zm_nuked_standard::precache, maps\mp\zm_nuked_standard::main);
|
||||
add_map_location_gamemode("zgrief", "nuked", maps\mp\zm_nuked_standard::precache, maps\mp\zm_nuked_standard::main);
|
||||
}
|
||||
|
||||
zgrief_preinit()
|
||||
{
|
||||
registerclientfield("toplayer", "meat_stink", 1, 1, "int");
|
||||
}
|
@ -4,4 +4,5 @@
|
||||
main()
|
||||
{
|
||||
replaceFunc(clientscripts\mp\gametypes\zgrief::onprecachegametype, scripts\zm\replaced\zgrief::onprecachegametype);
|
||||
replaceFunc(clientscripts\mp\gametypes\zgrief::premain, scripts\zm\replaced\zgrief::premain);
|
||||
}
|
7
scripts/zm/zm_nuked/zm_nuked_reimagined.csc
Normal file
7
scripts/zm/zm_nuked/zm_nuked_reimagined.csc
Normal file
@ -0,0 +1,7 @@
|
||||
#include clientscripts\mp\_utility;
|
||||
#include clientscripts\mp\zombies\_zm_utility;
|
||||
|
||||
main()
|
||||
{
|
||||
replaceFunc(clientscripts\mp\zm_nuked::init_gamemodes, scripts\zm\replaced\zm_nuked::init_gamemodes);
|
||||
}
|
@ -4,6 +4,8 @@
|
||||
|
||||
main()
|
||||
{
|
||||
replaceFunc(maps\mp\zm_nuked::give_team_characters, scripts\zm\replaced\zm_nuked::give_team_characters);
|
||||
replaceFunc(maps\mp\zm_nuked_gamemodes::init, scripts\zm\replaced\zm_nuked_gamemodes::init);
|
||||
replaceFunc(maps\mp\zm_nuked_perks::init_nuked_perks, scripts\zm\replaced\zm_nuked_perks::init_nuked_perks);
|
||||
replaceFunc(maps\mp\zm_nuked_perks::perks_from_the_sky, scripts\zm\replaced\zm_nuked_perks::perks_from_the_sky);
|
||||
}
|
||||
|
Reference in New Issue
Block a user