mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-12-13 09:23:05 +00:00
Avoid sending packets for 9 more ingame scripts
This commit is contained in:
parent
2032bf9cad
commit
65363b0dd1
1 changed files with 12 additions and 2 deletions
|
|
@ -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…
Reference in a new issue