Actor improvements p3_1

This commit is contained in:
mohabhassan 2019-06-30 02:42:38 +02:00
parent 32fddb163f
commit 38b3f2b9b0
7 changed files with 71 additions and 32 deletions

View file

@ -844,6 +844,30 @@ StateScript *GameScript::GetCatchStateScript( unsigned char *in, unsigned char *
}
}
bool GameScript::ScriptCheck(void)
{
if (g_scriptcheck->integer == 1)
{
return true;
}
if (g_scriptcheck->integer <= 3)
{
if (strstr(Filename().c_str(), "anim/") != Filename().c_str())
{
return true;
}
}
if (g_scriptcheck->integer == 3)
{
if (strstr(Filename().c_str(), "global/") != Filename().c_str())
{
return true;
}
}
return false;
}
ScriptThreadLabel::ScriptThreadLabel()
{
m_Script = NULL;