Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Chat Mute?
Chat Mute? [message #484234] Sat, 26 October 2013 16:37 Go to next message
UnitXc is currently offline  UnitXc
Messages: 116
Registered: March 2009
Karma: 0
Recruit
Is it possible to create a mute command that mutes only a players ability to type ingame but leaves their ability to use voice commands?

http://i423.photobucket.com/albums/pp318/UnitXc/UnitXcSiggy.jpg
Re: Chat Mute? [message #484238 is a reply to message #484234] Sat, 26 October 2013 23:34 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
Possible but why would you want to shun them from chatting but allow them the ability to freely use radio commands.

http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
Re: Chat Mute? [message #484239 is a reply to message #484234] Sun, 27 October 2013 03:01 Go to previous messageGo to next message
cAmpa is currently offline  cAmpa
Messages: 597
Registered: March 2006
Karma: 0
Colonel
You could set the sound function in front of the filter.

Chat_Hook() {
Sound_Commands();
Mute_Function();
}

He would be able to spam sounds without you can see it ingame now.

Or you do it like this with a few edits in sound function.

Chat_Hook() {
bool isSoundCommand = Sound_Commands();
if (isSoundCommand == false)
Mute_Function();
}

bool Sound_Commands()
{
...
if (SoundCommandFound)
{
return true;
}
return false;
}


Bückstabü!
Re: Chat Mute? [message #484244 is a reply to message #484234] Sun, 27 October 2013 04:58 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
He's talking about radio commands and not other sounds.

Posting code isn't going to help him either. He doesn't even code. He was asking this question due to an incident that occured with him in Jelly.


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
Re: Chat Mute? [message #484251 is a reply to message #484234] Sun, 27 October 2013 12:22 Go to previous messageGo to next message
cAmpa is currently offline  cAmpa
Messages: 597
Registered: March 2006
Karma: 0
Colonel
Sorry i thought this is the mod forum.

Bückstabü!
Re: Chat Mute? [message #484252 is a reply to message #484234] Sun, 27 October 2013 13:06 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

XD

-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: Chat Mute? [message #484253 is a reply to message #484234] Sun, 27 October 2013 13:15 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
UnitXc wrote on Sat, 26 October 2013 19:37

Is it possible to create a mute command that mutes only a players ability to type ingame but leaves their ability to use voice commands?


Yes it is possible, is it required?

In fact, you don't actually have to write any code at all, you can just delete this:
		if(MutedPlayers[PlayerID] == false)
		{
			return true;
		}
		else
		{
			return false; //Keep this line only
		}


from the existing mute plug-in, and then compile it.

From this hook, not the chat hook:

virtual bool OnRadioCommand(int PlayerType, int PlayerID, int AnnouncementID, int IconID, AnnouncementEnum AnnouncementType)



[Updated on: Sun, 27 October 2013 13:16]

Report message to a moderator

Re: Chat Mute? [message #484288 is a reply to message #484244] Mon, 28 October 2013 16:57 Go to previous message
UnitXc is currently offline  UnitXc
Messages: 116
Registered: March 2009
Karma: 0
Recruit
Xpert wrote on Sun, 27 October 2013 04:58

He was asking this question due to an incident that occured with him in Jelly.


thats actually not 100% correct, but rather Ive asked this before and was told its impossible, the reason I asked many MANY months ago is because I knew that the incident in jelly would happen at some point, because I feel extreme hatred for many of the lifeforms that play the game still.

being chat only muted would bring me MUCH relief while still enabling me to communicate in a limited but wholy legitimate renegade fashion.


http://i423.photobucket.com/albums/pp318/UnitXc/UnitXcSiggy.jpg
Previous Topic: ECW New Meltdown Deathmatch
Next Topic: Tiberium Refinery WIP
Goto Forum:
  


Current Time: Wed Dec 18 03:29:29 MST 2024

Total time taken to generate the page: 0.00703 seconds