Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 12 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Tutorials

»
CoD2 Mapping
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
Advanced Menus
Versions: You must be logged in to view history.

Advanced Menus.

here i want to help you take your menus to the next step. ill be showing you how to use the function scriptMenuResponse.

If you are reading this tutorial i am assuming you have general knowledge around a menu and creating your own basic menu.


Step One. I would like for you to download this example menu i have already created for you so you can follow along with this tutorial.

Step Two. Open the example.menu that you just downloaded and take a look and see on lines 46, 47, 65, 89 each one of those lines have a scriptMenuResponse. on line 46 and 47, you will notice if you press 1 the response "test1" will be passed along. if you press 2 you will notice the response "test2" will be passed along. but you are probably wondering "where does the script read and know what to do with these custom responses?" follow along and you will seeLaughing.

Step Three. Go into your call of duty2 folder, open up the folder called main. and then open the file called iw_07. when that is open go to the directory maps/mp/gametypes. and there you will see a file called _menus.gsc grab that menu and drop it on to your desktop and open it up.

Step Four. Now that you have _menus.gsc i would like for you to go to line 88 and press enter. this will bring you a line down and i would like for you to type.
 
if(response == "test1")
{
self closeMenu();
self closeInGameMenu();
self iprintlnbold("^1Test 1");
}
else if(response == "test2")
{
self closeMenu();
self closeInGameMenu();
self iprintlnbold("^2Test 2");
}

what this will do is catch the response and say "okay he/she pressed test1 so now lets do something with this" in this case we have it close your menu and print in the middle of your screen Test 1 and the same thing for Test 2.

This is all you need to know about scriptMenuResponses. you can do so much more with this. just expand your little minds and add on to this example.
 

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»