What's new

Mod Menu [How To] Make a MW2 Mod Menu w/ a DLL

  • Thread starter Robert
  • Start date
  • Views 25,616
Robert

Robert

Getting There
Messages
344
Reaction score
389
Points
200
Sin$
7
2ug13jd.png



Downloads:
Pre-Made DLL Source: Click Here!

Visual Studio: Click Here!

You need to find a RECENT version of the SDK for this to load. It will NOT work on older versions. Here's the name of the latest version: XBOX360_SDK_20871.2

Text Tutorial:
1) Download the needed files above.

2) Open the dll_load file (Visual Studio window should pop-up).

3) Now, we already created the menu for you in the video (basic 4, options). But I will be re-explaining everything in text.

4) First thing you will notice we have added functions in for you. You may delete anything we have made in the video if you wish. To get started, you will add your first few if statements after the for( ; ; ) and int's. It would look like this:
Code:
if (Dvar_GetBool("cl_ingame"))
{
if (rs == 1) //any button to open the menu you want
{
MenuActive = 1;
Scroll = 0;

5) Now you would add your menu options (in this case, 4). We will be using the server command for this. Here is a decent example of what you would have so far:
Code:
if (Dvar_GetBool("cl_ingame"))
{
if (rs == 1) //any button to open the menu you want
{
MenuActive = 1;
Scroll = 0;
SV(-1,0, "f \"^5Thermal Vision\"");
SV(-1,0, "f \"^5Chrome Vision\"");
SV(-1,0, "f \"^5Cartoon Vision\"");
SV(-1,0, "f \"^5Menu Shader\"");
}

6) You "could" keep adding if statements depending on what Scroll is at the time, but it would require opening the menu at the same time as selecting the option, so we will use MenuActive as an if statement to declare if the menu is open or not. Here's what we did in the video up to this point:
Code:
if (Dvar_GetBool("cl_ingame"))
{
if (rs == 1) //any button to open the menu you want
{
MenuActive = 1;
Scroll = 0;
SV(-1,0, "f \"^5Thermal Vision\"");
SV(-1,0, "f \"^5Chrome Vision\"");
SV(-1,0, "f \"^5Cartoon Vision\"");
SV(-1,0, "f \"^5Menu Shader\"");
}
if (MenuActive == 1)
{
if (rb == 1) //any scrolling button you want
{
if (Scroll == 0)
{
SV(-1,0, "f \"^1Thermal Vision\"");
SV(-1,0, "f \"^5Chrome Vision\"");
SV(-1,0, "f \"^5Cartoon Vision\"");
SV(-1,0, "f \"^5Menu Shader\"");
Scroll++;
}
else if (Scroll == 1)
{
SV(-1,0, "f \"^5Thermal Vision\"");
SV(-1,0, "f \"^1Chrome Vision\"");
SV(-1,0, "f \"^5Cartoon Vision\"");
SV(-1,0, "f \"^5Menu Shader\"");
Scroll++;
}
else if (Scroll == 2)
{
SV(-1,0, "f \"^5Thermal Vision\"");
SV(-1,0, "f \"^5Chrome Vision\"");
SV(-1,0, "f \"^1Cartoon Vision\"");
SV(-1,0, "f \"^5Menu Shader\"");
Scroll++;
}
else if (Scroll == 3)
{
SV(-1,0, "f \"^5Thermal Vision\"");
SV(-1,0, "f \"^5Chrome Vision\"");
SV(-1,0, "f \"^5Cartoon Vision\"");
SV(-1,0, "f \"^1Menu Shader\"");
Scroll++;
}
else if (Scroll == 4)
{
SV(-1,0, "f \"^1Thermal Vision\"");
SV(-1,0, "f \"^5Chrome Vision\"");
SV(-1,0, "f \"^5Cartoon Vision\"");
SV(-1,0, "f \"^5Menu Shader\"");
Scroll=1;
}
}

7) Last, but certainly not least, you will add the selection part. Once again, it is just a simple mixture of if statements. Depending on what Scroll is at the time, that's what it will select. So, using the menu we created above, it would look like this so far:
Code:
if (Dvar_GetBool("cl_ingame"))
{
if (rs == 1) //any button to open the menu you want
{
MenuActive = 1;
Scroll = 0;
SV(-1,0, "f \"^5Thermal Vision\"");
SV(-1,0, "f \"^5Chrome Vision\"");
SV(-1,0, "f \"^5Cartoon Vision\"");
SV(-1,0, "f \"^5Menu Shader\"");
}
if (MenuActive == 1)
{
if (rb == 1) //any scrolling button you want
{
if (Scroll == 0)
{
SV(-1,0, "f \"^1Thermal Vision\"");
SV(-1,0, "f \"^5Chrome Vision\"");
SV(-1,0, "f \"^5Cartoon Vision\"");
SV(-1,0, "f \"^5Menu Shader\"");
Scroll++;
}
else if (Scroll == 1)
{
SV(-1,0, "f \"^5Thermal Vision\"");
SV(-1,0, "f \"^1Chrome Vision\"");
SV(-1,0, "f \"^5Cartoon Vision\"");
SV(-1,0, "f \"^5Menu Shader\"");
Scroll++;
}
else if (Scroll == 2)
{
SV(-1,0, "f \"^5Thermal Vision\"");
SV(-1,0, "f \"^5Chrome Vision\"");
SV(-1,0, "f \"^1Cartoon Vision\"");
SV(-1,0, "f \"^5Menu Shader\"");
Scroll++;
}
else if (Scroll == 3)
{
SV(-1,0, "f \"^5Thermal Vision\"");
SV(-1,0, "f \"^5Chrome Vision\"");
SV(-1,0, "f \"^5Cartoon Vision\"");
SV(-1,0, "f \"^1Menu Shader\"");
Scroll++;
}
else if (Scroll == 4)
{
SV(-1,0, "f \"^1Thermal Vision\"");
SV(-1,0, "f \"^5Chrome Vision\"");
SV(-1,0, "f \"^5Cartoon Vision\"");
SV(-1,0, "f \"^5Menu Shader\"");
Scroll=1;
}
}
if (xs == 1)
{
if (Scroll == 1)
{
SV(-1,0, "M thermal_mp");
SV(-1,0, "c \"Thermal = ^2ON\"");
}
if (Scroll == 2)
{
SV(-1,0, "s r_specularmap \"3\"");
SV(-1,0, "c \"Chrome = ^2ON\"");
}
if (Scroll == 3)
{
SV(-1,0, "s r_fullbright \"1\"");
SV(-1,0, "c \"Cartoon = ^2ON\"");
}
if (Scroll == 4)
{
SV(-1,0, "s r_scaleviewport \"0.4\"");
SV(-1,0, "c \"^0Shader Activated\"");
}
}
}
}

8) That is all you need to create a basic, 4 option mod menu in a dll. This could be expanding on and end up like my 81 option mod menu if you wanted to be insane about it.

Video Tutorial:


Credits:
Droseum20 - Tutorial Creator
Smileh4x - Tutorial Creator
Fire30 - Original dll source
H00ker - For helping me a lot back a few months ago
God3x - drunkfgt
 
B

branquinho

Newbie
Messages
6
Reaction score
1
Points
45
Sin$
0
is there a way to make it infectable like cod 4/waw ? like how teh1337 has
 
Epiic Prodiigy

Epiic Prodiigy

Enthusiast
Grammar Nazi
Messages
962
Reaction score
117
Points
135
Sin$
0
Thanks for the help over aim. Great tutorial and helpful person.
 
Top Bottom
Login
Register