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

Members Online

»
0 Active | 7 Guests
Online:

LATEST FORUM THREADS

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

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Close the quick menu via script
Tremolo4
General Member
Since: Mar 16, 2012
Posts: 7
Last: Mar 26, 2014
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Sunday, May. 13, 2012 02:29 pm
Hello!

I did a quick search and didn't find anything, sorry if I missed something.
Is it possible to close the quick menu / script menu (standard bind "B") via a script function? I tried closemenu() and closeingamemenu() but they're not working. It would also be enough if I could "detect" whether the player has opened the quick menu.

Thanks in advance for any answers,
Tremolo4
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Sunday, May. 13, 2012 02:43 pm
you can try this on wm_quickmessage.menu (so it should be impossible to open):

Code:
onOpen
{ 
	uiScript closeMenuOnDvar ui_disable_quickmenu "1" quickmessage;
}


syntax:
uiScript closeMenuOnDvar [DvarName] [DvarRef] [MenuToClose];

and ingame:
player setClientDvar( "ui_disable_quickmenu" , "1" );


or send a scriptMenuResponse onOpen in your wm_quickmessage.menu

but all this would require a mod including this modified .menu files, afaik theres no way detecting it via codescript
Share |
Tremolo4
General Member
Since: Mar 16, 2012
Posts: 7
Last: Mar 26, 2014
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Sunday, May. 13, 2012 04:26 pm
Thanks for your answer. I'm trying to modify a mod, for which I don't have the source/raw (--> menu) files, because there is an exploit that allows you to get unlimited ammo when the quickmenu is opened (don't ask me to explain ;) ).
So, unfortunately i can't edit menu files :(
The root of the problem is, that the "clientcmd"-menu (or any other menu, probably) doesn't work/doesn't open when called via openmenu() or openmenunomouse(), when the quickmenu is opened.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

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

»