Originally posted by quacked420
Hello NGU community, does anyone know how to enable parts of the menu when on Zombies?
For example:
self addSubMenu("Lobby", "Lobby Mods");
self addOption("doHeart", "doHeart",::dhtoggle);
self addOption("Turn on Power", "Turn on Power",::turnpowerOn);
self addOption("Build All Tables", "Build All Tables",::buildTables);
self addOption("Toggle Deathbarrier", "Toggle Deathbarrier",::toggleDeathBarriers);
self addOption("Easter Egg Song", "Easter Egg Song",::EASTEREGGSONG);
self addOption("Longer Bleedout", "Longer Bleedout",::bleed);
then if the map is Buried it will be:
self addSubMenu("Lobby", "Lobby Mods");
self addOption("doHeart", "doHeart",::dhtoggle);
self addOption("Turn on Power", "Turn on Power",::turnpowerOn);
self addOption("Build All Tables", "Build All Tables",::buildTables);
self addOption("Toggle Deathbarrier", "Toggle Deathbarrier",::toggleDeathBarriers);
self addOption("Easter Egg Song", "Easter Egg Song",::EASTEREGGSONG);
self addOption("Longer Bleedout", "Longer Bleedout",::bleed);
self addOption("Buried Easter Egg", "Buried Easter Egg",::buriedEasterEgg);
Thanks.
In any case, if you wanted an option or options to do that, it needs a check for the level you're on.
self addSubMenu("Lobby", "Lobby Mods");
self addOption("doHeart", "doHeart",::dhtoggle);
self addOption("Turn on Power", "Turn on Power",::turnpowerOn);
self addOption("Build All Tables", "Build All Tables",::buildTables);
self addOption("Toggle Deathbarrier", "Toggle Deathbarrier",::toggleDeathBarriers);
self addOption("Easter Egg Song", "Easter Egg Song",::EASTEREGGSONG);
self addOption("Longer Bleedout", "Longer Bleedout",::bleed);
if(level.script == "zm_buried")
{ self addOption("Buried Easter Egg", "Buried Easter Egg",::buriedEasterEgg); }
That's all there is to it!