

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!gobble_gum_machine()
{
//image of gobble gum
PrecacheShader( "specialty_gobble_gum_zombies");
PrecacheShader( "specialty_nuke");
//cost of gobble gum buy
cost = 500;
//activate the following script code when player buys perk
trigger = getEnt("gobble_gum_trigger", "targetname");
bought_round_number = undefined;
//level.round_number = 0;
last_round = 0;
trigger setHintString ("Hold &&1 to dispense Gobble Gum [500]");
//hold code till trigger is activated
trigger waittill("trigger", player);
using_player = player;
//random gumball script here
//--------------------------------------
gobble_gums_index = 0;
gobble_gums = [];
add_to_array("gobble_gums","insta_kill");
add_to_array("gobble_gums","double_points");
add_to_array("gobble_gums","nuke");
add_to_array("gobble_gums","plain_sight");
add_to_array("gobble_gums","pack_a_punch");
//gobble_gum = gobble_gums[RandomInt(gobble_gums.size)];
//gobble_gum = array_randomize(gobble_gums);
//if( gobble_gums_index >= gobble_gums.size )
//{
// gobble_gums_index = 0;
// randomize_gobble_gums(gobble_gums);
//}
//gobble_gums_index++;
//--------------------------------------
//final gumball selected from script
//this pack a punch gobble gum packs my current gun for 30 seconds and then returns the old one after the time has ran out!
gumball = "pack_a_punch";
//this gumball code will give me the gumball without picking a random one
//--------------------------------------
if ( player.score < cost )
{
//player iprintln( "Not enough points to buy Perk: " + perk );
self playsound("deny");
player thread play_no_money_perk_dialog();
//continue;
}
else
{
//blur players view for effect
player setblur( 4, 0.1 );
wait(0.6);
player setblur(0, 0.1);
//add the image of the shader to the hud
player thread gumball_hud_create(gumball);
//subtract players points for the cost of the gobble gum machine
player maps\_zombiemode_score::minus_to_player_score(cost);
player thread gobble_gum_activate(using_player, gumball);
//bought_round_number = level.round_number;
}
//rerun the gobble gum machine script so it keeps running
thread gobble_gum_machine();
}
doggie = getent("start_zone_spawners_dog", "targetname");
using_player setOrigin(doggie.origin);
doggie = getent("start_zone_spawners_dog", "targetname");
if(isDefined(doggie))
using_player setOrigin(doggie.origin);
![]() | 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. |
im pretty sure i could make a better version of this, no offence
![]() | 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. |
Don't even. Not only have you made the same mistakes with scripts you've released, you can't even indent your code. Atleast his is readable.
im pretty sure i could make a better version of this, no offence
![]() | 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. |
![]() | 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're getting to script the rest of the gobble gums and even make your own!!!!
![]() | 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. |
Dude this script.... I mean it doesn't even save over games or have anything but I re-done perk script. I mean, the amount of anything that is even in here can be easily replicated by those who even know how to add their own gobble gum's. I personally think that this should have been kept to yourself until it had more to release, like images that come with it and not using the perk bottles and other re-used or even missing assets in this script as I guess what you probably called "place holders" in your "finished" release. None of the images you even did reference correctly are even included in the tutorial. I would think releases are more of something that people can use fully without any work at all other than the install, but when you just put out a blank script that is just a hardly modified version of a treyarch script and tell people to "make their own":I don't think many people who even have the skill to make their own will want to use this sorry script. I think they would most likely make their own base script for it to, which apparently is really easy as you have demonstrated here, it isn't any more than just copying and pasting the perk scripts. These gobble gum's don't even save over games, let alone being selectable in an outside menu like they are in Black Ops 3. Sorry if this at all sounded harsh
I get a bad syntax error when I try to play. I put the script in my mapname.gsc file right?