mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 22:27:57 +03:00
Reversing Actor #2
This commit is contained in:
parent
4b79fb2097
commit
f58b058de8
13 changed files with 1156 additions and 329 deletions
|
@ -2312,3 +2312,35 @@ void ScriptVM::RequestContextSwitch( void )
|
|||
m_ThreadState = THREAD_CONTEXT_SWITCH;
|
||||
Suspend();
|
||||
}
|
||||
|
||||
bool ScriptVM::CanScriptTracePrint
|
||||
(
|
||||
void
|
||||
)
|
||||
{
|
||||
if (g_scripttrace->integer < 1 || g_scripttrace->integer > 4)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (g_scripttrace->integer <= 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (!m_ScriptClass)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (!*g_monitor->string || !m_ScriptClass->m_Self || !m_ScriptClass->m_Self->isInheritedBy(&SimpleEntity::ClassInfo) || ((SimpleEntity *)m_ScriptClass->m_Self.Pointer())->targetname != g_monitor->string)
|
||||
{
|
||||
if (g_monitorNum->integer >= 0)
|
||||
{
|
||||
if (m_ScriptClass->m_Self && m_ScriptClass->m_Self->isInheritedBy(&Entity::ClassInfo) && ((Entity *)m_ScriptClass->m_Self.Pointer())->entnum == g_monitorNum->integer)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue