Raised This Month: $ Target: $400
 0% 

Mic Text


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zeroibis
Veteran Member
Join Date: Jun 2007
Old 02-16-2011 , 22:15   Mic Text
Reply With Quote #1

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.
__________________
zeroibis is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 02-16-2011 , 22:28   Re: Mic Text
Reply With Quote #2

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.
__________________
databomb is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 02-17-2011 , 01:07   Re: Mic Text
Reply With Quote #3

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.
__________________
zeroibis is offline
Monkeys
Veteran Member
Join Date: Jan 2010
Old 02-17-2011 , 02:06   Re: Mic Text
Reply With Quote #4

Quote:
Originally Posted by zeroibis View Post
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.
__________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
Monkeys is offline
toazron1
Senior Member
Join Date: Oct 2006
Old 02-17-2011 , 09:34   Re: Mic Text
Reply With Quote #5

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.
__________________
toazron1 is offline
Send a message via AIM to toazron1
Monkeys
Veteran Member
Join Date: Jan 2010
Old 02-17-2011 , 09:38   Re: Mic Text
Reply With Quote #6

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 ;)
__________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
Monkeys is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 02-17-2011 , 16:31   Re: Mic Text
Reply With Quote #8

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.
__________________
zeroibis 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 14:29.


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