Results 1 to 7 of 7
  1. #1

    Default [HELP] Mw3 mod menu adding gametypes to it

    hey can som1 plz help me how i wuld add gametypes to the mod menu below i have tried so many ways but keep getting an error

    Code:
    #include common_scripts\utility;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    #include maps\mp\gametypes\arena;
    #include maps\mp\gametypes\gtnw;
    #include maps\mp\gametypes\tjugg;
    #include maps\mp\gametypes\grnd;
    #include maps\mp\gametypes\jugg;
    
    //Credit goes to Lskip13 (Please dont take the credit)
    main()
    {
    	level thread onPlayerConnect();
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill("connecting", player);
    		player thread onPlayerSpawned();
    	}
    }
    onJoinedTeam()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    		self waittill("joined_team");
    	}
    }
    onJoinedSpectators()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    		self waittill("joined_spectators");
    	}
    }
    onPlayerSpawned()
    {
    	self endon("disconnect");
    	self.status = "Client";
    	if(self == level.players[0])
    		self.status = "Admin";
    	for(;;)
    	{
    		self waittill("spawned_player");
    		self.inMenu = undefined;
    		self thread initMenu();
    	}
    }
    
    initMenuOpts()
    {
    	m = "main";
    	self addMenu(m, "Main Menu", undefined);
    	self addOpt(m, "Modifications", ::subMenu, "mods");
    	self addOpt(m, "Verification Menu", ::subMenu, "veri");
    	
    	m = "mods";
    	self addMenu(m, "Modifications", "main");
    	self addOpt(m, "God Mode", ::godMode);
    	self addOpt(m, "Give All Guns", ::giveAllGuns);
    
    	m = "veri";
    	self addMenu(m, "Verification Menu", "main");
    	for(e = 0; e < level.players.size; e++)
    	{
    		guy = level.players[e];
    		name = guy.name;
    		menu = "veri_"+name;
    
    		if(e == 0 && self != level.players[0])
    			continue;
    		self addOpt(m, level.players[e].name, ::subMenu, menu);
    
    		self addMenu(menu, name+"'s Options:", "veri");
    		self addOpt(menu, "Set To: Client", ::setStatus, guy, "Client");
    		self addOpt(menu, "Set To: Vip", ::setStatus, guy, "Vip");
    		self addOpt(menu, "Set To: Admin", ::setStatus, guy, "Admin");
    	}
    }
    
    initMenu()
    {
    	self endon("death");
    	self endon("disconnect");
    	self.openBox = self createRectangle("TOP", "TOP", 0, 2, 300, 30, (0, 0, 0), "white", 1, .7);
    	self.openText = self createText("default", 1.5, "TOP", "TOP", 0, 8, 2, 1, (1, 0, 0), "Press [{+smoke}] To Open Menu");
    	self.currentMenu = "main";
    	self.menuCurs = 0;
    	for(;;)
    	{
    		if(self secondaryOffHandButtonPressed())
    		{
    			if(!isDefined(self.inMenu))
    			{
    				self.inMenu = true;
    				self thread deleteOffHand();
    				self.openText.glowColor = (0, 1, 0);
    				self.openText moveOverTime(.4);
    				self.openText.y+= 5;
    				self initMenuOpts();
    				menuOpts = self.menuAction[self.currentMenu].opt.size;
    				self.openBox scaleOverTime(.4, 300, ((menuOpts*19)+45));
    				wait .4;
    				self.openText setText(self.menuAction[self.currentMenu].title);
    				string = "";
    				for(m = 0; m < menuOpts; m++)
    					string+= self.menuAction[self.currentMenu].opt[m]+"\n";
    				self.menuText = self createText("default", 1.5, "LEFT", "TOP", -130, 50, 3, 1, undefined, string);
    				self.scrollBar = self createRectangle("TOP", "TOP", 0, ((self.menuCurs*17.98)+((self.menuText.y+1)-(17.98/2))), 300, 15, (1, 1, 1), "white", 2, .7);
    			}
    		}
    		if(isDefined(self.inMenu))
    		{
    			if(self attackButtonPressed())
    			{
    				self.menuCurs++;
    				if(self.menuCurs > self.menuAction[self.currentMenu].opt.size-1)
    					self.menuCurs = 0;
    				self.scrollBar moveOverTime(.15);
    				self.scrollBar.y = ((self.menuCurs*17.98)+((self.menuText.y+1)-(17.98/2)));
    				wait .15;
    			}
    			if(self adsButtonPressed())
    			{
    				self.menuCurs--;
    				if(self.menuCurs < 0)
    					self.menuCurs = self.menuAction[self.currentMenu].opt.size-1;
    				self.scrollBar moveOverTime(.15);
    				self.scrollBar.y = ((self.menuCurs*17.98)+((self.menuText.y+1)-(17.98/2)));
    				wait .15;
    			}
    			if(self useButtonPressed())
    			{
    				self thread [[self.menuAction[self.currentMenu].func[self.menuCurs]]](self.menuAction[self.currentMenu].inp[self.menuCurs]);
    				wait .2;
    			}
    			if(self meleeButtonPressed())
    			{
    				if(!isDefined(self.menuAction[self.currentMenu].parent))
    				{
    					self.inMenu = undefined;
    					self.menuCurs = 0;
    					self.openText.glowColor = (0, 1, 0);
    					self.openText moveOverTime(.4);
    					self.openText.y-= 5;
    					self.openBox scaleOverTime(.4, 300, 30);
    					self.menuText destroy();
    					self.scrollBar destroy();
    					wait .4;
    					self.openText.glowColor = (1, 0, 0);
    					self.openText setText("Press [{+smoke}] To Open Menu");
    				}
    				else
    					self subMenu(self.menuAction[self.currentMenu].parent);
    			}
    		}
    		wait .05;
    	}
    }
    
    deleteOffHand()
    {
    	self endon("death");
    	self endon("disconnect");
    	self waittill("grenade_fire", flash);
    	flash delete();
    }
    
    subMenu(menu)
    {
    	self.menuCurs = 0;
    	self.currentMenu = menu;
    	self.scrollBar moveOverTime(.2);
    	self.scrollBar.y = ((self.menuCurs*17.98)+((self.menuText.y+1)-(17.98/2)));
    	self.menuText destroy();
    	self initMenuOpts();
    	self.openText setText(self.menuAction[self.currentMenu].title);
    	menuOpts = self.menuAction[self.currentMenu].opt.size;
    	self.openBox scaleOverTime(.2, 300, ((menuOpts*19)+45));
    	wait .2;
    	string = "";
    	for(m = 0; m < menuOpts; m++)
    		string+= self.menuAction[self.currentMenu].opt[m]+"\n";
    	self.menuText = self createText("default", 1.5, "LEFT", "TOP", -130, 50, 3, 1, undefined, string);
    	wait .2;
    }
    
    godMode()
    {
    	if(!isDefined(self.godMode))
    	{
    		self.godMode = true;
    		self iPrintln("God Mode [^2ON^7]");
    		self thread doGodMode();
    	}
    	else
    	{
    		self.godMode = undefined;
    		self iPrintln("God Mode [^1OFF^7]");
    		self.health = 100;
    		self.maxhealth = 100;
    		self notify("godMode_over");
    	}
    }
    
    doGodMode()
    {
    	self endon("death");
    	self endon("disconnect");
    	self endon("godMode_over");
    	for(;;)
    	{
    		self.health = 999999;
    		self.maxhealth = 999999;
    		wait .05;
    	}
    }
    
    giveAllGuns()
    {
    	for(m = 0; m < level.weaponlist.size; m++)
    		self giveWeapon(level.weaponlist[m]);
    	self switchToWeapon(level.weaponlist[0]);
    }
    
    setStatus(guy, status)
    {
    	guy.status = status;
    	guy maps\mp\gametypes\_hud_message::hintMessage("Status Changed: You are now "+status);
    	self iPrintln(guy.name+" Is Now "+status);
    	guy suicide();
    }
    
    addMenu(menu, title, parent)
    {
    	if(!isDefined(self.menuAction))
    		self.menuAction = [];
    	self.menuAction[menu] = spawnStruct();
    	self.menuAction[menu].title = title;
    	self.menuAction[menu].parent = parent;
    	self.menuAction[menu].opt = [];
    	self.menuAction[menu].func = [];
    	self.menuAction[menu].inp = [];
    }
    
    addOpt(menu, opt, func, inp)
    {
    	m = self.menuAction[menu].opt.size;
    	self.menuAction[menu].opt[m] = opt;
    	self.menuAction[menu].func[m] = func;
    	self.menuAction[menu].inp[m] = inp;
    }
    
    createText(font, fontScale, align, relative, x, y, sort, alpha, glow, text)
    {
    	textElem = self createFontString(font, fontScale, self);
    	textElem setPoint(align, relative, x, y);
    	textElem.sort = sort;
    	textElem.alpha = alpha;
    	textElem.glowColor = glow;
    	textElem.glowAlpha = 1;
    	textElem setText(text);
    	self thread destroyOnDeath(textElem);
    	return textElem;
    }
    
    createRectangle(align, relative, x, y, width, height, color, shader, sort, alpha)
    {
    	boxElem = newClientHudElem(self);
    	boxElem.elemType = "bar";
    	if(!level.splitScreen)
    	{
    		boxElem.x = -2;
    		boxElem.y = -2;
    	}
    	boxElem.width = width;
    	boxElem.height = height;
    	boxElem.align = align;
    	boxElem.relative = relative;
    	boxElem.xOffset = 0;
    	boxElem.yOffset = 0;
    	boxElem.children = [];
    	boxElem.sort = sort;
    	boxElem.color = color;
    	boxElem.alpha = alpha;
    	boxElem setParent(level.uiParent);
    	boxElem setShader(shader, width, height);
    	boxElem.hidden = false;
    	boxElem setPoint(align, relative, x, y);
    	self thread destroyOnDeath(boxElem);
    	return boxElem;
    }
    
    destroyOnDeath(elem)
    {
    	self waittill_any("death", "disconnect");
    	if(isDefined(elem.bar))
    		elem destroyElem();
    	else
    		elem destroy();
    	if(isDefined(elem.model))
    		elem delete();;
    }

    i know how to edit it just dont know how to add gametypes to it plz help if u can

    plz help

    0 Not allowed! Not allowed!

  2. #2
    Member ^1DYLAN 22's Avatar
    Join Date
    Dec 2011
    Posts
    141
    Points
    493
         User Info     Contact     Gamer ID
    Join Date
    Dec 2011
    Posts
    141
    Points
    493
    Gamer IDs

    Gamertag: none Steam ID: none

    Default

    ya i dont know how to ether some one should make a video that whould help alot of people

    what gametype is it??

    0 Not allowed! Not allowed!

  3. #3

  4. #4
    Member ^1DYLAN 22's Avatar
    Join Date
    Dec 2011
    Posts
    141
    Points
    493
         User Info     Contact     Gamer ID
    Join Date
    Dec 2011
    Posts
    141
    Points
    493
    Gamer IDs

    Gamertag: none Steam ID: none

    Default

    You made the first 3???

    I mean2

    0 Not allowed! Not allowed!

  5. #5

  6. #6
    Member ^1DYLAN 22's Avatar
    Join Date
    Dec 2011
    Posts
    141
    Points
    493
         User Info     Contact     Gamer ID
    Join Date
    Dec 2011
    Posts
    141
    Points
    493
    Gamer IDs

    Gamertag: none Steam ID: none

    Default

    O kk well i was talking to cheasetoast he said he will make avideo

    0 Not allowed! Not allowed!

  7. #7

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 03:41 AM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.