mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 06:07:57 +03:00
Actor improvements p3_1
This commit is contained in:
parent
32fddb163f
commit
38b3f2b9b0
7 changed files with 71 additions and 32 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue