Raised This Month: $51 Target: $400
 12% 

Manually closing a client's menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Marcus_Brown001
AlliedModders Donor
Join Date: Nov 2012
Location: Illinois, United States
Old 08-23-2015 , 00:53   Manually closing a client's menu
Reply With Quote #1

Hey all,

I hit a little snag when I was making something. As the title says, I need to close a menu that is on a client's screen. I am currently using the native "CancelClientMenu"; this native will close the client's menu, but it takes about 3 seconds for the menu to disappear on the client's screen.

If this is the best that can be done I guess I will have to deal with it, but I was just curious if there was anyone who knew another, or better, way.

Thanks for any help or knowledge on the subject.
Marcus_Brown001 is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 08-23-2015 , 01:49   Re: Manually closing a client's menu
Reply With Quote #2

Force client command to be 9 or something? Not sure
headline is offline
Marcus_Brown001
AlliedModders Donor
Join Date: Nov 2012
Location: Illinois, United States
Old 08-23-2015 , 01:53   Re: Manually closing a client's menu
Reply With Quote #3

I tried a fake client command with "slot9" and it didn't work (I didn't think it would). So far, that native is the only thing I have found that works.

Thanks for the attempt though!
Marcus_Brown001 is offline
m_bNightstalker
Senior Member
Join Date: Jan 2015
Location: JWD
Old 08-23-2015 , 10:50   Re: Manually closing a client's menu
Reply With Quote #4

EDIT: Send an empty menu and set the display time to a very short delay

Last edited by m_bNightstalker; 08-23-2015 at 10:52.
m_bNightstalker is offline
Marcus_Brown001
AlliedModders Donor
Join Date: Nov 2012
Location: Illinois, United States
Old 08-23-2015 , 19:21   Re: Manually closing a client's menu
Reply With Quote #5

Great idea! However, if I open a menu with a duration of 1 second, it takes about 2 and a half seconds to close. Slightly better than the native, but still kind of slow
Marcus_Brown001 is offline
m_bNightstalker
Senior Member
Join Date: Jan 2015
Location: JWD
Old 08-23-2015 , 20:27   Re: Manually closing a client's menu
Reply With Quote #6

why is it improtant to close the empty menu too so fast? I doesn't show anything, no title etc
m_bNightstalker is offline
Marcus_Brown001
AlliedModders Donor
Join Date: Nov 2012
Location: Illinois, United States
Old 08-23-2015 , 22:15   Re: Manually closing a client's menu
Reply With Quote #7

I didn't create an empty menu, I simply redrew the menu that was open with a shorter duration. It is just important for what I am doing that I close the menu as quick as I can.
Marcus_Brown001 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 08-23-2015 , 22:29   Re: Manually closing a client's menu
Reply With Quote #8

Quote:
Originally Posted by Marcus_Brown001 View Post
I tried a fake client command with "slot9" and it didn't work (I didn't think it would). So far, that native is the only thing I have found that works.
Try "menuselect 9".
__________________
ddhoward is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 08-24-2015 , 03:17   Re: Manually closing a client's menu
Reply With Quote #9

Quote:
Originally Posted by ddhoward View Post
Try "menuselect 9".
:O
__________________
Neuro Toxin is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 08-24-2015 , 20:43   Re: Manually closing a client's menu
Reply With Quote #10

Quote:
Originally Posted by ddhoward View Post
Try "menuselect 9".
or 0 for anything not csgo
__________________
ThatOneGuy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode