Quote:
Originally Posted by fysiks
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.