AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Mic Text (https://forums.alliedmods.net/showthread.php?t=150280)

zeroibis 02-16-2011 22:15

Mic Text
 
When players talk on the mic the game shows a few different pieces of information such as their name location ect. I wanted to know if there was any way to control what is being displayed so that for example I could prevent the location from showing up or add text to it.

databomb 02-16-2011 22:28

Re: Mic Text
 
zeroibis, do you mean the radio messages like 'You Take the Point'? I think you could do this by grabbing the user message for the radio and modifying the location data.

This is what I found in the SDK for the SendAudio user message
Code:

void CHud::MsgFunc_SendAudio( bf_read &msg )
{
    char szString[2048];
    msg.ReadString( szString, sizeof(szString) );
   
    CLocalPlayerFilter filter;
    C_BaseEntity::EmitSound( filter, SOUND_FROM_LOCAL_PLAYER, szString );
}

2048 is a pretty long string so it might be somewhere in there. I'd hook it and capture the entire string to log it and see what all it contains.

zeroibis 02-17-2011 01:07

Re: Mic Text
 
No I am referring to how when a user uses voice chat it displays their name ect to other clients in the box colored for there team. I want to be able to control what is displayed in that box.

Monkeys 02-17-2011 02:06

Re: Mic Text
 
Quote:

Originally Posted by zeroibis (Post 1417126)
No I am referring to how when a user uses voice chat it displays their name ect to other clients in the box colored for there team. I want to be able to control what is displayed in that box.

Take a look at some of the mic controlling plugins out there (Distance voice, etc..) and see how voicechat is handled. Perhaps you'll be able to figure something out.

toazron1 02-17-2011 09:34

Re: Mic Text
 
That is not what he is asking Monkeys (I think). He is looking for information on modifying the hud indicator. As far as I know, you can not control what is inside the voice hud indicator.

Monkeys 02-17-2011 09:38

Re: Mic Text
 
Well, it could be that the beginning/ending of voicechat was handled through usermessages, making you able to rename it, perhaps.
It's far fetched, but worth a shot.

Doesn't hurt to look ;)

asherkin 02-17-2011 13:15

Re: Mic Text
 
You can't.
Word.

zeroibis 02-17-2011 16:31

Re: Mic Text
 
Dam, I guess the closest thing you could do is try to change the players name to append anything you want. However I do not know of or have seen any manner of hooking voice chat. The current plugins that deal with voice com are just adjusting setlistenoveride.

asherkin 02-18-2011 00:58

Re: Mic Text
 
http://forums.alliedmods.net/showthread.php?t=145457


All times are GMT -4. The time now is 23:49.

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