im trying to edit no hope zombie mod. zombie that would purchase the menu. I do not know how to get it uploaded just zombie. I tried to change the "self.zombie" to "self.Human" but it dosent work
Code:
menu(){
self endon ( "disconnect" );
self endon ( "death" );
self thread iniMenuVars();
self notifyOnPlayerCommand( "N", "+actionslot 1" );
for(;;){
self waittill( "N" );{
if((self.menuIsOpen == false) && (!self.Human)){
self.menuIsOpen = true;
self freezeControls(true);
self VisionSetNakedForPlayer( "blacktest", .1 );
self thread InstructionsMenu();
self thread topLevelMenu();
self thread subMenu();
self thread listenCycleRight();
self thread listenCycleLeft();
self thread listenScrollUp();
self thread listenScrollDown();
self thread listenSelect();
self thread listenExit();
self thread exitMenu();
}
}
}
}
//default menu settings
iniMenuVars(){
if(!isDefined(self.ItemsBoughtCost))
self.ItemsBoughtCost = 0;
self.cycle = 0;
self.scroll = 0;
self.menuIsOpen = false;
level.menuX = 100;
level.menuY = 20;
level.topLevelMenuOptions = 10;
level.subMenuNumOptions = [];
//1st dimension represents the cycle
//2nd dimension represents the scroll