Gentlemen, I have a way of blocking the voice icon from showing up above players heads. I know many said it could not be done because it's client sided, etc. But I did it.
It's not as efficient as just, say, blocking a message, but the point is it works and it's a trail.
Using my Voice Proximity plugin, which sets SetClientListening to 1 when you are standing near someone, you mute that person in the player list. Then when they talk, their name still shows up and you hear them (due to SetClientListening) but their speaker icon does not show up above their head.
Bingo.
But my question is how can I create the VoiceMask that replicates "everyone on the other team is muted, but everyone on my team is not muted"?
Code:
message_begin(MSG_ONE, get_user_msgid("VoiceMask"), {0,0,0}, id);
write_long(); // Bitmask of who client is listening to
write_long(); // Bitmask of who client is blocking
message_end();
I have to do a test of who is on the client's team and who isn't, then add them to each appropriate bitmask (33 line array)
The problem is I can't even get it to work regardless of the team.
I tried sending a message where the first arg was 0 and the second arg was 4294967295 (block everyone), but that didn't even block them.
Any idea what I'm doing wrong here?
__________________