

Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
nuke_powerup( drop_item )
{
zombies = GetAISpeciesArray( "axis", "all" );
location = drop_item.origin;
PlayFX( drop_item.fx, location );
level thread nuke_flash();
wait 0.5;
zombies = get_array_of_closest( location, zombies );
zombies_nuked = [];
for( i = 0; i < zombies.size; i ++ )
{
if( IsDefined( zombies[i].marked_for_death ) && zombies[i].marked_for_death )
{
continue;
}
if( IsDefined( zombies[i].nuke_damage_func ) )
{
zombies[i] thread [[ zombies[i].nuke_damage_func ]]();
continue;
}
if( is_magic_bullet_shield_enabled( zombies[i] ) )
{
continue;
}
zombies[i].marked_for_death = true;
zombies[i].nuked = true;
zombies_nuked[ zombies_nuked.size ] = zombies[i];
}
for( i = 0; i < zombies_nuked.size; i ++ )
{
wait RandomFloatRange( 0.1, 0.7 );
if( !IsDefined( zombies_nuked[i] ) )
{
continue;
}
if( is_magic_bullet_shield_enabled( zombies_nuked[i] ) )
{
continue;
}
if( i < 5 && !zombies[i] enemy_is_dog() )
{
zombies_nuked[i] thread animscripts\death::flame_death_fx();
zombies_nuked[i] PlaySound( "nuked" );
}
if( !zombies[i] enemy_is_dog() )
{
if( !IsDefined( zombies_nuked[i].no_gib ) || !zombies_nuked[i].no_gib )
{
zombies_nuked[i] maps\_zombiemode_spawner::zombie_head_gib();
}
zombies_nuked[i] PlaySound( "nuked" );
}
zombies_nuked[i] DoDamage( zombies_nuked[i].health + 666, zombies_nuked[i].origin );
}
players = GetPlayers();
for( i = 0; i < players.size; i ++ )
{
players[i] maps\_zombiemode_score::player_add_points( "nuke_powerup", 400 );
}
}
// first, charge forward if we need to; get into place to play the melee animation
if ( !PrepareToMelee() )
{
// if we couldn't get in place to melee, don't melee.
// remember that we couldn't get in place so that we don't try again for a while.
self.lastMeleeGiveUpTime = gettime();
break;
}
if( IsDefined( self.marked_for_death ) )
{
return;
}
case "damage_ads":
points = Int( level.zombie_vars[ "zombie_score_damage" ] * 1.25 );
break;
case "nuke_powerup":
points = mod;
break;
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Does this fix the delay of nuke too?