Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release [Contest] Scroll Menu
09-12-2011, 16:34 (This post was last modified: 09-12-2011 20:52 by iAegle.)
Post: #1
Rainbow [Contest] Scroll Menu
- WHATS THIS?! -

Just watch this and you know what it does:




- HOW TO EDIT -
its very easy to edit and customize to your own likings. at the top of the scroll_menu.gsc you will find this:
C++ Code
  1. init()
  2. {
  3. // Precache the custom menu
  4. precacheMenu( "weapon_scroll" );
  5.  
  6. // Skip team and class selection
  7. setDvar( "scr_disable_cac", 1 );
  8. setDvar( "g_allow_teamchange", 0 );
  9.  
  10. // setup scrollmenu vars
  11. level.sm = [];
  12. level.sm[ "scrollspeed" ] = 0.2;
  13. level.addOption = ::add_option;
  14. level.menuAction = ::menu_action;
  15.  
  16. // Settings .. DO NOT CHANGE! Only if you think the sizes and transparancy of the images are not good
  17. add_menuSetting( "-3", 0.00, 10, 5, -500 );
  18. add_menuSetting( "-2", 0.50, 60, 30, -300 );
  19. add_menuSetting( "-1", 0.75, 120, 60, -200 );
  20. add_menuSetting( "0", 1.00, 200, 100, 0 );
  21. add_menuSetting( "1", 0.75, 120, 60, 200 );
  22. add_menuSetting( "2", 0.50, 60, 30, 300 );
  23. add_menuSetting( "3", 0.00, 10, 5, 500 );
  24.  
  25. // Weapons .. Add as much things as you want
  26. [[level.addOption]]( "famas_mp", "menu_mp_weapons_famas", "FAMAS" );
  27. [[level.addOption]]( "m16_mp", "menu_mp_weapons_m16", "M16A1" );
  28. [[level.addOption]]( "l96a1_mp", "menu_mp_weapons_l96a1", "L96A1" );
  29. [[level.addOption]]( "ak47_mp", "menu_mp_weapons_ak47", "AK47" );
  30. [[level.addOption]]( "ak74u_mp", "menu_mp_weapons_ak74u", "AK74u" );
  31. [[level.addOption]]( "spas_mp", "menu_mp_weapons_spas", "SPAS-12" );
  32. [[level.addOption]]( "crossbow_explosive_mp","menu_mp_weapons_crossbow", "Crossbow" );
  33. [[level.addOption]]( "fnfal_mp", "menu_mp_weapons_fnfal", "FN FAL" );
  34. [[level.addOption]]( "m60_mp", "menu_mp_weapons_m60", "M60" );
  35. [[level.addOption]]( "spectre_mp", "menu_mp_weapons_spectre", "Spectre" );
  36. [[level.addOption]]( "mpl_mp", "menu_mp_weapons_mpl", "MPL" );
  37. [[level.addOption]]( "rpg_mp", "menu_mp_weapons_rpg", "RPG-7" );
  38. [[level.addOption]]( "commando_mp", "menu_mp_weapons_commando", "Commando" );
  39.  
  40. thread onPlayerConnected();
  41. }


You can add options with
Code:
[[level.addOption]]( "VARIABLE WHEN CLICKED", "IMAGE TO DISPLAY", "NAME TO DISPLAY" );

Adding options can be done in any gsc file for people who like things organized (like me Big Grin)

you can also change the function that will be executed when someone clicks start:
Code:
level.menuAction = ::YOUR_FUNCTION_NAME;

the default function is:
C++ Code
  1. menu_action( thing )
  2. {
  3. self takeAllWeapons();
  4. self giveWeapon( thing );
  5. self giveWeapon( "knife_mp" );
  6. self giveWeapon( "m1911_mp" );
  7. self switchToWeapon( thing );
  8. }


"thing" will be the thing you filled in @ "VARIABLE WHEN CLICKED" in the option that is selected. The function can be located in any gsc file, just make sure you define level.menuAction right.

also,

DO NOT CHANGE THE "add_menuSetting" STUFF ON INIT

- OTHER -

I added 2 dvars at the top of the scroll_menu.gsc to skip the teamselection (auto-assign) and class menu .. but you can remove this and open the menu whenever you want (just look tru the menu and remove self openMenu() etc)

You can select the gun with both the arrow KEYS and the arrow BUTTONS in the menu itsself

- DOWNLOAD -
MODFILE

.rar  mp_scroll_menu.rar (Size: 8.01 KB / Downloads: 455)

SOURCE

.rar  mod.rar (Size: 6.98 KB / Downloads: 347)
Related links

