Ok something else it happening, it seems like having multiple while loops in get_next_powerup can only have one active at a time, causing the other powerup that isn't suppose to drop, drop.
I understand why it does this, as it doesnt continue a function unless a function is false.
What should I change to fix this? As in, how can I have multiple loops either "while" or something that works similar in one function, or if not possible, how would i run it in multiple threads?
here is part of the code
Edit: I changed the way this check works, based on how black ops handles it, and it works fine.
Last Edit: March 27, 2014, 03:02:39 am by ProGamerzFTW
Edit: I changed the way this check works, based on how black ops handles it, and it works fine.
Yeah, that's probably a good idea. Would you maybe post your final working solution so this thread can be useful for others who want to do a similar thing?
Yeah, that's probably a good idea. Would you maybe post your final working solution so this thread can be useful for others who want to do a similar thing?
- Phil.
Sure.
Make sure you backup _zombiemode_powerups.gsc before doing this.
1. There should be three instances of
one of which is in the function powerup_setup() and two in special_drop_setup()
replace
with
2. Replace the entire get_next_powerup() function with
3. Below this function place
And if you are not adding any custom perks, you are done, otherwise continue below for an example on how to add custom perks to this function.
4. If you would like to add a custom powerup to this, lets say to add a random perk powerup with the name of "gtlad" to make it more rare and not drop until the power is on you would add
after
so it looks like
Where increasing the value 25 will make it less rare, and lowering it will make it more rare.
And you are done!
Last Edit: March 27, 2014, 07:21:46 pm by ProGamerzFTW