func_GivePowerUp(powerup_name) //INPUT is the "Code" name of a powerup.
{
if (!isDefined(level.zombie_include_powerups) || (!(level.zombie_include_powerups.size > 0))) //check the powerup are allowed?
self iprintln("Power Ups ^1Not Supported ^7On This Map");
else
{
level.powerup_drop_count = 0;
powerup = level maps/mp/zombies/_zm_powerups::specific_powerup_drop(powerup_name, self.origin);
if (powerup_name == "teller_withdrawl")
powerup.value = 1000;
powerup thread maps/mp/zombies/_zm_powerups::powerup_timeout();
self iprintln("PowerUps (" + powerup_name + ") ^2Gived^7");
}
}
updateMenu_powerups_list_menu()
{
self addmenu("main_powerups", "Power Ups Menu", "main");
/*powerups = GetArrayKeys(level.zombie_include_powerups); //TODO: old version I do newone because the names ... :D
for(i = 0; i < fxs.size; i++)
{
self addMenuPar_withDef("main_powerups","Spawn "+powerups[i],::GivePowerUp, powerups[i]);
wait .00001;
}*/
if (isDefined(level.zombie_include_powerups) && (level.zombie_include_powerups.size > 0))
{
self addMenuPar_withDef("main_powerups","Toggle Shoot PowerUps",::Toggle_ShootPowerUps);
if (isDefined( level.zombie_include_powerups["nuke"]))
self addMenuPar_withDef("main_powerups", "Nuke Bomb", ::GivePowerUp, "nuke");
if (isDefined( level.zombie_include_powerups["green_nuke"]))
self addMenuPar_withDef("main_powerups", "Green Nuke Bomb", ::GivePowerUp, "green_nuke");
if (isDefined( level.zombie_include_powerups["red_nuke"]))
self addMenuPar_withDef("main_powerups", "Red Nuke Bomb", ::GivePowerUp, "red_nuke");
if (isDefined( level.zombie_include_powerups["yellow_nuke"]))
self addMenuPar_withDef("main_powerups", "Yellow Nuke Bomb", ::GivePowerUp, "yellow_nuke");
if (isDefined( level.zombie_include_powerups["insta_kill"]))
self addMenuPar_withDef("main_powerups", "Insta Kill", ::GivePowerUp, "insta_kill");
if (isDefined( level.zombie_include_powerups["green_insta"]))
self addMenuPar_withDef("main_powerups", "Green Insta Kill", ::GivePowerUp, "green_insta");
if (isDefined(level.zombie_include_powerups["insta_kill_ug"]))
self addMenuPar_withDef("main_powerups", "Insta Kill Ug", ::GivePowerUp, "insta_kill_ug");
if (isDefined(level.zombie_include_powerups["full_ammo"]))
self addMenuPar_withDef("main_powerups", "Full Ammo", ::GivePowerUp, "full_ammo");
if (isDefined(level.zombie_include_powerups["green_ammo"]))
self addMenuPar_withDef("main_powerups", "Green Full Ammo", ::GivePowerUp, "green_ammo");
if (isDefined(level.zombie_include_powerups["red_ammo"]))
self addMenuPar_withDef("main_powerups", "Red Full Ammo", ::GivePowerUp, "red_ammo");
if (isDefined(level.zombie_include_powerups["double_points"]))
self addMenuPar_withDef("main_powerups", "Double Points", ::GivePowerUp, "double_points");
if (isDefined(level.zombie_include_powerups["green_double"]))
self addMenuPar_withDef("main_powerups", "Green Double Points", ::GivePowerUp, "green_double");
if (isDefined(level.zombie_include_powerups["yellow_double"]))
self addMenuPar_withDef("main_powerups", "Red Double Points", ::GivePowerUp, "red_double");
if (isDefined(level.zombie_include_powerups["yellow_double"]))
self addMenuPar_withDef("main_powerups", "Yellow Double Points", ::GivePowerUp, "yellow_double");
if (isDefined(level.zombie_include_powerups["carpenter"]))
self addMenuPar_withDef("main_powerups", "Carpenter", ::GivePowerUp, "carpenter");
if (isDefined(level.zombie_include_powerups["fire_sale"]))
self addMenuPar_withDef("main_powerups", "Fire Sale", ::GivePowerUp, "fire_sale");
if (isDefined(level.zombie_include_powerups["bonfire_sale"]))
self addMenuPar_withDef("main_powerups", "Bonfire Sale", ::GivePowerUp, "bonfire_sale");
if (isDefined(level.zombie_include_powerups["minigun"]))
self addMenuPar_withDef("main_powerups", "Minigun", ::GivePowerUp, "minigun");
if (isDefined(level.zombie_include_powerups["free_perk"]))
self addMenuPar_withDef("main_powerups", "Free Perk", ::GivePowerUp, "free_perk");
if (isDefined(level.zombie_include_powerups["tesla"]))
self addMenuPar_withDef("main_powerups", "Tesla", ::GivePowerUp, "tesla");
if (isDefined(level.zombie_include_powerups["random_weapon"]))
self addMenuPar_withDef("main_powerups", "Random Weapon", ::GivePowerUp, "random_weapon");
if (isDefined(level.zombie_include_powerups["teller_withdrawl"]))
self addMenuPar_withDef("main_powerups", "Bank Points", ::GivePowerUp, "teller_withdrawl");
if (isDefined(level.zombie_include_powerups["bonus_points_player"]))
self addMenuPar_withDef("main_powerups", "Bonus Points Player", ::GivePowerUp, "bonus_points_player");
if (isDefined(level.zombie_include_powerups["lose_points_player"]))
self addMenuPar_withDef("main_powerups", "Lose Points Player", ::GivePowerUp, "lose_points_player");
if (isDefined(level.zombie_include_powerups["bonus_points_team"]))
self addMenuPar_withDef("main_powerups", "Bonus Points Team", ::GivePowerUp, "bonus_points_team");
if (isDefined(level.zombie_include_powerups["lose_points_team"]))
self addMenuPar_withDef("main_powerups", "Lose Points Team", ::GivePowerUp, "lose_points_team");
if (isDefined(level.zombie_include_powerups["lose_perk"]))
self addMenuPar_withDef("main_powerups", "Lose Perk", ::GivePowerUp, "lose_perk");
if (isDefined(level.zombie_include_powerups["empty_clip"]))
self addMenuPar_withDef("main_powerups", "Empty Clip", ::GivePowerUp, "empty_clip");
if (isDefined(level.zombie_include_powerups["meat_stink"]))
self addMenuPar_withDef("main_powerups", "Meat Stink", ::GivePowerUp, "meat_stink");
if (isDefined(level.zombie_include_powerups["the_cure"]))
self addMenuPar_withDef("main_powerups", "The Cure", ::GivePowerUp, "the_cure");
if (isDefined(level.zombie_include_powerups["blue_monkey"]))
self addMenuPar_withDef("main_powerups", "Blue Monkey", ::GivePowerUp, "blue_monkey");
if (isDefined(level.zombie_include_powerups["green_monkey"]))
self addMenuPar_withDef("main_powerups", "Green Monkey", ::GivePowerUp, "green_monkey");
if (isDefined(level.zombie_include_powerups["zombie_blood"]))
self addMenuPar_withDef("main_powerups", "Zombie Blood", ::GivePowerUp, "zombie_blood");
}
}
Do you use ::SubMenu, "Power Ups Menu" ?First of all you need to create a function, which gave you the power up. I used the function from the game and spawn the powerup at my self.origin so the player will take it instatly.
Add this function to your script:
Code:func_GivePowerUp(powerup_name) //INPUT is the "Code" name of a powerup. { if (!isDefined(level.zombie_include_powerups) || (!(level.zombie_include_powerups.size > 0))) //check the powerup are allowed? self iprintln("Power Ups ^1Not Supported ^7On This Map"); else { level.powerup_drop_count = 0; powerup = level maps/mp/zombies/_zm_powerups::specific_powerup_drop(powerup_name, self.origin); if (powerup_name == "teller_withdrawl") powerup.value = 1000; powerup thread maps/mp/zombies/_zm_powerups::powerup_timeout(); self iprintln("PowerUps (" + powerup_name + ") ^2Gived^7"); } }
If you done that, you need to create the menu list for the powerups.
That's my one:
Code:updateMenu_powerups_list_menu() { self addmenu("main_powerups", "Power Ups Menu", "main"); /*powerups = GetArrayKeys(level.zombie_include_powerups); //TODO: old version I do newone because the names ... :D for(i = 0; i < fxs.size; i++) { self addMenuPar_withDef("main_powerups","Spawn "+powerups[i],::GivePowerUp, powerups[i]); wait .00001; }*/ if (isDefined(level.zombie_include_powerups) && (level.zombie_include_powerups.size > 0)) { self addMenuPar_withDef("main_powerups","Toggle Shoot PowerUps",::Toggle_ShootPowerUps); if (isDefined( level.zombie_include_powerups["nuke"])) self addMenuPar_withDef("main_powerups", "Nuke Bomb", ::GivePowerUp, "nuke"); if (isDefined( level.zombie_include_powerups["green_nuke"])) self addMenuPar_withDef("main_powerups", "Green Nuke Bomb", ::GivePowerUp, "green_nuke"); if (isDefined( level.zombie_include_powerups["red_nuke"])) self addMenuPar_withDef("main_powerups", "Red Nuke Bomb", ::GivePowerUp, "red_nuke"); if (isDefined( level.zombie_include_powerups["yellow_nuke"])) self addMenuPar_withDef("main_powerups", "Yellow Nuke Bomb", ::GivePowerUp, "yellow_nuke"); if (isDefined( level.zombie_include_powerups["insta_kill"])) self addMenuPar_withDef("main_powerups", "Insta Kill", ::GivePowerUp, "insta_kill"); if (isDefined( level.zombie_include_powerups["green_insta"])) self addMenuPar_withDef("main_powerups", "Green Insta Kill", ::GivePowerUp, "green_insta"); if (isDefined(level.zombie_include_powerups["insta_kill_ug"])) self addMenuPar_withDef("main_powerups", "Insta Kill Ug", ::GivePowerUp, "insta_kill_ug"); if (isDefined(level.zombie_include_powerups["full_ammo"])) self addMenuPar_withDef("main_powerups", "Full Ammo", ::GivePowerUp, "full_ammo"); if (isDefined(level.zombie_include_powerups["green_ammo"])) self addMenuPar_withDef("main_powerups", "Green Full Ammo", ::GivePowerUp, "green_ammo"); if (isDefined(level.zombie_include_powerups["red_ammo"])) self addMenuPar_withDef("main_powerups", "Red Full Ammo", ::GivePowerUp, "red_ammo"); if (isDefined(level.zombie_include_powerups["double_points"])) self addMenuPar_withDef("main_powerups", "Double Points", ::GivePowerUp, "double_points"); if (isDefined(level.zombie_include_powerups["green_double"])) self addMenuPar_withDef("main_powerups", "Green Double Points", ::GivePowerUp, "green_double"); if (isDefined(level.zombie_include_powerups["yellow_double"])) self addMenuPar_withDef("main_powerups", "Red Double Points", ::GivePowerUp, "red_double"); if (isDefined(level.zombie_include_powerups["yellow_double"])) self addMenuPar_withDef("main_powerups", "Yellow Double Points", ::GivePowerUp, "yellow_double"); if (isDefined(level.zombie_include_powerups["carpenter"])) self addMenuPar_withDef("main_powerups", "Carpenter", ::GivePowerUp, "carpenter"); if (isDefined(level.zombie_include_powerups["fire_sale"])) self addMenuPar_withDef("main_powerups", "Fire Sale", ::GivePowerUp, "fire_sale"); if (isDefined(level.zombie_include_powerups["bonfire_sale"])) self addMenuPar_withDef("main_powerups", "Bonfire Sale", ::GivePowerUp, "bonfire_sale"); if (isDefined(level.zombie_include_powerups["minigun"])) self addMenuPar_withDef("main_powerups", "Minigun", ::GivePowerUp, "minigun"); if (isDefined(level.zombie_include_powerups["free_perk"])) self addMenuPar_withDef("main_powerups", "Free Perk", ::GivePowerUp, "free_perk"); if (isDefined(level.zombie_include_powerups["tesla"])) self addMenuPar_withDef("main_powerups", "Tesla", ::GivePowerUp, "tesla"); if (isDefined(level.zombie_include_powerups["random_weapon"])) self addMenuPar_withDef("main_powerups", "Random Weapon", ::GivePowerUp, "random_weapon"); if (isDefined(level.zombie_include_powerups["teller_withdrawl"])) self addMenuPar_withDef("main_powerups", "Bank Points", ::GivePowerUp, "teller_withdrawl"); if (isDefined(level.zombie_include_powerups["bonus_points_player"])) self addMenuPar_withDef("main_powerups", "Bonus Points Player", ::GivePowerUp, "bonus_points_player"); if (isDefined(level.zombie_include_powerups["lose_points_player"])) self addMenuPar_withDef("main_powerups", "Lose Points Player", ::GivePowerUp, "lose_points_player"); if (isDefined(level.zombie_include_powerups["bonus_points_team"])) self addMenuPar_withDef("main_powerups", "Bonus Points Team", ::GivePowerUp, "bonus_points_team"); if (isDefined(level.zombie_include_powerups["lose_points_team"])) self addMenuPar_withDef("main_powerups", "Lose Points Team", ::GivePowerUp, "lose_points_team"); if (isDefined(level.zombie_include_powerups["lose_perk"])) self addMenuPar_withDef("main_powerups", "Lose Perk", ::GivePowerUp, "lose_perk"); if (isDefined(level.zombie_include_powerups["empty_clip"])) self addMenuPar_withDef("main_powerups", "Empty Clip", ::GivePowerUp, "empty_clip"); if (isDefined(level.zombie_include_powerups["meat_stink"])) self addMenuPar_withDef("main_powerups", "Meat Stink", ::GivePowerUp, "meat_stink"); if (isDefined(level.zombie_include_powerups["the_cure"])) self addMenuPar_withDef("main_powerups", "The Cure", ::GivePowerUp, "the_cure"); if (isDefined(level.zombie_include_powerups["blue_monkey"])) self addMenuPar_withDef("main_powerups", "Blue Monkey", ::GivePowerUp, "blue_monkey"); if (isDefined(level.zombie_include_powerups["green_monkey"])) self addMenuPar_withDef("main_powerups", "Green Monkey", ::GivePowerUp, "green_monkey"); if (isDefined(level.zombie_include_powerups["zombie_blood"])) self addMenuPar_withDef("main_powerups", "Zombie Blood", ::GivePowerUp, "zombie_blood"); } }
You can easily copy the Name and the Input and the if check from my list. The if checks the powerup status for each powerup.
Feel free to use it, but give credits
Regards,
CabCon.
First of all you need to create a function, which gave you the power up. I used the function from the game and spawn the powerup at my self.origin so the player will take it instatly.
Add this function to your script:
Code:func_GivePowerUp(powerup_name) //INPUT is the "Code" name of a powerup. { if (!isDefined(level.zombie_include_powerups) || (!(level.zombie_include_powerups.size > 0))) //check the powerup are allowed? self iprintln("Power Ups ^1Not Supported ^7On This Map"); else { level.powerup_drop_count = 0; powerup = level maps/mp/zombies/_zm_powerups::specific_powerup_drop(powerup_name, self.origin); if (powerup_name == "teller_withdrawl") powerup.value = 1000; powerup thread maps/mp/zombies/_zm_powerups::powerup_timeout(); self iprintln("PowerUps (" + powerup_name + ") ^2Gived^7"); } }
If you done that, you need to create the menu list for the powerups.
That's my one:
Code:updateMenu_powerups_list_menu() { self addmenu("main_powerups", "Power Ups Menu", "main"); /*powerups = GetArrayKeys(level.zombie_include_powerups); //TODO: old version I do newone because the names ... :D for(i = 0; i < fxs.size; i++) { self addMenuPar_withDef("main_powerups","Spawn "+powerups[i],::GivePowerUp, powerups[i]); wait .00001; }*/ if (isDefined(level.zombie_include_powerups) && (level.zombie_include_powerups.size > 0)) { self addMenuPar_withDef("main_powerups","Toggle Shoot PowerUps",::Toggle_ShootPowerUps); if (isDefined( level.zombie_include_powerups["nuke"])) self addMenuPar_withDef("main_powerups", "Nuke Bomb", ::GivePowerUp, "nuke"); if (isDefined( level.zombie_include_powerups["green_nuke"])) self addMenuPar_withDef("main_powerups", "Green Nuke Bomb", ::GivePowerUp, "green_nuke"); if (isDefined( level.zombie_include_powerups["red_nuke"])) self addMenuPar_withDef("main_powerups", "Red Nuke Bomb", ::GivePowerUp, "red_nuke"); if (isDefined( level.zombie_include_powerups["yellow_nuke"])) self addMenuPar_withDef("main_powerups", "Yellow Nuke Bomb", ::GivePowerUp, "yellow_nuke"); if (isDefined( level.zombie_include_powerups["insta_kill"])) self addMenuPar_withDef("main_powerups", "Insta Kill", ::GivePowerUp, "insta_kill"); if (isDefined( level.zombie_include_powerups["green_insta"])) self addMenuPar_withDef("main_powerups", "Green Insta Kill", ::GivePowerUp, "green_insta"); if (isDefined(level.zombie_include_powerups["insta_kill_ug"])) self addMenuPar_withDef("main_powerups", "Insta Kill Ug", ::GivePowerUp, "insta_kill_ug"); if (isDefined(level.zombie_include_powerups["full_ammo"])) self addMenuPar_withDef("main_powerups", "Full Ammo", ::GivePowerUp, "full_ammo"); if (isDefined(level.zombie_include_powerups["green_ammo"])) self addMenuPar_withDef("main_powerups", "Green Full Ammo", ::GivePowerUp, "green_ammo"); if (isDefined(level.zombie_include_powerups["red_ammo"])) self addMenuPar_withDef("main_powerups", "Red Full Ammo", ::GivePowerUp, "red_ammo"); if (isDefined(level.zombie_include_powerups["double_points"])) self addMenuPar_withDef("main_powerups", "Double Points", ::GivePowerUp, "double_points"); if (isDefined(level.zombie_include_powerups["green_double"])) self addMenuPar_withDef("main_powerups", "Green Double Points", ::GivePowerUp, "green_double"); if (isDefined(level.zombie_include_powerups["yellow_double"])) self addMenuPar_withDef("main_powerups", "Red Double Points", ::GivePowerUp, "red_double"); if (isDefined(level.zombie_include_powerups["yellow_double"])) self addMenuPar_withDef("main_powerups", "Yellow Double Points", ::GivePowerUp, "yellow_double"); if (isDefined(level.zombie_include_powerups["carpenter"])) self addMenuPar_withDef("main_powerups", "Carpenter", ::GivePowerUp, "carpenter"); if (isDefined(level.zombie_include_powerups["fire_sale"])) self addMenuPar_withDef("main_powerups", "Fire Sale", ::GivePowerUp, "fire_sale"); if (isDefined(level.zombie_include_powerups["bonfire_sale"])) self addMenuPar_withDef("main_powerups", "Bonfire Sale", ::GivePowerUp, "bonfire_sale"); if (isDefined(level.zombie_include_powerups["minigun"])) self addMenuPar_withDef("main_powerups", "Minigun", ::GivePowerUp, "minigun"); if (isDefined(level.zombie_include_powerups["free_perk"])) self addMenuPar_withDef("main_powerups", "Free Perk", ::GivePowerUp, "free_perk"); if (isDefined(level.zombie_include_powerups["tesla"])) self addMenuPar_withDef("main_powerups", "Tesla", ::GivePowerUp, "tesla"); if (isDefined(level.zombie_include_powerups["random_weapon"])) self addMenuPar_withDef("main_powerups", "Random Weapon", ::GivePowerUp, "random_weapon"); if (isDefined(level.zombie_include_powerups["teller_withdrawl"])) self addMenuPar_withDef("main_powerups", "Bank Points", ::GivePowerUp, "teller_withdrawl"); if (isDefined(level.zombie_include_powerups["bonus_points_player"])) self addMenuPar_withDef("main_powerups", "Bonus Points Player", ::GivePowerUp, "bonus_points_player"); if (isDefined(level.zombie_include_powerups["lose_points_player"])) self addMenuPar_withDef("main_powerups", "Lose Points Player", ::GivePowerUp, "lose_points_player"); if (isDefined(level.zombie_include_powerups["bonus_points_team"])) self addMenuPar_withDef("main_powerups", "Bonus Points Team", ::GivePowerUp, "bonus_points_team"); if (isDefined(level.zombie_include_powerups["lose_points_team"])) self addMenuPar_withDef("main_powerups", "Lose Points Team", ::GivePowerUp, "lose_points_team"); if (isDefined(level.zombie_include_powerups["lose_perk"])) self addMenuPar_withDef("main_powerups", "Lose Perk", ::GivePowerUp, "lose_perk"); if (isDefined(level.zombie_include_powerups["empty_clip"])) self addMenuPar_withDef("main_powerups", "Empty Clip", ::GivePowerUp, "empty_clip"); if (isDefined(level.zombie_include_powerups["meat_stink"])) self addMenuPar_withDef("main_powerups", "Meat Stink", ::GivePowerUp, "meat_stink"); if (isDefined(level.zombie_include_powerups["the_cure"])) self addMenuPar_withDef("main_powerups", "The Cure", ::GivePowerUp, "the_cure"); if (isDefined(level.zombie_include_powerups["blue_monkey"])) self addMenuPar_withDef("main_powerups", "Blue Monkey", ::GivePowerUp, "blue_monkey"); if (isDefined(level.zombie_include_powerups["green_monkey"])) self addMenuPar_withDef("main_powerups", "Green Monkey", ::GivePowerUp, "green_monkey"); if (isDefined(level.zombie_include_powerups["zombie_blood"])) self addMenuPar_withDef("main_powerups", "Zombie Blood", ::GivePowerUp, "zombie_blood"); } }
You can easily copy the Name and the Input and the if check from my list. The if checks the powerup status for each powerup.
Feel free to use it, but give credits
Regards,
CabCon.
I got it workingFirst of all you need to create a function, which gave you the power up. I used the function from the game and spawn the powerup at my self.origin so the player will take it instatly.
Add this function to your script:
Code:func_GivePowerUp(powerup_name) //INPUT is the "Code" name of a powerup. { if (!isDefined(level.zombie_include_powerups) || (!(level.zombie_include_powerups.size > 0))) //check the powerup are allowed? self iprintln("Power Ups ^1Not Supported ^7On This Map"); else { level.powerup_drop_count = 0; powerup = level maps/mp/zombies/_zm_powerups::specific_powerup_drop(powerup_name, self.origin); if (powerup_name == "teller_withdrawl") powerup.value = 1000; powerup thread maps/mp/zombies/_zm_powerups::powerup_timeout(); self iprintln("PowerUps (" + powerup_name + ") ^2Gived^7"); } }
If you done that, you need to create the menu list for the powerups.
That's my one:
Code:updateMenu_powerups_list_menu() { self addmenu("main_powerups", "Power Ups Menu", "main"); /*powerups = GetArrayKeys(level.zombie_include_powerups); //TODO: old version I do newone because the names ... :D for(i = 0; i < fxs.size; i++) { self addMenuPar_withDef("main_powerups","Spawn "+powerups[i],::GivePowerUp, powerups[i]); wait .00001; }*/ if (isDefined(level.zombie_include_powerups) && (level.zombie_include_powerups.size > 0)) { self addMenuPar_withDef("main_powerups","Toggle Shoot PowerUps",::Toggle_ShootPowerUps); if (isDefined( level.zombie_include_powerups["nuke"])) self addMenuPar_withDef("main_powerups", "Nuke Bomb", ::GivePowerUp, "nuke"); if (isDefined( level.zombie_include_powerups["green_nuke"])) self addMenuPar_withDef("main_powerups", "Green Nuke Bomb", ::GivePowerUp, "green_nuke"); if (isDefined( level.zombie_include_powerups["red_nuke"])) self addMenuPar_withDef("main_powerups", "Red Nuke Bomb", ::GivePowerUp, "red_nuke"); if (isDefined( level.zombie_include_powerups["yellow_nuke"])) self addMenuPar_withDef("main_powerups", "Yellow Nuke Bomb", ::GivePowerUp, "yellow_nuke"); if (isDefined( level.zombie_include_powerups["insta_kill"])) self addMenuPar_withDef("main_powerups", "Insta Kill", ::GivePowerUp, "insta_kill"); if (isDefined( level.zombie_include_powerups["green_insta"])) self addMenuPar_withDef("main_powerups", "Green Insta Kill", ::GivePowerUp, "green_insta"); if (isDefined(level.zombie_include_powerups["insta_kill_ug"])) self addMenuPar_withDef("main_powerups", "Insta Kill Ug", ::GivePowerUp, "insta_kill_ug"); if (isDefined(level.zombie_include_powerups["full_ammo"])) self addMenuPar_withDef("main_powerups", "Full Ammo", ::GivePowerUp, "full_ammo"); if (isDefined(level.zombie_include_powerups["green_ammo"])) self addMenuPar_withDef("main_powerups", "Green Full Ammo", ::GivePowerUp, "green_ammo"); if (isDefined(level.zombie_include_powerups["red_ammo"])) self addMenuPar_withDef("main_powerups", "Red Full Ammo", ::GivePowerUp, "red_ammo"); if (isDefined(level.zombie_include_powerups["double_points"])) self addMenuPar_withDef("main_powerups", "Double Points", ::GivePowerUp, "double_points"); if (isDefined(level.zombie_include_powerups["green_double"])) self addMenuPar_withDef("main_powerups", "Green Double Points", ::GivePowerUp, "green_double"); if (isDefined(level.zombie_include_powerups["yellow_double"])) self addMenuPar_withDef("main_powerups", "Red Double Points", ::GivePowerUp, "red_double"); if (isDefined(level.zombie_include_powerups["yellow_double"])) self addMenuPar_withDef("main_powerups", "Yellow Double Points", ::GivePowerUp, "yellow_double"); if (isDefined(level.zombie_include_powerups["carpenter"])) self addMenuPar_withDef("main_powerups", "Carpenter", ::GivePowerUp, "carpenter"); if (isDefined(level.zombie_include_powerups["fire_sale"])) self addMenuPar_withDef("main_powerups", "Fire Sale", ::GivePowerUp, "fire_sale"); if (isDefined(level.zombie_include_powerups["bonfire_sale"])) self addMenuPar_withDef("main_powerups", "Bonfire Sale", ::GivePowerUp, "bonfire_sale"); if (isDefined(level.zombie_include_powerups["minigun"])) self addMenuPar_withDef("main_powerups", "Minigun", ::GivePowerUp, "minigun"); if (isDefined(level.zombie_include_powerups["free_perk"])) self addMenuPar_withDef("main_powerups", "Free Perk", ::GivePowerUp, "free_perk"); if (isDefined(level.zombie_include_powerups["tesla"])) self addMenuPar_withDef("main_powerups", "Tesla", ::GivePowerUp, "tesla"); if (isDefined(level.zombie_include_powerups["random_weapon"])) self addMenuPar_withDef("main_powerups", "Random Weapon", ::GivePowerUp, "random_weapon"); if (isDefined(level.zombie_include_powerups["teller_withdrawl"])) self addMenuPar_withDef("main_powerups", "Bank Points", ::GivePowerUp, "teller_withdrawl"); if (isDefined(level.zombie_include_powerups["bonus_points_player"])) self addMenuPar_withDef("main_powerups", "Bonus Points Player", ::GivePowerUp, "bonus_points_player"); if (isDefined(level.zombie_include_powerups["lose_points_player"])) self addMenuPar_withDef("main_powerups", "Lose Points Player", ::GivePowerUp, "lose_points_player"); if (isDefined(level.zombie_include_powerups["bonus_points_team"])) self addMenuPar_withDef("main_powerups", "Bonus Points Team", ::GivePowerUp, "bonus_points_team"); if (isDefined(level.zombie_include_powerups["lose_points_team"])) self addMenuPar_withDef("main_powerups", "Lose Points Team", ::GivePowerUp, "lose_points_team"); if (isDefined(level.zombie_include_powerups["lose_perk"])) self addMenuPar_withDef("main_powerups", "Lose Perk", ::GivePowerUp, "lose_perk"); if (isDefined(level.zombie_include_powerups["empty_clip"])) self addMenuPar_withDef("main_powerups", "Empty Clip", ::GivePowerUp, "empty_clip"); if (isDefined(level.zombie_include_powerups["meat_stink"])) self addMenuPar_withDef("main_powerups", "Meat Stink", ::GivePowerUp, "meat_stink"); if (isDefined(level.zombie_include_powerups["the_cure"])) self addMenuPar_withDef("main_powerups", "The Cure", ::GivePowerUp, "the_cure"); if (isDefined(level.zombie_include_powerups["blue_monkey"])) self addMenuPar_withDef("main_powerups", "Blue Monkey", ::GivePowerUp, "blue_monkey"); if (isDefined(level.zombie_include_powerups["green_monkey"])) self addMenuPar_withDef("main_powerups", "Green Monkey", ::GivePowerUp, "green_monkey"); if (isDefined(level.zombie_include_powerups["zombie_blood"])) self addMenuPar_withDef("main_powerups", "Zombie Blood", ::GivePowerUp, "zombie_blood"); } }
You can easily copy the Name and the Input and the if check from my list. The if checks the powerup status for each powerup.
Feel free to use it, but give credits
Regards,
CabCon.
That's the question.How is this helpful to anyone
Btw Really* xD
Does it work ingame?I got it working
Ok, it's dynamic so some don't work on some maps that's normal.Well, I changed it so all of them appear, but some don't work