(08-10-2011 12:58)Pozzuh Wrote:  
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu
Find all posts by this user
Add Thank You Quote this message in a reply
[-] The following 22 users say Thank You to iAegle for this post:
aosma8 (09-13-2011), birdplane (09-14-2011), blakast (09-14-2011), Bloopbloop (09-13-2011), CVD (09-12-2011), d0h! (09-12-2011), ddaavvee (09-12-2011), Dountill (09-12-2011), Elite_Nudel (09-12-2011), fsi09 (01-29-2012), JariZ (09-12-2011), koil (09-15-2011), nofamily (09-12-2011), Pozzuh (09-12-2011), Romuald27 (09-12-2011), rotceh_dnih (09-12-2011), SailorMoon (09-12-2011), SrK (09-12-2011), surtek (09-12-2011), Tomsen1410 (09-12-2011), Yamato (11-30-2011), [DA]Bad Blood (09-13-2011)
09-12-2011, 16:36
Post: #2
RE: Scroll Menu
sick release

[Image: MaEIQ.png]
Find all posts by this user
Add Thank You Quote this message in a reply
[-] The following 1 user says Thank You to Pozzuh for this post:
iAegle (09-12-2011)
09-12-2011, 16:40
Post: #3
RE: Scroll Menu
improves every mod!
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
09-12-2011, 16:40
Post: #4
RE: Scroll Menu
Nice!
Related links

[Image: 41295377.jpg]
Find all posts by this user
Add Thank You Quote this message in a reply
09-12-2011, 16:43
Post: #5
RE: Scroll Menu
this is EPIC!

+1 Rep, if you liked and it helped please! Smile
Find all posts by this user
Add Thank You Quote this message in a reply
09-12-2011, 16:51
Post: #6
RE: Scroll Menu
Woeps uploaded the menu with a bug.. download the new one or all the images will be very small @ first open Big Grin

(08-10-2011 12:58)Pozzuh Wrote:  
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu
Find all posts by this user
Add Thank You Quote this message in a reply
[-] The following 1 user says Thank You to iAegle for this post:
[DA]Bad Blood (09-12-2011)
09-12-2011, 17:07
Post: #7
RE: Scroll Menu
very nice! good job dude Awesome

Quote:» (report) SuperNovaAO - 03-03 23:34 -- Your mom's cunt also belongs to her private parts, yet everyone knows it.
» (report) OrangePL - 03-03 23:34 -- And if you can't understand, this is called PRIVATE message
[Image: userbars.jpg]
My MW2 mod Group: http://steamcommunity.com/groups/davesmodzz
Find all posts by this user
Add Thank You Quote this message in a reply
09-12-2011, 17:18
Post: #8
RE: Scroll Menu
Thats freaking amazing o.O
Related links

Posted by: Alpharius.
Cya Later!
Find all posts by this user
Add Thank You Quote this message in a reply
09-12-2011, 17:20
Post: #9
RE: Scroll Menu
Awesome work @iAegle.Superman
Find all posts by this user
Add Thank You Quote this message in a reply
09-12-2011, 18:23
Post: #10
RE: Scroll Menu
iAegle is the master of the menu's

[Image: k5sVYyb.gif]
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
[-] The following 1 user says Thank You to JariZ for this post:
iAegle (09-12-2011)
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Release] Mouse operated menu met94 18 3,779 03-06-2013 10:27
Last Post: BHF98
  [Release] BO Simplest Admin Menu alistair3149 21 5,897 02-22-2013 08:57
Last Post: ItsEffecT
  [Release] [contest]Leipe GunGame Dountill 65 7,869 10-19-2012 16:16
Last Post: willorp
  [release] Deluxe Kick Menu tonymamoni1 6 733 09-22-2012 19:10
Last Post: tonymamoni1
  [Release] [contest] Get the Specials CVD 26 3,536 03-28-2012 16:53
Last Post: TerrorSpider
  [Release] [Contest] Duke Mod v0.3 hitmax 60 5,554 10-31-2011 15:29
Last Post: hitmax
  [CONTEST] ItsMods Mod OrangePL 20 3,142 09-26-2011 22:02
Last Post: johamort
  [contest] The Hidden met94 31 2,773 09-24-2011 10:29
Last Post: Deedzai
  [Release] [contest] ItsMoreWager BETA Pozzuh 35 2,378 09-23-2011 13:17
Last Post: OMA OMA OMA
  [News] Vote NOW for the best Mod [Contest] d0h! 12 3,483 09-20-2011 08:09
Last Post: d0h!

Forum Jump:


User(s) browsing this thread: 1 Guest(s)
Media Embeding by Simple Audio Video Embeder