Game Development Community

Language Filter?

by JD · in General Discussion · 11/23/2007 (9:39 am) · 2 replies

Is there one in place? See I have this idea but not sure how to implement it.

You have to create an outside file with a list of vulgar words, so you have this outside file... badWord.cs

contents:

b**ch == 1;
n**ger == 10;
so fowarth


Based on that, you have a function

GameConnection::wordFilter(%this)
{
// retrieves the badWord.cs file
//
// monitors the player texting, one someone says a word it triggers
// a response, so if they said the 1st word, it would mute for 25 secs
// If the 2nd word was said, it would kick the player.
}


It does this based on the numerical value.
Little Help?

About the author

Check out my website: http://lethonline.com/ *a home for all gamers!*


#1
11/23/2007 (9:40 am)
You might be interested in this resource.
#2
11/23/2007 (11:39 am)
I'm not certain a badword filter should be very advanced at all. Just either filter out the bad word from your blacklist, or something else simple like short mute or filter out the entire chat line.

The more control you put in place, the more effort you'll have to put into updating the black list every time poeple figure out how to circumvent the controls with alternate spellings.