mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-07 21:59:49 -05:00
Nuketown: add Grief
This commit is contained in:
parent
c1b98baab0
commit
717c91c6b6
@ -1,3 +1,5 @@
|
|||||||
|
#include clientscripts\mp\gametypes\zgrief;
|
||||||
|
|
||||||
onprecachegametype()
|
onprecachegametype()
|
||||||
{
|
{
|
||||||
if (getdvar("mapname") == "zm_prison")
|
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_camera"] = loadfx("maps/zombie/fx_zmb_meat_stink_camera");
|
||||||
level._effect["meat_stink_torso"] = loadfx("maps/zombie/fx_zmb_meat_stink_torso");
|
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 maps\mp\_utility;
|
||||||
#include common_scripts\utility;
|
#include common_scripts\utility;
|
||||||
#include maps\mp\zombies\_zm_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()
|
main()
|
||||||
{
|
{
|
||||||
replaceFunc(clientscripts\mp\gametypes\zgrief::onprecachegametype, scripts\zm\replaced\zgrief::onprecachegametype);
|
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()
|
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::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);
|
replaceFunc(maps\mp\zm_nuked_perks::perks_from_the_sky, scripts\zm\replaced\zm_nuked_perks::perks_from_the_sky);
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
script,scripts/zm/_zm_reimagined.csc
|
script,scripts/zm/_zm_reimagined.csc
|
||||||
|
script,scripts/zm/zm_nuked/zm_nuked_reimagined.csc
|
||||||
script,scripts/zm/zm_buried/zm_buried_reimagined.csc
|
script,scripts/zm/zm_buried/zm_buried_reimagined.csc
|
||||||
script,scripts/zm/zm_prison/zm_prison_reimagined.csc
|
script,scripts/zm/zm_prison/zm_prison_reimagined.csc
|
||||||
script,scripts/zm/zgrief/zgrief_reimagined.csc
|
script,scripts/zm/zgrief/zgrief_reimagined.csc
|
||||||
script,scripts/zm/replaced/_zm.csc
|
script,scripts/zm/replaced/_zm.csc
|
||||||
script,scripts/zm/replaced/_zm_weapons.csc
|
script,scripts/zm/replaced/_zm_weapons.csc
|
||||||
|
script,scripts/zm/replaced/zm_nuked.csc
|
||||||
script,scripts/zm/replaced/zm_buried.csc
|
script,scripts/zm/replaced/zm_buried.csc
|
||||||
script,scripts/zm/replaced/zgrief.csc
|
script,scripts/zm/replaced/zgrief.csc
|
@ -926,9 +926,55 @@ image,jun_art_plastic_tarp_n
|
|||||||
image,~~-gjun_art_plastic_tarp_c-rg~4b76f708
|
image,~~-gjun_art_plastic_tarp_c-rg~4b76f708
|
||||||
material,mc/mtl_p6_zm_bu_buildable_bench_tarp
|
material,mc/mtl_p6_zm_bu_buildable_bench_tarp
|
||||||
xmodel,p6_zm_bu_buildable_bench_tarp
|
xmodel,p6_zm_bu_buildable_bench_tarp
|
||||||
|
material,gfx_fxt_smk_cigar_add
|
||||||
|
material,gfx_fxt_bio_fruit_fly
|
||||||
|
material,gfx_fxt_bio_insect_gen
|
||||||
fx,maps/zombie/fx_zmb_meat_stink_camera
|
fx,maps/zombie/fx_zmb_meat_stink_camera
|
||||||
fx,maps/zombie/fx_zmb_meat_stink_torso_os
|
fx,maps/zombie/fx_zmb_meat_stink_torso_os
|
||||||
fx,maps/zombie/fx_zmb_meat_stink_torso
|
fx,maps/zombie/fx_zmb_meat_stink_torso
|
||||||
|
image,~~-gmtl_t6_wpn_zmb_meat_spc-r~1f27ef3d
|
||||||
|
image,mtl_t6_wpn_zmb_meat_nml
|
||||||
|
image,~-gmtl_t6_wpn_zmb_meat_col
|
||||||
|
material,mc/mtl_t6_wpn_zmb_meat
|
||||||
|
xmodel,t6_wpn_zmb_meat_view
|
||||||
|
xmodel,t6_wpn_zmb_meat_world
|
||||||
|
techniqueset,effect_7104842q
|
||||||
|
image,fxt_smk_trail
|
||||||
|
material,gfx_fxt_smk_trail_ds128
|
||||||
|
material,gfx_fxt_light_flare_phosphorous_top
|
||||||
|
image,fxt_exp_ember_omni3
|
||||||
|
material,gfx_fxt_exp_ember_omni3
|
||||||
|
material,gfx_fxt_light_flare_star
|
||||||
|
fx,maps/zombie/fx_zmb_meat_trail
|
||||||
|
xanim,viewmodel_zomb_meat_idle
|
||||||
|
xanim,viewmodel_zomb_meat_fire
|
||||||
|
xanim,viewmodel_zomb_meat_hold_fire
|
||||||
|
xanim,viewmodel_zomb_meat_pullout
|
||||||
|
xanim,viewmodel_zomb_meat_putaway
|
||||||
|
xanim,viewmodel_zomb_head_pullout
|
||||||
|
xanim,viewmodel_zomb_meat_sprint_in
|
||||||
|
xanim,viewmodel_zomb_meat_sprint_loop
|
||||||
|
xanim,viewmodel_zomb_meat_sprint_out
|
||||||
|
xanim,viewmodel_zomb_meat_crawl_in
|
||||||
|
xanim,viewmodel_zomb_meat_crawl_forward
|
||||||
|
xanim,viewmodel_zomb_meat_crawl_back
|
||||||
|
xanim,viewmodel_zomb_meat_crawl_right
|
||||||
|
xanim,viewmodel_zomb_meat_crawl_left
|
||||||
|
xanim,viewmodel_zomb_meat_crawl_out
|
||||||
|
xanim,viewmodel_zomb_meat_d2p_in
|
||||||
|
xanim,viewmodel_zomb_meat_d2p_loop
|
||||||
|
xanim,viewmodel_zomb_meat_d2p_out
|
||||||
|
xanim,viewmodel_zomb_meat_ads_up
|
||||||
|
xanim,viewmodel_zomb_meat_ads_down
|
||||||
|
weapon,item_meat_zm
|
||||||
|
script,maps/mp/gametypes_zm/zgrief.gsc
|
||||||
|
script,maps/mp/gametypes_zm/zmeat.gsc
|
||||||
|
script,maps/mp/zombies/_zm_game_module_grief.gsc
|
||||||
|
script,maps/mp/zombies/_zm_game_module_meat.gsc
|
||||||
|
script,maps/mp/zombies/_zm_game_module_utility.gsc
|
||||||
|
script,maps/mp/zombies/_zm_game_module_meat_utility.gsc
|
||||||
|
script,clientscripts/mp/gametypes/zgrief.csc
|
||||||
|
script,clientscripts/mp/gametypes/zmeat.csc
|
||||||
footsteptable,default_1st_person
|
footsteptable,default_1st_person
|
||||||
footsteptable,default_3rd_person
|
footsteptable,default_3rd_person
|
||||||
footsteptable,default_1st_person_quiet
|
footsteptable,default_1st_person_quiet
|
||||||
|
Loading…
x
Reference in New Issue
Block a user