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

Make certain powerups rare and/or not appear until power is on.

HOT
broken avatar :(
Created 10 years ago
by ProGamerzFTW
0 Members and 1 Guest are viewing this topic.
4,785 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2013
Last active: 4 months ago
Posts
541
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
ProGamerzFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
I am trying to make a power up rarer and only appear after the power is enabled. Can someone give me an idea, if not , an example of how I could do this.

I appreciate the help. :)
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: deDeutschland
Date Registered: 26 August 2013
Last active: 2 months ago
Posts
132
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Stop Bleeding!
×
Psy0ch's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Psy0ch's Contact & Social LinksPsy0chPsy0chxPsy0chwww.callofdutyplayers.de
I dont know how to do this But I think you have to script something like that
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2013
Last active: 4 months ago
Posts
541
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
ProGamerzFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
I dont know how to do this But I think you have to script something like that

Well I know that, which is why I posted it in the scripting section. xD
broken avatar :(
×
broken avatar :(
[UGX] Developer
Location: nlLimburg, Netherlands
Date Registered: 28 October 2013
Last active: 5 months ago
Posts
764
Respect
Forum Rank
The Decider
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
[UGX] Developer
×
Lukkie1998's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
UGX Chat Moderator Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
2015 Participant
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
I think you can change this in _zombiemode_powerups.gsc;
In your _zombiemode_powerups.gsc, add:
Code Snippet
Plaintext
flag_wait("electricity_on");
before:
Code Snippet
Plaintext
init_powerups();

Lukkie1998
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 6 August 2012
Last active: 4 years ago
Posts
277
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter Elite
My Groups
More
×
YaPh1l's Groups
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
YaPh1l's Contact & Social Links
This will prevent the powerup logic from fully initializing, therefore it won't be able to drop any powerup.

- Phil.
broken avatar :(
×
broken avatar :(
Location: deDeutschland
Date Registered: 26 August 2013
Last active: 2 months ago
Posts
132
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Stop Bleeding!
×
Psy0ch's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Psy0ch's Contact & Social LinksPsy0chPsy0chxPsy0chwww.callofdutyplayers.de
Well I know that, which is why I posted it in the scripting section. xD

oh I´m stupid LOL :please:
broken avatar :(
×
broken avatar :(
[UGX] Developer
Location: nlLimburg, Netherlands
Date Registered: 28 October 2013
Last active: 5 months ago
Posts
764
Respect
Forum Rank
The Decider
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
[UGX] Developer
×
Lukkie1998's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
UGX Chat Moderator Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
2015 Participant
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
This will prevent the powerup logic from fully initializing, therefore it won't be able to drop any powerup.

- Phil.
Oh did he mean only one power-up? then ignore my reply.

Lukkie1998
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2013
Last active: 4 months ago
Posts
541
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
ProGamerzFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Well I figured out how to make a powerup more rare in get_next_powerup() with

while( powerup == "powerup_name" && randomint(100) > 10)

but how would i run a check if the power is on?

broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 6 August 2012
Last active: 4 years ago
Posts
277
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter Elite
My Groups
More
×
YaPh1l's Groups
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
YaPh1l's Contact & Social Links
You can check
Code Snippet
Plaintext
flag("electricity_on")
It will be set once the power is turned on.

- Phil.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2013
Last active: 4 months ago
Posts
541
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
ProGamerzFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
You can check
Code Snippet
Plaintext
flag("electricity_on")
It will be set once the power is turned on.

- Phil.

and i can reverse that by doing

Code Snippet
Plaintext
!flag("electricity_on")

where it checks if the power is not on

right? :)
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 6 August 2012
Last active: 4 years ago
Posts
277
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter Elite
My Groups
More
×
YaPh1l's Groups
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
YaPh1l's Contact & Social Links
Yes.

- Phil.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2013
Last active: 4 months ago
Posts
541
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
ProGamerzFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Ok something that I'm confused about is going on.

Code Snippet
Plaintext
while( powerup == "powerup_name" && randomint(100) > 25 ) 
Works.

Code Snippet
Plaintext
while( powerup == "powerup_name" && !flag("electricity_on") )
Works.

Code Snippet
Plaintext
while( powerup == "powerup_name" && randomint(100) > 25 && !flag("electricity_on") )
Doesn't work, seems like the checks are ignored.

Last Edit: March 26, 2014, 06:04:01 pm by ProGamerzFTW
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 6 August 2012
Last active: 4 years ago
Posts
277
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter Elite
My Groups
More
×
YaPh1l's Groups
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
YaPh1l's Contact & Social Links
Well, that's because your condition for the loop isn't what you want it to be.
The loop will not allow the powerup while the power is off AND while the random number is greater than 25. Now, at some point, it will return a random number less than or equal to 25 and your loop stops, even if the power is still off.

- Phil.
Last Edit: March 26, 2014, 06:08:40 pm by YaPh1l
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2013
Last active: 4 months ago
Posts
541
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
ProGamerzFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Well, that's because your condition for the loop isn't what you want it to be.
The loop will not allow the powerup while the power is off AND while the random number is greater than 25. Now, at some point, it will return a random number less than or equal to 25 and your loop stops, even if the power is still off.

- Phil.
oh i see so it should be something like this

Code Snippet
Plaintext
while( powerup == "bonfire_sale" && ( randomint(100) > 25 || !flag("electricity_on") ) )
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 6 August 2012
Last active: 4 years ago
Posts
277
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter Elite
My Groups
More
×
YaPh1l's Groups
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
YaPh1l's Contact & Social Links
Yes, seems okay.

- Phil.

 
Loading ...