mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04:00
Avoid sending packets for 9 more ingame scripts
This commit is contained in:
parent
2032bf9cad
commit
65363b0dd1
@ -230,18 +230,28 @@ void Main::PressedKey(int key)
|
|||||||
// should be ignored because of their potential for spam
|
// should be ignored because of their potential for spam
|
||||||
bool Main::isValidPacketScript(std::string script)
|
bool Main::isValidPacketScript(std::string script)
|
||||||
{
|
{
|
||||||
static const int invalidPacketScriptsCount = 7;
|
static const int invalidPacketScriptsCount = 16;
|
||||||
static const std::string invalidPacketScripts[invalidPacketScriptsCount] = {
|
static const std::string invalidPacketScripts[invalidPacketScriptsCount] = {
|
||||||
// Spammy shorts
|
// Spammy shorts
|
||||||
"OutsideBanner",
|
"OutsideBanner",
|
||||||
"sleeperScript",
|
"sleeperScript",
|
||||||
"dreamer_talkerEnable",
|
"dreamer_talkerEnable",
|
||||||
|
"drenSlaveOwners",
|
||||||
|
"ahnassiScript",
|
||||||
|
"FaluraScript",
|
||||||
|
"hlormarScript",
|
||||||
// Spammy floats
|
// Spammy floats
|
||||||
"Float",
|
"Float",
|
||||||
"SignRotate",
|
"SignRotate",
|
||||||
|
// Spammy globals
|
||||||
|
"wraithguardScript",
|
||||||
// Spammy globals leading to crashes
|
// Spammy globals leading to crashes
|
||||||
"LegionUniform",
|
"LegionUniform",
|
||||||
"OrdinatorUniform"
|
"OrdinatorUniform",
|
||||||
|
"LorkhanHeart",
|
||||||
|
"ouch_keening",
|
||||||
|
"ouch_sunder",
|
||||||
|
"ouch_wraithguard"
|
||||||
};
|
};
|
||||||
|
|
||||||
for (int i = 0; i < invalidPacketScriptsCount; i++)
|
for (int i = 0; i < invalidPacketScriptsCount; i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user