

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. |
level.zombie_vars[ "warp_on" ] = false;
level.zombie_vars[ "openfire_on" ] = false;![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
If so, i need to see the functions for those power ups, they need to turn these to "true" and back to false at the end : Code SnippetPlaintextlevel.zombie_vars[ "warp_on" ] = false;
level.zombie_vars[ "openfire_on" ] = false;
REMOVED: Due to secrets![]() | 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. |
level.zombie_vars[ "warp_on" ] = true;
level.zombie_vars[ "warp_time" ] = 30;
while( 1 )
{
if ( level.zombie_vars[ "warp_time" ] <= 0 )
break;
level.zombie_vars[ "warp_time" ]--;
wait 1;
}
level.zombie_vars[ "warp_on" ] = false;
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
your not setting the timer
REMOVED: Due to secrets![]() | 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. |

![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | 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. |
What would be better is to dynamically adjust the hud depending on how many powerups are active.
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
Ive said this a few times, I just threw it together as he asked
![]() | 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. |
Well I meant a way so you don't have to write an if/else if statement for every combination of powerups.
I realise this looks silly, as we have to put the timer length in the function, rather than defined elsewhere, again this is treyarchs shoddy code lol
Ill be rewriting this whole script ( Already have, just needs a tweak ) and putting it up for people to use, instead of fighting with this piece of crap all the time lol
Adding a powerup with a shader in mine is just one line of code...
Try this, if you add anymore though id suggest just redoing this whole function to be more adaptable :
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
again.... ive said this multiple times :

![]() | 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. |

![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
looks fine to me ;)
![]() | 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. |
// ========================================================== 3 ON ==============================================================
else if ( level.zombie_vars[ "zombie_powerup_point_doubler_on" ] == true && level.zombie_vars[ "zombie_powerup_insta_kill_on" ] == true && level.zombie_vars[ "NEWPERKNAME_on" ] == true && level.zombie_vars[ "NEWPERKNAME_2_on" ] == false ) // CHANGE HERE ===================================================================
{
level.powerup_hud[ 0 ].x = -24;
level.powerup_hud[ 1 ].x = 0;
level.powerup_hud[ 2 ].x = 24;
level.powerup_hud[ 0 ] setshader(shader_2x, 32, 32);
level.powerup_hud[ 1 ] setshader(shader_insta, 32, 32);
level.powerup_hud[ 2 ] setshader(shader_NEWPERK, 32, 32); // CHANGE HERE ===================================================================
level.powerup_hud[ 0 ].alpha = 1;
level.powerup_hud[ 1 ].alpha = 1;
level.powerup_hud[ 2 ].alpha = 1;
level.powerup_hud[ 3 ].alpha = 0;
}
else if ( level.zombie_vars[ "zombie_powerup_point_doubler_on" ] == true && level.zombie_vars[ "zombie_powerup_insta_kill_on" ] == true && level.zombie_vars[ "NEWPERKNAME_on" ] == false && level.zombie_vars[ "NEWPERKNAME_2_on" ] == true ) // CHANGE HERE ===================================================================
{
level.powerup_hud[ 0 ].x = -24;
level.powerup_hud[ 1 ].x = 0;
level.powerup_hud[ 3 ].x = 24;
level.powerup_hud[ 0 ] setshader(shader_2x, 32, 32);
level.powerup_hud[ 1 ] setshader(shader_insta, 32, 32);
level.powerup_hud[ 3 ] setshader(shader_NEWPERK_2, 32, 32); // CHANGE HERE ===================================================================
level.powerup_hud[ 0 ].alpha = 1;
level.powerup_hud[ 1 ].alpha = 1;
level.powerup_hud[ 2 ].alpha = 0;
level.powerup_hud[ 3 ].alpha = 1;
}
else if ( level.zombie_vars[ "zombie_powerup_point_doubler_on" ] == true && level.zombie_vars[ "zombie_powerup_insta_kill_on" ] == false && level.zombie_vars[ "NEWPERKNAME_on" ] == true && level.zombie_vars[ "NEWPERKNAME_2_on" ] == true ) // CHANGE HERE ===================================================================
{
level.powerup_hud[ 0 ].x = -24;
level.powerup_hud[ 2 ].x = 0;
level.powerup_hud[ 3 ].x = 24;
level.powerup_hud[ 0 ] setshader(shader_2x, 32, 32);
level.powerup_hud[ 2 ] setshader(shader_NEWPERK, 32, 32); // CHANGE HERE ===================================================================
level.powerup_hud[ 3 ] setshader(shader_NEWPERK_2, 32, 32); // CHANGE HERE ===================================================================
level.powerup_hud[ 0 ].alpha = 1;
level.powerup_hud[ 1 ].alpha = 0;
level.powerup_hud[ 2 ].alpha = 1;
level.powerup_hud[ 3 ].alpha = 1;
}
else if ( level.zombie_vars[ "zombie_powerup_point_doubler_on" ] == false && level.zombie_vars[ "zombie_powerup_insta_kill_on" ] == true && level.zombie_vars[ "NEWPERKNAME_on" ] == true && level.zombie_vars[ "NEWPERKNAME_2_on" ] == true ) // CHANGE HERE ===================================================================
{
level.powerup_hud[ 1 ].x = -24;
level.powerup_hud[ 2 ].x = 0;
level.powerup_hud[ 3 ].x = 24;
level.powerup_hud[ 1 ] setshader(shader_insta, 32, 32);
level.powerup_hud[ 2 ] setshader(shader_NEWPERK, 32, 32); // CHANGE HERE ===================================================================
level.powerup_hud[ 3 ] setshader(shader_NEWPERK_2, 32, 32); // CHANGE HERE ===================================================================
level.powerup_hud[ 0 ].alpha = 0;
level.powerup_hud[ 1 ].alpha = 1;
level.powerup_hud[ 2 ].alpha = 1;
level.powerup_hud[ 3 ].alpha = 1;
}
level.powerup_hud[ 0 ].x = -24;
level.powerup_hud[ 1 ].x = 0;
level.powerup_hud[ 2 ].x = 24; ![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
I had a feeling my co-ords would be off, hence me leaving comments to tell you what was what
change the .x in these to adjust the "3 perks active"
maybe try 32, or 48 instead of 24
![]() | 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. |
insta_kill_on_hud( drop_item )
{
self endon ("disconnect");
// check to see if this is on or not
if ( level.zombie_vars["zombie_powerup_insta_kill_on"] )
{
// reset the time and keep going
level.zombie_vars["zombie_powerup_insta_kill_time"] = 30;
return;
}
level.zombie_vars["zombie_powerup_insta_kill_on"] = true;
// set up the hudelem
//hudelem = maps\_hud_util::createFontString( "objective", 2 );
//hudelem maps\_hud_util::setPoint( "TOP", undefined, 0, level.zombie_vars["zombie_timer_offset"] + level.zombie_vars["zombie_timer_offset_interval"]);
//hudelem.sort = 0.5;
//hudelem.alpha = 0;
//hudelem fadeovertime(0.5);
//hudelem.alpha = 1;
//hudelem.label = drop_item.hint;
// set time remaining for insta kill
level thread time_remaning_on_insta_kill_powerup();
// offset in case we get another powerup
//level.zombie_timer_offset -= level.zombie_timer_offset_interval;
}// under zombiemode::main();
ent = getEnt( "insta_trigger", "targetname" );
ent thread insta_trigger();
// way at the bottom, not "inside" another function :
insta_trigger()
{
self waittill( "trigger" );
level thread insta_kill_on_hud();
wait 1;
}