From d6501ec45d610ecbd9a30bf58c1a352f81381078 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Sat, 8 Apr 2023 17:53:02 -0700 Subject: [PATCH] Arthur: fix not running back to jail if traversing --- scripts/zm/zm_buried/zm_buried_reimagined.gsc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/zm/zm_buried/zm_buried_reimagined.gsc b/scripts/zm/zm_buried/zm_buried_reimagined.gsc index 5694fcf0..679f1ceb 100644 --- a/scripts/zm/zm_buried/zm_buried_reimagined.gsc +++ b/scripts/zm/zm_buried/zm_buried_reimagined.gsc @@ -432,8 +432,6 @@ sloth_trap() who maps\mp\zombies\_zm_score::minus_to_player_score( trig.cost ); play_sound_at_pos( "purchase", trig.origin ); - who maps\mp\zombies\_zm_stats::increment_client_stat( "buried_sloth_candy_protect", 0 ); - who maps\mp\zombies\_zm_stats::increment_player_stat( "buried_sloth_candy_protect" ); who thread maps\mp\zombies\_zm_audio::create_and_play_dialog( "general", "sloth_generic_feed" ); who maps\mp\zm_buried_buildables::onuseplantobject_key( who ); @@ -447,6 +445,11 @@ sloth_trap() wait 30; + while (level.sloth maps\mp\zombies\_zm_ai_sloth_utility::sloth_is_traversing()) + { + wait 0.05; + } + level.sloth maps\mp\zombies\_zm_ai_sloth::sloth_set_state( "jail_run", 0 ); while (level.sloth.state == "jail_run")