Raised This Month: $ Target: $400
 0% 

Lock Menu Keys


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-18-2018 , 00:17   Re: Lock Menu Keys
Reply With Quote #1

I thought galileo already had a workaround for that (effectively allowing the vote results to stay up without preventing people from changing weapons). If you could actually block the keys then people wouldn't be able to switch weapons since the same commands are used for both weapon slots and menu keys.
__________________

Last edited by fysiks; 07-18-2018 at 00:19.
fysiks is offline
wAyz
Senior Member
Join Date: Feb 2010
Location: Germany
Old 07-18-2018 , 02:47   Re: Lock Menu Keys
Reply With Quote #2

Quote:
Originally Posted by fysiks View Post
I thought galileo already had a workaround for that (effectively allowing the vote results to stay up without preventing people from changing weapons). If you could actually block the keys then people wouldn't be able to switch weapons since the same commands are used for both weapon slots and menu keys.
That's correct. In my case it's not THAT much of a deal though because I'm running a KZ Server where you basically only use 2 weapons. I will think about it once again but I'd still like to know what i'd have to do to make it work.
Code:
if(g_vote[0] == 0)
{
	charCnt += formatex(voteStatus[charCnt], sizeof(voteStatus)-1-charCnt, "^n%s%i. \w%s%s", CLR_RED, choiceIdx+1, g_mapChoice[choiceIdx], voteTally);
	keys |= (1<<choiceIdx);
}
else
{
	charCnt += formatex(voteStatus[charCnt], sizeof(voteStatus)-1-charCnt, "^n%s%i. \d%s%s", CLR_RED, choiceIdx+1, g_mapChoice[choiceIdx], voteTally);
	keys |= (0<<choiceIdx);
}
I actually tried this already but it seems to be incorrect since it blocks everything from start of the vote already.

Last edited by wAyz; 07-18-2018 at 02:51.
wAyz 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 12:32.


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