1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-07 21:59:49 -05:00

MOTD: fix crash from t6_wpn_zmb_spork_world model not being precached

This commit is contained in:
Jbleezy 2024-03-04 17:10:13 -08:00
parent 2b17d5826e
commit bf7b593bd2
2 changed files with 23 additions and 0 deletions

View File

@ -9,6 +9,28 @@
#include maps\mp\zombies\_zm_stats; #include maps\mp\zombies\_zm_stats;
#include maps\mp\zombies\_zm_audio; #include maps\mp\zombies\_zm_audio;
init()
{
if (isdefined(level.gamedifficulty) && level.gamedifficulty == 0)
{
spoon_easy_cleanup();
return;
}
precachemodel("t6_wpn_zmb_spoon_world");
precachemodel("t6_wpn_zmb_spork_world");
precachemodel("c_zom_inmate_g_rarmspawn");
level thread wait_for_initial_conditions();
array_thread(level.zombie_spawners, ::add_spawn_function, ::zombie_spoon_func);
level thread bucket_init();
spork_portal = getent("afterlife_show_spork", "targetname");
spork_portal setinvisibletoall();
level.b_spoon_in_tub = 0;
level.n_spoon_kill_count = 0;
flag_init("spoon_obtained");
flag_init("charged_spoon");
}
give_player_spoon_upon_receipt(m_tomahawk, m_player_spoon) give_player_spoon_upon_receipt(m_tomahawk, m_player_spoon)
{ {
while (isdefined(m_tomahawk)) while (isdefined(m_tomahawk))

View File

@ -28,6 +28,7 @@ main()
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\zm_alcatraz_weap_quest::grief_soul_catcher_state_manager, scripts\zm\replaced\zm_alcatraz_weap_quest::grief_soul_catcher_state_manager);
replaceFunc(maps\mp\zm_alcatraz_weap_quest::hellhole_projectile_watch, scripts\zm\replaced\zm_alcatraz_weap_quest::hellhole_projectile_watch); replaceFunc(maps\mp\zm_alcatraz_weap_quest::hellhole_projectile_watch, scripts\zm\replaced\zm_alcatraz_weap_quest::hellhole_projectile_watch);
replaceFunc(maps\mp\zm_alcatraz_distance_tracking::delete_zombie_noone_looking, scripts\zm\replaced\zm_alcatraz_distance_tracking::delete_zombie_noone_looking); replaceFunc(maps\mp\zm_alcatraz_distance_tracking::delete_zombie_noone_looking, scripts\zm\replaced\zm_alcatraz_distance_tracking::delete_zombie_noone_looking);
replaceFunc(maps\mp\zm_prison_spoon::init, scripts\zm\replaced\zm_prison_spoon::init);
replaceFunc(maps\mp\zm_prison_spoon::give_player_spoon_upon_receipt, scripts\zm\replaced\zm_prison_spoon::give_player_spoon_upon_receipt); replaceFunc(maps\mp\zm_prison_spoon::give_player_spoon_upon_receipt, scripts\zm\replaced\zm_prison_spoon::give_player_spoon_upon_receipt);
replaceFunc(maps\mp\zm_prison_spoon::dip_the_spoon, scripts\zm\replaced\zm_prison_spoon::dip_the_spoon); replaceFunc(maps\mp\zm_prison_spoon::dip_the_spoon, scripts\zm\replaced\zm_prison_spoon::dip_the_spoon);
replaceFunc(maps\mp\zm_prison_sq_bg::give_sq_bg_reward, scripts\zm\replaced\zm_prison_sq_bg::give_sq_bg_reward); replaceFunc(maps\mp\zm_prison_sq_bg::give_sq_bg_reward, scripts\zm\replaced\zm_prison_sq_bg::give_sq_bg_reward);