diff --git a/scripts/zm/replaced/zm_prison_spoon.gsc b/scripts/zm/replaced/zm_prison_spoon.gsc index 59f60df3..7a050feb 100644 --- a/scripts/zm/replaced/zm_prison_spoon.gsc +++ b/scripts/zm/replaced/zm_prison_spoon.gsc @@ -9,6 +9,28 @@ #include maps\mp\zombies\_zm_stats; #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) { while (isdefined(m_tomahawk)) diff --git a/scripts/zm/zm_prison/zm_prison_reimagined.gsc b/scripts/zm/zm_prison/zm_prison_reimagined.gsc index 36e7deaf..7cb5fee0 100644 --- a/scripts/zm/zm_prison/zm_prison_reimagined.gsc +++ b/scripts/zm/zm_prison/zm_prison_reimagined.gsc @@ -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::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_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::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);