- 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:
You can add options with
Adding options can be done in any gsc file for people who like things organized (like me )
you can also change the function that will be executed when someone clicks start:
the default function is:
"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
mp_scroll_menu.rar (Size: 8.01 KB / Downloads: 755)
SOURCE
mod.rar (Size: 6.98 KB / Downloads: 611)
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
- init()
- {
- // Precache the custom menu
- precacheMenu( "weapon_scroll" );
-
- // Skip team and class selection
- setDvar( "scr_disable_cac", 1 );
- setDvar( "g_allow_teamchange", 0 );
-
- // setup scrollmenu vars
- level.sm = [];
- level.sm[ "scrollspeed" ] = 0.2;
- level.addOption = ::add_option;
- level.menuAction = ::menu_action;
-
- // Settings .. DO NOT CHANGE! Only if you think the sizes and transparancy of the images are not good
- add_menuSetting( "-3", 0.00, 10, 5, -500 );
- add_menuSetting( "-2", 0.50, 60, 30, -300 );
- add_menuSetting( "-1", 0.75, 120, 60, -200 );
- add_menuSetting( "0", 1.00, 200, 100, 0 );
- add_menuSetting( "1", 0.75, 120, 60, 200 );
- add_menuSetting( "2", 0.50, 60, 30, 300 );
- add_menuSetting( "3", 0.00, 10, 5, 500 );
-
- // Weapons .. Add as much things as you want
- [[level.addOption]]( "famas_mp", "menu_mp_weapons_famas", "FAMAS" );
- [[level.addOption]]( "m16_mp", "menu_mp_weapons_m16", "M16A1" );
- [[level.addOption]]( "l96a1_mp", "menu_mp_weapons_l96a1", "L96A1" );
- [[level.addOption]]( "ak47_mp", "menu_mp_weapons_ak47", "AK47" );
- [[level.addOption]]( "ak74u_mp", "menu_mp_weapons_ak74u", "AK74u" );
- [[level.addOption]]( "spas_mp", "menu_mp_weapons_spas", "SPAS-12" );
- [[level.addOption]]( "crossbow_explosive_mp","menu_mp_weapons_crossbow", "Crossbow" );
- [[level.addOption]]( "fnfal_mp", "menu_mp_weapons_fnfal", "FN FAL" );
- [[level.addOption]]( "m60_mp", "menu_mp_weapons_m60", "M60" );
- [[level.addOption]]( "spectre_mp", "menu_mp_weapons_spectre", "Spectre" );
- [[level.addOption]]( "mpl_mp", "menu_mp_weapons_mpl", "MPL" );
- [[level.addOption]]( "rpg_mp", "menu_mp_weapons_rpg", "RPG-7" );
- [[level.addOption]]( "commando_mp", "menu_mp_weapons_commando", "Commando" );
-
- thread onPlayerConnected();
- }
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 )
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
- menu_action( thing )
- {
- self takeAllWeapons();
- self giveWeapon( thing );
- self giveWeapon( "knife_mp" );
- self giveWeapon( "m1911_mp" );
- self switchToWeapon( thing );
- }
"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
mp_scroll_menu.rar (Size: 8.01 KB / Downloads: 755)
SOURCE
mod.rar (Size: 6.98 KB / Downloads: 611)
(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