UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Round change

broken avatar :(
Created 7 years ago
by xDeidara
0 Members and 1 Guest are viewing this topic.
1,084 views
broken avatar :(
×
broken avatar :(
Location: gbNewcastle
Date Registered: 27 June 2016
Last active: 6 years ago
Posts
6
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
xDeidara's Groups
xDeidara's Contact & Social LinksxDeidara
Hey so, before the release of zombie chronicles update on PC my round change function was working fine and would change the round to the round set however now it doesn't work and just kills all zombies on the map, has anyone else noticed this and figured out a work around or is there something that got changed script wise to stop this from working?

Code Snippet
Plaintext
function jumpToRound(n_target_round)
{
level notify( "restart_round" );

if ( n_target_round < 1 )
{
n_target_round = 1;
}

level.zombie_total = 0;
zombie_utility::ai_calculate_health( n_target_round );
level.round_number = n_target_round - 1;

// kill all active zombies
zombies = zombie_utility::get_round_enemy_array();
if ( isdefined( zombies ) )
{
array::run_all( zombies, &Kill );
}

level.sndGotoRoundOccurred = true;

level waittill( "between_round_over" );
}

 
Loading ...