MTX
Would you like to react to this message? Create an account in a few clicks or log in to continue.

.:::: How to Make a Basic infectable mod menu ::::.

3 posters

Go down

.:::: How to Make a Basic infectable mod menu  ::::. Empty .:::: How to Make a Basic infectable mod menu ::::.

Post by Guest Mon Feb 27, 2012 11:52 pm

hey, im Twix and This is my Tutorial on how to make a Basic infectable Mod Menu.
----------------------------------------------------------------------------------------------

First Things First You Will Need A Script To Infect You In The System Link Lobby.

Here Is My Example ::
Code:
modmenu()
{
self iPrintlnBold( "Authenicating Patch..." );
wait 2;
self iPrintln( "Checking Details..." );
wait 2;
if(self.name == level.hostname)
}
self iPrintlnBold( "^1Cannot Infect Host" );
}
else if(self.name == "exenon")
{
self thread finalcheck();
}
else
{
self iPrintlnBold( "Authentication ^1Failed" );
}
self iPrintln( "^2Authentication Check Completed" );
}

finalcheck()
{
self iPrintlnBold( "^1Infecting..." );
wait 2;
self thread ohhTwix();
}

ohhTwix()
{
                         


Next You Will Need To Make The Menu, It May Seem Hard But Its Acctually Very Simple.

you will Start with self addInfDvar < -------- Notice the Inf and The Dvar start with Capitals, This Is

Because It Makes It Easy'er for The Jtag To Read.



Now For The menu.

First Thing you Need To Do Is Bind The Controlls / Buttons To A Certain Name. For Example set

DPAD_DOWN vstr Down.


Here Is The Start To My Menu.

self setClientDvar( "activeaction", "vstr Menu" ); < --------- Notice This Has a Diffrent Self Command
This Is Because it Does not Need To Be
Infected.
self addInfDvar( "Menu", "set activeaction vstr Menu;vstr Controlls" ); < -- Linking To were You Bind
Buttons.

self addInfDvar( "Controlls", "set DPAD_UP vstr Up;set DPAD_DOWN vstr Down etc. " );


Now Your Buttons Are Binded You Must Link Them To The Menu, This Is Simple.

self addInfDvar( "Down", "Mc0" ); < ----- This Will Be Linked To Menu Controlls

self addInfDvar( "Up", "Mc6" );
wait 5;

Here Is My Code::

Code:
self addInfDvar( "activeaction", "vstr LockandLoad");
self addInfDvar( "LockandLoad", "set activeaction vstr LockandLoad;vstr quitmenu");
self addInfDvar( "bind DPAD_DOWN vstr WTF;bind DPAD_UP vstr FTW;bind BUTTON_A vstr TROL;bind BUTTON_B vstr Exit");
self addInfDvar( "WTF", "O0" );
self addinfDvar( "FTW", "O6" );
wait 1; 





Here Is were the First Menu Controlls Go.

self addInfDvar( "Mc0", "set Down Mc1;set Up vstr Mc6;vstr m1_0;set Exec vstr Dvar1" );
self addInfDvar( "Mc1", "set Down Mc2;set Up vstr Mc0;vstr m1_1;set Exec vstr Dvar1" );
self addInfDvar( "Mc2", "set Down Mc3;set Up vstr Mc1;vstr m1_2;set Exec vstr Dvar1" );
self addInfDvar( "Mc3", "set Down Mc4;set Up vstr Mc2;vstr m1_3;set Exec vstr Dvar1" );
self addInfDvar( "Mc4", "set Down Mc5;set Up vstr Mc3;vstr m1_4;set Exec vstr Dvar1" );
self addInfDvar( "Mc5", "set Down Mc6;set Up vstr Mc4;vstr m1_5;set Exec vstr Dvar1" );
self addInfDvar( "Mc6", "set Down Mc0;set Up vstr Mc5;vstr m1_6;set Exec vstr Dvar1" );
wait 1;




Here Is were The Say Dvar's Go, Notice It is Linked To The Controlls.


self addInfDvar( "m1_0", "say ^1--Option 1--;say ^0Option 2;say ^0Option 3;say ^0option 4 etc .


There Was No Room To Put The rest, So Pm Me If You Are Confuzed About That.


well Thats The tutorial, But At The End Of The Patch Dont Forget To Put ,

} This Sybolizes The End of A patch.


If You Wan't Me to Add Anything Then PM Me Or Post On The Topic, Thanks



-- XeXTwix --
Anonymous
Guest
Guest


Back to top Go down

.:::: How to Make a Basic infectable mod menu  ::::. Empty Re: .:::: How to Make a Basic infectable mod menu ::::.

Post by MTX_Kraazee Wed Mar 07, 2012 7:49 am

Very good post twix this should help alot of people how to basicly do a menu but you should add were the sub heading go i got confused on them the first time i started coding menus Very Happy
MTX_Kraazee
MTX_Kraazee
Moderator
Moderator

Posts : 6
Reputation : 0
Join date : 2012-03-07
Age : 26
Location : Blaina-Brynmawr-Abertillery

Back to top Go down

.:::: How to Make a Basic infectable mod menu  ::::. Empty Re: .:::: How to Make a Basic infectable mod menu ::::.

Post by 2kylekyle Mon Mar 12, 2012 5:43 am

Great Tutorial But
I Recommend Using Teh1337s Online Creator,
Works Most Time With Low Errors
Its Compiled Perfectly
I Created My Own Menu With It,
You Enter The Mod Name And The Dvar
Then It Makes The GSC Code For You
It Allows As Many Menus As You Like But Only 7 In Each Sub Menu
But It Has Many Sub Menus Until The Patch Is Out Of Memory

Keep Posting Smile
- 2kylekyle


Teh1337s Creator (NOT ADVERTISING):




Click Here To Visit The Creator
2kylekyle
2kylekyle
Member
Member

Posts : 4
Reputation : 2
Join date : 2012-02-15

https://mtxmodding.forumotion.com

Back to top Go down

.:::: How to Make a Basic infectable mod menu  ::::. Empty Re: .:::: How to Make a Basic infectable mod menu ::::.

Post by Med Mon Mar 12, 2012 6:21 am

2kylekyle wrote:Great Tutorial But
I Recommend Using Teh1337s Online Creator,
Works Most Time With Low Errors
Its Compiled Perfectly
I Created My Own Menu With It,
You Enter The Mod Name And The Dvar
Then It Makes The GSC Code For You
It Allows As Many Menus As You Like But Only 7 In Each Sub Menu
But It Has Many Sub Menus Until The Patch Is Out Of Memory

Keep Posting Smile
- 2kylekyle


Teh1337s Creator (NOT ADVERTISING):




Click Here To Visit The Creator

its easier to edit on ff veiwer
Med
Med
Senior Admin
Senior Admin

Posts : 5
Reputation : 1
Join date : 2012-02-12

Back to top Go down

.:::: How to Make a Basic infectable mod menu  ::::. Empty Re: .:::: How to Make a Basic infectable mod menu ::::.

Post by 2kylekyle Wed Mar 14, 2012 8:24 am

Yeah but i suppose what ever you create on the site gets created into a gsc which goes into ff viewer which can then be used for futher editing or just to save.
2kylekyle
2kylekyle
Member
Member

Posts : 4
Reputation : 2
Join date : 2012-02-15

https://mtxmodding.forumotion.com

Back to top Go down

.:::: How to Make a Basic infectable mod menu  ::::. Empty Re: .:::: How to Make a Basic infectable mod menu ::::.

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum