

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!

paypal.me/F3ARxReaper666![]() | Has released one or more maps to the UGX-Mods community. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
include_powerup( "bonus" );
init_fx();
add_zombie_powerup( "nuke", "zombie_bomb", &"ZOMBIE_POWERUP_NUKE", "misc/fx_zombie_mini_nuke" );
// add_zombie_powerup( "nuke", "zombie_bomb", &"ZOMBIE_POWERUP_NUKE", "misc/fx_zombie_mini_nuke_hotness" );
add_zombie_powerup( "insta_kill", "zombie_skull", &"ZOMBIE_POWERUP_INSTA_KILL" );
add_zombie_powerup( "double_points","zombie_x2_icon", &"ZOMBIE_POWERUP_DOUBLE_POINTS" );
add_zombie_powerup( "full_ammo", "zombie_ammocan", &"ZOMBIE_POWERUP_MAX_AMMO");
add_zombie_powerup( "carpenter", "zombie_carpenter", &"ZOMBIE_POWERUP_MAX_AMMO");
add_zombie_powerup( "bonus", "zombie_points", "bonus");
powerup_grab()
case "carpenter":
level thread start_carpenter( self.origin );
players[i] thread powerup_vo("carpenter");
break;
case "bonus":
players[i] thread bonus_powerup( self );
break;
nuke_flash()
bonus_powerup( drop_item )
{
players = Get_Players();
low = 100; //lowest amount possible
high = 2000; //highest amount possible
points = randomIntRange(low,high);
// give the points funtion
for(i=0;i<players.size;i++) //gives points to all players
{
if(level.zombie_vars["zombie_point_scalar"] == 1) // if double points is off
{
players[i] maps\_zombiemode_score::add_to_player_score( points );
}
else // if double points is on
{
points = points * 2;
players[i] maps\_zombiemode_score::add_to_player_score( points );
}
}
for (i = 0; i < players.size; i++)
{
players[i] playsound ("points_vox");
}
}
xmodel,zombie_points


![]() | Has released one or more maps to the UGX-Mods community. |

![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
This looks nice, but does it give you a "random" amount of points in your specified range? as in non multiples of 10 like the other released scripts do. IE you can get 1392 points or 739 points? If its multiples of 10 I will use this, looks nice

![]() | Has released one or more maps to the UGX-Mods community. |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
That's what I feared, is there any way to limit it to multiples of 10, or better yet, make the HUD correctly display the number of points? (In bo2, it was possible to get points ending in an 8 or a 3 and HUD showed it right)

![]() | Has released one or more maps to the UGX-Mods community. |

u dnt wnt 2 no



Aye mate you don't know me so y don't you shut tf up ok buddy

![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() Box Mappers Elite | |
![]() | Has released one or more maps to the UGX-Mods community. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |


![]() | Has released one or more maps to the UGX-Mods community. |

![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
Yeah I think that would be the better option, so maybe do randomint 1-10, and have 1 = 100 points, 2 = 200, and input values etc, or however you do it
That's what I feared, is there any way to limit it to multiples of 10, or better yet, make the HUD correctly display the number of points? (In bo2, it was possible to get points ending in an 8 or a 3 and HUD showed it right)

![]() | Has released one or more maps to the UGX-Mods community. |
Really?

roundOff(int, mod)
{
while(int % mod != 0)
{
if(int % mod >= 5)
int++;
else
int--;
}
return int;
}

![]() | 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. |
you could just get a random number between the 10 and 200 then * 10
points = RandomIntRange( 10, 200 ) * 10;
![]() | |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
points = RandomIntRange( 1, 25 + 1) * 100;