mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-23 10:00:25 +02:00
Reversing Actor #2
This commit is contained in:
1 parent
4b79fb2097
commit
f58b058de8
13 files changed
+1156
-329
No files matched your search
@@ -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;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user