Add "displayname" keyvalue for custom monster names.

This commit is contained in:
Julian
2020-06-03 01:36:04 -03:00
parent 4d61695e6b
commit 1e68434df5
25 changed files with 149 additions and 23 deletions

View File

@@ -48,6 +48,7 @@ public:
void CMInfoBM::Spawn( void )
{
pev->classname = MAKE_STRING( "info_bigmomma" );
}
void CMInfoBM::KeyValue( KeyValueData* pkvd )
@@ -612,6 +613,11 @@ void CMBigMomma :: Spawn()
MonsterInit();
pev->classname = MAKE_STRING( "monster_bigmomma" );
if ( strlen( STRING( m_szMonsterName ) ) == 0 )
{
// default name
m_szMonsterName = MAKE_STRING( "Big Momma" );
}
}
//=========================================================