Add "classify" keyvalue to override monster classification.

This commit is contained in:
Julian
2020-06-03 13:57:06 -03:00
parent 1e68434df5
commit 6d4a608793
19 changed files with 116 additions and 7 deletions

View File

@@ -992,7 +992,15 @@ int CMBaseTurret::MoveTurret(void)
int CMBaseTurret::Classify ( void )
{
if (m_iOn || m_iAutoStart)
return CLASS_MACHINE;
{
if ( m_iClassifyOverride == -1 ) // helper
return CLASS_NONE;
else if ( m_iClassifyOverride > 0 )
return m_iClassifyOverride; // override
return CLASS_MACHINE;
}
return CLASS_NONE;
}