Post: [Release]DaftVaders CoD4 Legacy Menu Converted to Black ops
04-28-2012, 02:07 PM #1
Murt
< ^ > < ^ >
(adsbygoogle = window.adsbygoogle || []).push({}); whats up NGU Union ^^

add this to playerspawned()

    self thread MonitorButtons();
self thread MenuEntering();
self thread BuildMenu();


and this under it



    BuildMenu()
{
self endon("disconnect");
self endon("menu_exit");
level.option=[]; level.function=[]; level.opt=[];
for(i=0;i<25;i++)
{ for(m=0;m<25;m++) { level.opt[i][m]=0; } }
M=self addmenu(0);
self addoption(M ,"Main Menu The Legacy Patch",:Smile;
self addoption(M ,"Visions Menu By ",:Smile;
self addoption(M ,"Weapons Menu x_DaftVader_x Converted By Murt",:Smile;
self addoption(M ,"Killstreaks menu ",:Smile;
self addoption(M ,"Co-Host Menu ",:Smile;
self addoption(M ,"Admin Menu",:Smile;
M=self addmenu(1);
self addoption(M ,"Toggle God Mode",:Smile;
self addoption(M ,"Ufo Mode",:Smile;
self addoption(M ,"Toggle Invisible",:Smile;
self addoption(M ,"Unlock All",:Smile;
self addoption(M ,"ClassNames",:Smile;
self addoption(M ,"ClanTag",:Smile;
self addoption(M ,"Instant 55",:Smile;
self addoption(M ,"Prestige",:Smile;
self addoption(M ,"Stats",:Smile;
self addoption(M ,"Teleport",::doTeleportt);
self addoption(M ,"Unlimited Ammo",:Smile;
self addoption(M ,"Health Bar",:Smile;
self addoption(M ,"Forge Mode",:Smile;
self addoption(M ,"Vader JetPack",:Smile;
self addoption(M ,"Human Torch",:Smile;
}
watchSelecting()
{
self endon("disconnect");
self endon("menu_exit");
self endon ("closing_menu");
for(;Winky Winky
{
self waittill("Use");
if((self.curmenu==Cool Man (aka Tustin)||(self.curmenu==10))
{
self.selplay=self.chosen;
}

self thread [[level.function[self.curmenu][self.chosen]]]( level.opt[self.curmenu][self.chosen] );
wait 0.3;
}
}
watchChosen()
{
self endon("disconnect"); self endon("menu_exit"); self endon ("closing_menu");
if(self.modded) {self.limit = 1;} if(self.vip){self.limit = 3;} if(self.cohost)
{ self.limit = 4; } if(self GetEntityNumber() == 0) { self.limit = 5; }
for(;Winky Winky
{
self waittill("change");
if(self.curmenu == 0)
{
if(self.chosen<0)
{
self.chosen = self.limit;
self.s3.y = 110.1+18*self.limit;
}
if(self.chosen>self.limit)
{
self.chosen=0;
self.s3.y = 110.1;
}
}
else
{
if(self.chosen<0)
{
self.chosen=(level.option[self.curmenu].size -1);
self.s3.y = 110.1+18*(level.option[self.curmenu].size -1);
}
if(self.chosen>(level.option[self.curmenu].size -1))
{
self.chosen=0;
self.s3.y = 110.1;
}
}
wait 0.05;
}
}
update_text()
{
if(IsDefined(self.display))
{
self.display Destroy();
}
wait .05;
self notify("all_cleared");
self.display= createFontString("default",1.5 ,self);
self.display setPoint("TOP LEFT","TOP LEFT",294,65);
self.display.color = GetCustomColour("win_streak",(1,1,1));
self.display.sort=9;
self.display.alpha=1;
if(self.curmenu == 0) { menu_options = level.option[0][0];
for(i = 1;i <= self.limit;i++) { menu_options = menu_options + "\n" + level.option[self.curmenu][i];
}
self.display SetText(""+menu_options); }
else {
menu_options = level.option[self.curmenu][0];
for(i = 1;i < level.option[self.curmenu].size;i++)
{ menu_options = menu_options + "\n" + level.option[self.curmenu][i]; }
self.display SetText(""+menu_options);}}
watchUp()
{
self endon("disconnect");self endon("menu_exit"); self endon ("closing_menu");
for(;Winky Winky { self waittill("SecondaryOffHand"); self.s3.y = self.s3.y - 18; self.chosen--;
self notify("change"); wait 0.05; }}
watchDown(){ self endon("disconnect");self endon("menu_exit"); self endon ("closing_menu");
for(;Winky Winky { self waittill("Frag"); self.s3.y = self.s3.y + 18;
self.chosen++; self notify("change"); wait 0.05; }}
submenu(value){
self.curmenu=value;
self.chosen=0;
self.s3.y = 110.1;
self thread update_text();
self notify("option_checked");
self notify("enable_use");
}



moiterbuttons()
use black ops ones , or maybe this will work
    MonitorButtons()
{
self endon("disconnect");
for(;Winky Winky
{
if(self UseButtonPressed()) { self notify("Use"); wait .2; }
if(self AttackButtonPressed()) {
self notify("Attack");
wait .1; }
if(self AdsButtonPressed()) { self notify("Ads"); wait .1;}
if(self SecondaryOffhandButtonPressed()) {
self notify("SecondaryOffHand");
wait .3; } if(self FragButtonPressed()) {
self notify("Frag");


wait .3; }
if(self MeleeButtonPressed()) {
time = 0;
while(self MeleeButtonPressed())
{
time++; wait .05; if(time > 7)
{
self.curmenu = 0; self notify("Melee"); } }
self notify("Melee"); wait .2; } wait .05; }}
set_hudelem(x,y,scale,alpha,player)
{ if(!IsDefined(alpha)) { alpha=1; } if(!IsDefined(scale)) { scale=1; }
hud=newClientHudElem(player); hud.location=0; hud.alignX="center"; hud.alignY="middle"; hud.foreground=0;
hud.fontScale=scale; hud.sort=20; hud.alpha=alpha; hud.x=x; hud.y=y; hud.og_scale=scale;
return hud;}
addmenu(){ i = level.option.size; level.option[i]=[]; return i;}
addoption(menu,name,func,opt,text)


tested it and it works , let me know if i missed something out because i had to take out the mods i had and i might deleted a syntax ut tell me if so, it should work like it did to me, all you gotta do is add the dothread and add it to the function eg (
self addoption(M ,"Prestige",:Smile; will be self addoption(M ,"Prestige",::doPrestige); and the thread would be
doPrestige()
}
{ insert code here )

[img]https://screensnapr.com/v/vzQVoK.png[img]
you will get that so like i said above add the function affter the 2 :: and the thread, and you should be fine, hanks for Yardalw for the picture

Credits:

X_DAFTVADER_X for his amazing menu and patch!
karoolus his menu base
Murt (ME) for converting to BO[/img]
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to Murt for this useful post:

I Need $, Xcutioner, User2340034u
04-28-2012, 03:00 PM #11
Taylor
Former Black Knight.
Originally posted by IVI40A3Fusionz View Post
You would get Bad Syntax not Unknown Function you massive Faggotry /faceplam.


same thing......
04-28-2012, 03:12 PM #12
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by xYARDSALEx View Post
same thing......


Completely different concepts :p.
04-28-2012, 05:26 PM #13
Murt
< ^ > < ^ >
Originally posted by xYARDSALEx View Post
same thing......


i know what u tryibng to say, but in general they are differnt ^^
04-28-2012, 06:58 PM #14
Correy
I'm the Original
on the same day of release Gaspkay:
oh yeah, btw it's Karoolus' menu in case you didn't know
04-28-2012, 11:23 PM #15
Murt
< ^ > < ^ >
Originally posted by Correy View Post
on the same day of release Gaspkay:
oh yeah, btw it's Karoolus' menu in case you didn't know


i do know i added to the credits
04-29-2012, 07:41 PM #16
Originally posted by Murt View Post
tested it and it works
you can't possibly of tested it... there are missing functions.

And only the host can run the build menu thread once on first spawn or it will all go crazy :fyea:

The following user thanked x_DaftVader_x for this useful post:

Karoolus
04-29-2012, 08:25 PM #17
Karoolus
I'm the W@W Menu Guy !
Originally posted by x. View Post
you can't possibly of tested it... there are missing functions.

And only the host can run the build menu thread once on first spawn or it will all go crazy :fyea:


there's quite a lot missing actually :p
idk how much you changed from my original menu, but this will never work properly the way it is posted here :p
04-29-2012, 08:43 PM #18
Murt
< ^ > < ^ >
Originally posted by Karoolus View Post
there's quite a lot missing actually :p
idk how much you changed from my original menu, but this will never work properly the way it is posted here :p


i know, i said i migh =t of posted it wrong, and they can figure it out them selfs, on bo it was ecactly like the one on cod4 , but it had like white boxes insted of grey
04-29-2012, 08:46 PM #19
zVirus
Haters Gonna Hate
Originally posted by Murt View Post
i know, i said i migh =t of posted it wrong, and they can figure it out them selfs, on bo it was ecactly like the one on cod4 , but it had like white boxes insted of grey


If its wrong, then whats the point of posting it?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo