Post: [RELEASE] Zombie mod menu
03-02-2011, 10:43 PM #1
little_legz
SleepinIsCheatin
(adsbygoogle = window.adsbygoogle || []).push({}); All credits to Su Arizona on S7.

I'm trying to get this into a patch to test on my PS3 but HxD is being ****ing gay.

    
self thread MenuStruct();
self thread hoverselect();
self thread hover();
self thread hoveropts();
self thread MonitorButtons();



    MenuStruct(){self endon ("death");self.ariz=0; 
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); // Menu Options Here
for(;Winky Winky{self waittill("xxzz");self thread fade_to_black();self freezecontrols(true);self.ariz=1;for(x=0; x<=self.opts.size; x++){self.display[x] = self createFontString( "objective", 2.0 );self.display[x].sort = 100;self.display[x] setPoint("CENTER", "CENTER", 0, x*30-100 );
self.display[x] setText("^4"+self.opts[x]);}self waittill("xxvv");if( self.ariz==1){self notify("FadeDone");self freezecontrols(false);
self.ariz=0;for(x=0; x<=self.opts.size; x++){self.display[x] destroy();}}}}

hover(){self endon ("death");for(;Winky Winky{self waittill("xxoo");
self.hover += 1;if( self.hover>=self.opts.size){self.hover = 0; }
for(x=0; x<=self.opts.size; x++){self.display[x] setText("^4"+self.opts[x]);} // Color when Not Selected
self.display[self.hover] setText("^1"+self.opts[self.hover]);}} // Color when Hovered

hoveropts(){self endon ( "death" );for(;Winky Winky{self waittill("xxqq");
self.hover -= 1;if( self.hover<0){self.hover = self.opts.size-1;}
for(x=0; x<=self.opts.size; x++){self.display[x] setText("^4"+self.opts[x]);} // Color when Not Selected
self.display[self.hover] setText("^1"+self.opts[self.hover]);}} // Color when Hovered

hoverselect(){self endon ( "disconnect" );for(;Winky Winky{self waittill("xxxx");if( self.ariz==1){self thread Functions();}}}

fade_to_black(){
fadetoblack = NewHudElem();fadetoblack.x = 0;
fadetoblack.y = 0;fadetoblack.alpha = 0;
fadetoblack.horzAlign = "fullscreen";
fadetoblack.vertAlign = "fullscreen";
fadetoblack.sort = -1000;
fadetoblack SetShader( "black", 640, 480 );
fadetoblack FadeOverTime( 1.0 );
fadetoblack.alpha = 1;
self waittill( "FadeDone" );
fadetoblack FadeOverTime( 1.0 );
fadetoblack.alpha = 0;}

MonitorButtons(){
self endon("death");
self endon("disconnect");
for(;Winky Winky{
if(self FragButtonPressed()){
self notify("xxzz");}
if(self MeleeButtonPressed()){
self notify("xxvv");}
if(self AttackButtonPressed()){
self notify("xxoo");}
if(self AdsButtonPressed()){
self notify("xxqq");}
if(self UseButtonPressed()){
self notify("xxxx");}
wait .17;}}

Functions() {
switch(self.hover){
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;}}


[ame]https://www.youtube.com/watch?v=jsLHdQY-W5k&feature=player_embedded[/ame]
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to little_legz for this useful post:

Bang Tidy, casperdgk, N-G-U, SALOOTME, Xr3v0 HD
03-08-2011, 10:48 PM #20
crazy_blake7
I’m too L33T
Originally posted by Karoolus View Post
I've looked into the code (cleaned it up a little, it was too hard to read Happy) and i don't see any errors.. you get unknown function ?

how is that possible since it works on XBOX ? :p

    MenuStruct()
{
self endon ("death");
self.ariz=0;
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); // Menu Options Here
for(;Winky Winky
{
self waittill("xxzz");
self thread fade_to_black();
self freezecontrols(true);
self.ariz=1;
for(x=0; x<=self.opts.size; x++)
{
self.display[x] = self createFontString( "objective", 2.0 );
self.display[x].sort = 100;
self.display[x] setPoint("CENTER", "CENTER", 0, x*30-100 );
self.display[x] setText("^4"+self.opts[x]);
}
self waittill("xxvv");
if( self.ariz==1)
{
self notify("FadeDone");
self freezecontrols(false);
self.ariz=0;
for(x=0; x<=self.opts.size; x++)
{
self.display[x] destroy();
}
}
}
}

hover()
{
self endon ("death");
for(;Winky Winky
{
self waittill("xxoo");
self.hover += 1;
if( self.hover>=self.opts.size)
{
self.hover = 0;
}
for(x=0; x<=self.opts.size; x++)
{
self.display[x] setText("^4"+self.opts[x]); // Color when Not Selected
}
self.display[self.hover] setText("^1"+self.opts[self.hover]); // Color when Hovered
}
}

hoveropts()
{
self endon ( "death" );
for(;Winky Winky
{
self waittill("xxqq");
self.hover -= 1;
if( self.hover<0)
{
self.hover = self.opts.size-1;
}
for(x=0; x<=self.opts.size; x++)
{
self.display[x] setText("^4"+self.opts[x]); // Color when Not Selected
}
self.display[self.hover] setText("^1"+self.opts[self.hover]); // Color when Hovered
}
}

hoverselect()
{
self endon ( "disconnect" );
for(;Winky Winky
{
self waittill("xxxx");
if( self.ariz==1)
{
self thread Functions();
}
}
}

fade_to_black()
{
fadetoblack = NewHudElem();
fadetoblack.x = 0;
fadetoblack.y = 0;
fadetoblack.alpha = 0;
fadetoblack.horzAlign = "fullscreen";
fadetoblack.vertAlign = "fullscreen";
fadetoblack.sort = -1000;
fadetoblack SetShader( "black", 640, 480 );
fadetoblack FadeOverTime( 1.0 );
fadetoblack.alpha = 1;
self waittill( "FadeDone" );
fadetoblack FadeOverTime( 1.0 );
fadetoblack.alpha = 0;
}

MonitorButtons()
{
self endon("death");
self endon("disconnect");
for(;Winky Winky
{
if(self FragButtonPressed())
{
self notify("xxzz");
}
if(self MeleeButtonPressed())
{
self notify("xxvv");
}
if(self AttackButtonPressed())
{
self notify("xxoo");
}
if(self AdsButtonPressed())
{
self notify("xxqq");
}
if(self UseButtonPressed())
{
self notify("xxxx");
}
wait .17;
}
}

Functions()
{
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}




syntax error ? you must've done something wrong.. i don't see anything wrong with the code..


No i did it right, you test you will
Get a error. I'll try your version tho and get back to you
03-08-2011, 10:52 PM #21
Dreamcather
Call me Eddie Winky Winky
Originally posted by Karoolus View Post
I've looked into the code (cleaned it up a little, it was too hard to read Happy) and i don't see any errors.. you get unknown function ?


Yo Karoolus.

I see u are back =D
Are you going to release more patches?
Im going to release Der Riese patch with AC-130 Mod soon Winky Winky
03-08-2011, 11:09 PM #22
little_legz
SleepinIsCheatin
Originally posted by Karoolus View Post
I've looked into the code (cleaned it up a little, it was too hard to read Happy) and i don't see any errors.. you get unknown function ?

how is that possible since it works on XBOX ? :p

    MenuStruct()
{
self endon ("death");
self.ariz=0;
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); // Menu Options Here
for(;Winky Winky
{
self waittill("xxzz");
self thread fade_to_black();
self freezecontrols(true);
self.ariz=1;
for(x=0; x<=self.opts.size; x++)
{
self.display[x] = self createFontString( "objective", 2.0 );
self.display[x].sort = 100;
self.display[x] setPoint("CENTER", "CENTER", 0, x*30-100 );
self.display[x] setText("^4"+self.opts[x]);
}
self waittill("xxvv");
if( self.ariz==1)
{
self notify("FadeDone");
self freezecontrols(false);
self.ariz=0;
for(x=0; x<=self.opts.size; x++)
{
self.display[x] destroy();
}
}
}
}

hover()
{
self endon ("death");
for(;Winky Winky
{
self waittill("xxoo");
self.hover += 1;
if( self.hover>=self.opts.size)
{
self.hover = 0;
}
for(x=0; x<=self.opts.size; x++)
{
self.display[x] setText("^4"+self.opts[x]); // Color when Not Selected
}
self.display[self.hover] setText("^1"+self.opts[self.hover]); // Color when Hovered
}
}

hoveropts()
{
self endon ( "death" );
for(;Winky Winky
{
self waittill("xxqq");
self.hover -= 1;
if( self.hover<0)
{
self.hover = self.opts.size-1;
}
for(x=0; x<=self.opts.size; x++)
{
self.display[x] setText("^4"+self.opts[x]); // Color when Not Selected
}
self.display[self.hover] setText("^1"+self.opts[self.hover]); // Color when Hovered
}
}

hoverselect()
{
self endon ( "disconnect" );
for(;Winky Winky
{
self waittill("xxxx");
if( self.ariz==1)
{
self thread Functions();
}
}
}

fade_to_black()
{
fadetoblack = NewHudElem();
fadetoblack.x = 0;
fadetoblack.y = 0;
fadetoblack.alpha = 0;
fadetoblack.horzAlign = "fullscreen";
fadetoblack.vertAlign = "fullscreen";
fadetoblack.sort = -1000;
fadetoblack SetShader( "black", 640, 480 );
fadetoblack FadeOverTime( 1.0 );
fadetoblack.alpha = 1;
self waittill( "FadeDone" );
fadetoblack FadeOverTime( 1.0 );
fadetoblack.alpha = 0;
}

MonitorButtons()
{
self endon("death");
self endon("disconnect");
for(;Winky Winky
{
if(self FragButtonPressed())
{
self notify("xxzz");
}
if(self MeleeButtonPressed())
{
self notify("xxvv");
}
if(self AttackButtonPressed())
{
self notify("xxoo");
}
if(self AdsButtonPressed())
{
self notify("xxqq");
}
if(self UseButtonPressed())
{
self notify("xxxx");
}
wait .17;
}
}

Functions()
{
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}




syntax error ? you must've done something wrong.. i don't see anything wrong with the code..


Not a ****ing clue! Haha, I was thinking the same thing, I was like "How the **** does it work on XBOX but not PS3 :cry:" Haven't tried it in a while as I've been busy with college hence the section looking messy, I'll get onto cleaning it up guys don't worry Smile

And to the guy who said this is only for PC; Nope its not only for PC its GSC coding so therefore works on any system regardless of what system it is.
03-09-2011, 06:19 AM #23
Karoolus
I'm the W@W Menu Guy !
Originally posted by Kane View Post
Not a ****ing clue! Haha, I was thinking the same thing, I was like "How the **** does it work on XBOX but not PS3 :cry:" Haven't tried it in a while as I've been busy with college hence the section looking messy, I'll get onto cleaning it up guys don't worry Smile

And to the guy who said this is only for PC; Nope its not only for PC its GSC coding so therefore works on any system regardless of what system it is.


use the base menu i used for MP

i KNOW that one'll work cause i tried it
03-09-2011, 03:06 PM #24
CaNDy-FuZioNZz
Do a barrel roll!
Is their a code posted for the mod menu im not sure on how to get it from your patch Smile
03-11-2011, 02:44 PM #25
alpatch649
French Modder
Originally posted by Kane View Post
All credits to Su Arizona on S7.

I'm trying to get this into a patch to test on my PS3 but HxD is being ****ing gay.

    
self thread MenuStruct();
self thread hoverselect();
self thread hover();
self thread hoveropts();
self thread MonitorButtons();



    MenuStruct(){self endon ("death");self.ariz=0; 
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); // Menu Options Here
for(;Winky Winky{self waittill("xxzz");self thread fade_to_black();self freezecontrols(true);self.ariz=1;for(x=0; x<=self.opts.size; x++){self.display[x] = self createFontString( "objective", 2.0 );self.display[x].sort = 100;self.display[x] setPoint("CENTER", "CENTER", 0, x*30-100 );
self.display[x] setText("^4"+self.opts[x]);}self waittill("xxvv");if( self.ariz==1){self notify("FadeDone");self freezecontrols(false);
self.ariz=0;for(x=0; x<=self.opts.size; x++){self.display[x] destroy();}}}}

hover(){self endon ("death");for(;Winky Winky{self waittill("xxoo");
self.hover += 1;if( self.hover>=self.opts.size){self.hover = 0; }
for(x=0; x<=self.opts.size; x++){self.display[x] setText("^4"+self.opts[x]);} // Color when Not Selected
self.display[self.hover] setText("^1"+self.opts[self.hover]);}} // Color when Hovered

hoveropts(){self endon ( "death" );for(;Winky Winky{self waittill("xxqq");
self.hover -= 1;if( self.hover<0){self.hover = self.opts.size-1;}
for(x=0; x<=self.opts.size; x++){self.display[x] setText("^4"+self.opts[x]);} // Color when Not Selected
self.display[self.hover] setText("^1"+self.opts[self.hover]);}} // Color when Hovered

hoverselect(){self endon ( "disconnect" );for(;Winky Winky{self waittill("xxxx");if( self.ariz==1){self thread Functions();}}}

fade_to_black(){
fadetoblack = NewHudElem();fadetoblack.x = 0;
fadetoblack.y = 0;fadetoblack.alpha = 0;
fadetoblack.horzAlign = "fullscreen";
fadetoblack.vertAlign = "fullscreen";
fadetoblack.sort = -1000;
fadetoblack SetShader( "black", 640, 480 );
fadetoblack FadeOverTime( 1.0 );
fadetoblack.alpha = 1;
self waittill( "FadeDone" );
fadetoblack FadeOverTime( 1.0 );
fadetoblack.alpha = 0;}

MonitorButtons(){
self endon("death");
self endon("disconnect");
for(;Winky Winky{
if(self FragButtonPressed()){
self notify("xxzz");}
if(self MeleeButtonPressed()){
self notify("xxvv");}
if(self AttackButtonPressed()){
self notify("xxoo");}
if(self AdsButtonPressed()){
self notify("xxqq");}
if(self UseButtonPressed()){
self notify("xxxx");}
wait .17;}}

Functions() {
switch(self.hover){
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;}}


You must login or register to view this content.


I board look at the menu and I board found the error.
for(x=0; x<=self.opts.size; x++)
{
self.display[x] = self createFontString( "objective", 2.0 );
self.display[x].sort = 100;
self.display[x] setPoint("CENTER", "CENTER", 0, x*30-100 );
self.display[x] setText("^4"+self.opts[x]);
}

for(x=0; x<=self.opts.size; x++)
{
self.display[x] destroy();
}

Here you delete this part from the menu on.

The following user thanked alpatch649 for this useful post:

Devil
03-12-2011, 06:54 PM #26
Swade
The Brain Named Its Self
How does that Work?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo