Add ChatFilter2, OverheadChat, EventGreeting and update several plugins

New plugins: ChatFilter2, OverheadChat, EventGreeting.

Updated: HostnameManager, Leader3 (chat and markers), NameFilter2 (plugin
and config), PlayerRankings_nohlstats (rank display modes), custom-chatcolors
(plugin and ccc.inc), Extend (sm_settimeleft).

Add shared includes the plugins build against: Break, ChatFilter2, Couch,
EventNotifier, TransmitManager, leader, ripext, unloze_playtime.
This commit is contained in:
2026-11-23 13:20:15 +00:00
parent 2dca39be8a
commit 3a52b1dfd1
25 changed files with 6209 additions and 175 deletions
+582
View File
@@ -0,0 +1,582 @@
"ChatFilter2"
{
// a message containing any of these is hidden from players with "Hiding Lennies" on.
// key = the character or substring (raw UTF-8), value unused
"lennies"
{
"°" ""
"ಠ" ""
"⚆" ""
"ʖ" ""
"͡" ""
"͜" ""
}
// ASCII digits/symbols read as letters when matching bad words ("sh1t", "$hit", "a$$").
// key = one ASCII digit or symbol, value = the letter it stands for.
// symbols at the start or end of a word may also just be punctuation ("shit!"),
// so words are tried both with and without them
"leet"
{
"4" "a"
"@" "a"
"3" "e"
"1" "i"
"!" "i"
"|" "i"
"0" "o"
"5" "s"
"$" "s"
"7" "t"
}
// non-ASCII lookalikes read as ASCII letters when matching bad words.
// key = one character (raw UTF-8), value = one ASCII letter (case does not matter).
// any other non-ASCII character splits words. Lookalikes copied from NameFilter2.cfg
"confusables"
{
// Cyrillic lowercase
"а" "a"
"е" "e"
"о" "o"
"р" "p"
"с" "c"
"у" "y"
"х" "x"
"і" "i"
"ѕ" "s"
"ј" "j"
// Cyrillic uppercase
"А" "A"
"В" "B"
"Е" "E"
"К" "K"
"М" "M"
"Н" "H"
"О" "O"
"Р" "P"
"С" "C"
"Т" "T"
"Х" "X"
"Ѕ" "S"
"І" "I"
"Ј" "J"
"У" "Y"
"З" "3"
// Cyrillic mirrored/aesthetic lookalikes
"Я" "R"
"я" "r"
"И" "N"
"и" "n"
"в" "b"
"к" "k"
"м" "m"
"н" "h"
"т" "t"
// Cyrillic with diacritics, same lookalikes as their base letters
"Ѐ" "E"
"Ё" "E"
"ѐ" "e"
"ё" "e"
"Ї" "I"
"ї" "i"
"Ў" "Y"
"ў" "y"
"Ѝ" "N"
"Й" "N"
"ѝ" "n"
"й" "n"
// Greek
"Α" "A"
"Β" "B"
"Ε" "E"
"Ζ" "Z"
"Η" "H"
"Ι" "I"
"Κ" "K"
"Μ" "M"
"Ν" "N"
"Ο" "O"
"Ρ" "P"
"Τ" "T"
"Υ" "Y"
"Χ" "X"
"α" "a"
"ν" "v"
"ο" "o"
// Greek with tonos/dialytika, same lookalikes as their base letters
"Ά" "A"
"Έ" "E"
"Ή" "H"
"Ί" "I"
"Ϊ" "I"
"Ό" "O"
"Ύ" "Y"
"Ϋ" "Y"
"Ώ" "O"
"ά" "a"
"ή" "n"
"ό" "o"
"ώ" "w"
// Greek aesthetic lookalikes
"Λ" "A"
"Σ" "E"
"Δ" "A"
"Ω" "O"
"Θ" "O"
"θ" "o"
"μ" "u"
"ω" "w"
"η" "n"
// math symbols used as letters
"∂" "d"
"∑" "E"
// accented Latin, read as the base letter
"À" "a"
"Á" "a"
"Â" "a"
"Ã" "a"
"Ä" "a"
"Å" "a"
"Ç" "c"
"È" "e"
"É" "e"
"Ê" "e"
"Ë" "e"
"Ì" "i"
"Í" "i"
"Î" "i"
"Ï" "i"
"Ñ" "n"
"Ò" "o"
"Ó" "o"
"Ô" "o"
"Õ" "o"
"Ö" "o"
"Ù" "u"
"Ú" "u"
"Û" "u"
"Ü" "u"
"Ý" "y"
"à" "a"
"á" "a"
"â" "a"
"ã" "a"
"ä" "a"
"å" "a"
"ç" "c"
"è" "e"
"é" "e"
"ê" "e"
"ë" "e"
"ì" "i"
"í" "i"
"î" "i"
"ï" "i"
"ñ" "n"
"ò" "o"
"ó" "o"
"ô" "o"
"õ" "o"
"ö" "o"
"ù" "u"
"ú" "u"
"û" "u"
"ü" "u"
"ý" "y"
"ÿ" "y"
"Ā" "a"
"ā" "a"
"Ă" "a"
"ă" "a"
"Ą" "a"
"ą" "a"
"Ć" "c"
"ć" "c"
"Ĉ" "c"
"ĉ" "c"
"Ċ" "c"
"ċ" "c"
"Č" "c"
"č" "c"
"Ď" "d"
"ď" "d"
"Ē" "e"
"ē" "e"
"Ĕ" "e"
"ĕ" "e"
"Ė" "e"
"ė" "e"
"Ę" "e"
"ę" "e"
"Ě" "e"
"ě" "e"
"Ĝ" "g"
"ĝ" "g"
"Ğ" "g"
"ğ" "g"
"Ġ" "g"
"ġ" "g"
"Ģ" "g"
"ģ" "g"
"Ĥ" "h"
"ĥ" "h"
"Ĩ" "i"
"ĩ" "i"
"Ī" "i"
"ī" "i"
"Ĭ" "i"
"ĭ" "i"
"Į" "i"
"į" "i"
"İ" "i"
"Ĵ" "j"
"ĵ" "j"
"Ķ" "k"
"ķ" "k"
"Ĺ" "l"
"ĺ" "l"
"Ļ" "l"
"ļ" "l"
"Ľ" "l"
"ľ" "l"
"Ń" "n"
"ń" "n"
"Ņ" "n"
"ņ" "n"
"Ň" "n"
"ň" "n"
"Ō" "o"
"ō" "o"
"Ŏ" "o"
"ŏ" "o"
"Ő" "o"
"ő" "o"
"Ŕ" "r"
"ŕ" "r"
"Ŗ" "r"
"ŗ" "r"
"Ř" "r"
"ř" "r"
"Ś" "s"
"ś" "s"
"Ŝ" "s"
"ŝ" "s"
"Ş" "s"
"ş" "s"
"Š" "s"
"š" "s"
"Ţ" "t"
"ţ" "t"
"Ť" "t"
"ť" "t"
"Ũ" "u"
"ũ" "u"
"Ū" "u"
"ū" "u"
"Ŭ" "u"
"ŭ" "u"
"Ů" "u"
"ů" "u"
"Ű" "u"
"ű" "u"
"Ų" "u"
"ų" "u"
"Ŵ" "w"
"ŵ" "w"
"Ŷ" "y"
"ŷ" "y"
"Ÿ" "y"
"Ź" "z"
"ź" "z"
"Ż" "z"
"ż" "z"
"Ž" "z"
"ž" "z"
}
// bad words censored for players with safe chat on, one '*' per character.
// Each section below is a category; key = the word or phrase, value unused.
// Case-insensitive, leet and confusables are applied, and repeated letters match
// ("fuuuck" matches "fuck", but "as" does not match "ass").
// A plain word only matches a whole word. "*word*" also matches inside a word
// (censoring just that part), "word*" only at the start, "*word" only at the end.
// Entries with spaces are phrases: each word must be a whole word, in order, with any
// spaces or punctuation between them ("kill yourself" matches "KILL... yourself!!" but not
// "killyourself", which needs its own entry); '*' is allowed at the start of the first word
// and the end of the last.
// Words spelled out with one letter per word ("f u c k", "f.u.c.k") are joined and matched too.
// List built 2026-10-22 from 366k ZE chat lines (UNLOZE stats DB + 200 UNLOZE/NiDE SourceTV demos).
"words"
{
// slurs and hate
"slurs"
{
// n-word; "*nigg*" covers nigger/nigga/niggas and joined forms like "sandnigger"
"*nigg*" ""
"nig" ""
"nigs" ""
"niga" ""
"nigas" ""
"niger" ""
"nigers" ""
"nige" ""
"nignog*" ""
"negro" ""
"negros" ""
"negroes" ""
// homophobic
"*fag*" ""
"homo" ""
"homos" ""
"tranny" ""
"trannies" ""
"troon*" ""
"dyke" ""
"dykes" ""
"pidor*" ""
"pidar*" ""
"pidr*" ""
"maricon*" ""
"viado*" ""
"schwuchtel*" ""
// ableist
"*retard*" ""
"tard" ""
"tards" ""
"fucktard*" ""
"mongoloid*" ""
"spastic*" ""
// racial and ethnic
"kike" ""
"kikes" ""
"chink" ""
"chinks" ""
"spic" ""
"spics" ""
"gook" ""
"gooks" ""
"coon" ""
"coons" ""
"wetback*" ""
"beaner*" ""
"towelhead*" ""
"raghead*" ""
"paki" ""
"pakis" ""
"pajeet*" ""
// nazi
"heil hitler" ""
"sieg heil" ""
"1488" ""
"white power" ""
"gas the jews" ""
}
// general profanity, English then other Latin-script languages
"profanity"
{
"*fuck*" ""
"fuk*" ""
"dafuk" ""
"phuck*" ""
"fck*" ""
"fk" ""
"fks" ""
"fking" ""
"fkin" ""
"fkn" ""
"fkng" ""
"fked" ""
"fker*" ""
"idfk" ""
"stfu" ""
"gtfo" ""
"*shit*" ""
"*bitch*" ""
"*cunt*" ""
"ass" ""
"asses" ""
"arse" ""
"*asshole*" ""
"dumbass*" ""
"fatass*" ""
"jackass*" ""
"smartass*" ""
"bastard*" ""
"*wanker*" ""
"twat*" ""
"prick" ""
"pricks" ""
"bollocks" ""
"tosser*" ""
"piss" ""
"pissed" ""
"pissing" ""
"*whore*" ""
"*slut*" ""
"hoe" ""
"hoes" ""
"motherf*" ""
"mothafuck*" ""
// Arabic, transliterated
"sharmut*" ""
// Russian, transliterated
"cyka" ""
"suka" ""
"blyat*" ""
"blyad*" ""
"blya" ""
"pizda*" ""
"pizdec*" ""
"pizdets*" ""
"nahui" ""
"nahuy" ""
"nahuj" ""
"zaebal*" ""
"eblan*" ""
"ebat" ""
"yebat*" ""
// Polish
"kurwa*" ""
"kurwy" ""
"chuj*" ""
"jebac*" ""
"jebany*" ""
"jebane" ""
"pierdol*" ""
"spierdalaj*" ""
"cipa" ""
// Czech, Hungarian, Serbo-Croatian, Finnish
"kurva" ""
"kurac" ""
"jebem*" ""
"vittu" ""
// Spanish, Portuguese
"puta" ""
"putas" ""
"puto" ""
"putos" ""
"hijueputa" ""
"mierda" ""
"pendejo*" ""
"cabron*" ""
"joder" ""
"verga" ""
"porra" ""
"caralho" ""
"fdp" ""
"merda" ""
// German
"scheisse" ""
"scheiss" ""
"hurensohn*" ""
"fotze" ""
"wichser" ""
"arschloch*" ""
"missgeburt" ""
// French
"putain" ""
"merde" ""
"connard*" ""
"connasse" ""
"salope*" ""
"encule*" ""
"ntm" ""
// Turkish
"amk" ""
"aq" ""
"orospu*" ""
"siktir*" ""
"sikerim" ""
"sikeyim" ""
"yarrak*" ""
}
// telling someone to die or hurt themselves
"harassment"
{
"kys" ""
"killyourself" ""
"killurself" ""
"kill yourself" ""
"kill yourselves" ""
"kill urself" ""
"kill your self" ""
"kill ur self" ""
"kill yaself" ""
"neck yourself" ""
"neck urself" ""
"hang yourself" ""
"hang urself" ""
"go die" ""
"hope you die" ""
"hope u die" ""
"die in a fire" ""
"get cancer" ""
"get aids" ""
"drink bleach" ""
"get raped" ""
}
// sexual terms
"sexual"
{
"dick" ""
"dicks" ""
"*dickhead*" ""
"cock" ""
"cocks" ""
"*cocksucker*" ""
"pussy*" ""
"pussi*" ""
"cum" ""
"cums" ""
"cumming" ""
"cuming" ""
"cumshot*" ""
"*cumslut*" ""
"jizz*" ""
"rape*" ""
"raping" ""
"rapist*" ""
"earape*" ""
"porn*" ""
"hentai" ""
"penis*" ""
"vagina*" ""
"tits" ""
"titties" ""
"boob" ""
"boobs" ""
"boobies" ""
"anal" ""
"dildo*" ""
"blowjob*" ""
"handjob*" ""
"horny" ""
"fap*" ""
"milf*" ""
"orgasm*" ""
"masturbat*" ""
"jerk off" ""
"jerking off" ""
"jack off" ""
"buceta" ""
}
}
// never censored even when a wildcard above hits them: a bad word found entirely inside
// the part of a word an allow entry matches is skipped. Same syntax as the words, no phrases.
"allow"
{
"*snigger*" ""
"scunthorpe" ""
"shiitake*" ""
"rapeseed*" ""
"rapping" ""
"rapper*" ""
"assess*" ""
"yashito" ""
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,50 @@
#if defined _ChatFilter2_included_
#endinput
#endif
#define _ChatFilter2_included_
/**
* Censors bad words in a string the same way safe chat does, with every category.
*
* @param text String to censor in place
* @param maxlen Size of text
* @return True if anything was censored
*/
native bool ChatFilter2_CensorText(char[] text, int maxlen);
/**
* Checks if a client has safe chat enabled.
*
* @param client Client index
* @return True if safe chat is enabled
*/
native bool ChatFilter2_IsSafeChatEnabled(int client);
/**
* Called when a client toggles safe chat, and when their cookies load with safe chat enabled.
*
* @param client Client index
* @param enabled True if safe chat is now enabled
*/
forward void ChatFilter2_OnSafeChatChanged(int client, bool enabled);
#if !defined CHATFILTER2_CORE
public SharedPlugin __pl_ChatFilter2 =
{
name = "ChatFilter2",
file = "ChatFilter2.smx",
#if defined REQUIRE_PLUGIN
required = 1,
#else
required = 0,
#endif
};
#if !defined REQUIRE_PLUGIN
public void __pl_ChatFilter2_SetNTVOptional()
{
MarkNativeAsOptional("ChatFilter2_CensorText");
MarkNativeAsOptional("ChatFilter2_IsSafeChatEnabled");
}
#endif
#endif // CHATFILTER2_CORE