Post: [Code]: Laptop Opening Menu!
01-25-2011, 09:21 PM #1
Skyl1n3
DO SOMETHING THEN!
(adsbygoogle = window.adsbygoogle || []).push({}); Hey everyone, before you flame and say it's already been released... It hasn't, I double checked :p anyway, this is like opening the menu in Godly Mods, some devil patch or a tree patch... Or my V6 Smile

It's quite a simple code. Especially with me spoon feeding you Smile It doesn't take up alot of code to be honest.

First of all you need to put this under your _openMenu() and exitMenu() wherever your menu is placed.

Under exitMenu() add this:

    self takeWeapon("killstreak_ac130_mp");
self giveweapon("cheytac_fmj_xmags_mp", Cool Man (aka Tustin);
self switchToWeapon("cheytac_fmj_xmags_mp", Cool Man (aka Tustin);


Under _openMenu() add this:

    self takeWeapon(self getCurrentWeapon());
self giveweapon("killstreak_ac130_mp");
self switchToWeapon("killstreak_ac130_mp");


This next part is if you have any sub menus in the patch you're editing. This will stop the bug that accurs if you add the first too bits and not these.

The thing you're meant to be looking for is possibly called exitSubMenu() so underneath that add in:

    self takeWeapon("killstreak_ac130_mp");
self giveweapon("cheytac_fmj_xmags_mp", Cool Man (aka Tustin);
self switchToWeapon("cheytac_fmj_xmags_mp", Cool Man (aka Tustin);


All of them codes will eventually lead to you have an opening laptop for your menu. Smile There is a problem I cannot fix, which is it'll give you an intervention (obviously I can change what weapon it gives you but I don't know how to make it give you the weapon you had before you entered the menu)

If you want to add in your own gun for when the menu closes just have a look at this thread (Credit to You must login or register to view this content.... He really is a pro.) You must login or register to view this content.

The next bit of code is pretty much optional. This will make it so your screen goes black when you've entered the menu. You will still see the menu though. Smile

Add this in the exitMenu() and the exitSubMenu()

    	self VisionSetNakedForPlayer(getDvar( "mapname" ), .4);


That will fix the damn bug of you keeping your vision (in this case the black screen) when exiting the menu's. Now for the entering menu vision - the black screen itself :wtf:Claps

Where you put the code in the _openMenu() put this under it so it makes it look like you're going into an AC-1Menu :p

    self VisionSetNakedForPlayer("blacktest", 3);


Where it says "", 3);" that 3 is the overall time it takes for the darkness to become fully black. if you wanted to make it instantly black you could put

    self VisionSetNakedForPlayer("blacktest", .1);
I think :p if you wanted to make it longer you would just put how many seconds you want it to be. Hope you enjoy your laptop opening menu Smile this took me about 10 minutes to make, very simple but it will make you look that 1 bit more pro :dingding:

Forgot to say. Credit to me for fixing the code and doing about 80% of it.

LegendaryGrape for releasing a DEREKTROTTER V8 edit and having the laptop thingy in it. (I just fixed it)

DEREKTROTTER for being the inspiration that LegendaryGrape needed so he can edit his patch :whistle:
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to Skyl1n3 for this useful post:

DreamKidzVa, Fifa97, IAMSTEN, ViiZiiKz, W0W
01-26-2011, 10:35 AM #20
x_5
Brute
we can get that code from godlymodz patch
look to that patch maybe you will find a fix
01-26-2011, 11:36 AM #21
Skyl1n3
DO SOMETHING THEN!
Originally posted by 5 View Post
we can get that code from godlymodz patch
look to that patch maybe you will find a fix


/facepalm I've already done a fix... It works perfectly for me.
01-26-2011, 12:19 PM #22
x_5
Brute
/facepalm .. Ok Smile
01-26-2011, 06:59 PM #23
GaLaXy98-q8
Maggbot timeout!
its work thank alot
01-26-2011, 07:38 PM #24
DreamKidzVa
OFWGKTADGAFLLBBLSBFBN
Originally posted by q8 View Post
its work thank alot


Hey the camos on my current gun when i open the menu the close disappear /: Any help ?
01-26-2011, 08:11 PM #25
Fifa97
Maggbot timeout!
Originally posted by Skyl1n3 View Post
Yep. damn thing is too small...


black and white background would look pretty gd with coloured menu text
01-26-2011, 08:30 PM #26
Skyl1n3
DO SOMETHING THEN!
Originally posted by Fifa97 View Post
black and white background would look pretty gd with coloured menu text


Already tried it :p Looks terrible with my menu but it might look good for anyone else. Feel free to try :p
01-26-2011, 08:32 PM #27
Fifa97
Maggbot timeout!
Originally posted by Skyl1n3 View Post
Already tried it :p Looks terrible with my menu but it might look good for anyone else. Feel free to try :p


with black and white i fink the less blur it has the better it looks

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo