
Members Online»
0 Active | 12 Guests
Online:
|
LATEST FORUM THREADS»
by ammys09
Posts: 1 / 236 warfare
CoD4 Map + Mod Releases by devielthan
Posts: 1 / 1772 Key Things the Design Comm...
CoDBO MP Mapping by rabbihasan21
Posts: 1 / 1093 Three Out of 10 Television...
CoDBO General by warrior777
Posts: 2 / 896 Voting menu on maps
CoD+UO General by
Posts: 0 / 787 Hauling 911
CoDBO3 General |
Polls»
|
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 see
.
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»
Comments: 5
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which... Comments: 5
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ... Comments: 5
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead?
... Comments: 5
Codutility.com up and runn...
It seems to me the like the site is completely dead? Comments: 5
Codutility.com up and runn...
Yeeaahhhh.........
|
Latest Downloads»
mp_Temple
Call of Duty: Mods: Multiplayer (624.12Kb) OHMY Don Quixote
Call of Duty 2: Maps: Multiplayer (5.76Mb) OHMY Neuburg
Call of Duty 2: Maps: Multiplayer (6.84Mb) OHMY Tebessa
Call of Duty 2: Maps: Multiplayer (7.36Mb) OHMY POW Camp
Call of Duty 2: Maps: Multiplayer (2.15Mb) |
Partners & Friends»
|
Site Links and Information
|
Partners
|
Friends
|
Copyright © MODSonline LLC
Tresware Content Management System © 2011
Website Designed by LKFX and Developed by Tresware