int CASW_Spawn_Manager::getAlienHull( const char* alienClass) { int nCount = GetNumAlienClasses(); for ( int i = 0 ; i < nCount; i++ ) { if ( !Q_stricmp( alienClass, GetAlienClass( i )->m_pszAlienClass ) ) { return GetAlienClass( i )->m_nHullType; } } return CANDIDATE_ALIEN_HULL; }
void CASW_Spawn_Manager::LevelInitPreEntity() { m_nAwakeAliens = 0; m_nAwakeDrones = 0; // init alien classes for ( int i = 0; i < GetNumAlienClasses(); i++ ) { GetAlienClass( i )->m_iszAlienClass = AllocPooledString( GetAlienClass( i )->m_pszAlienClass ); } }
void CASW_Spawn_Manager::LevelInitPreEntity() { m_nAwakeAliens = 0; m_nAwakeDrones = 0; // init alien classes for ( int i = 0; i < GetNumAlienClasses(); i++ ) { GetAlienClass( i )->m_iszAlienClass = AllocPooledString( GetAlienClass( i )->m_pszAlienClass ); } spawnSelection.Init(); const char* mapname = STRING( gpGlobals->mapname ); spawnSelection.SetCurrentSpawnSet(ASWGameRules()->GetMissionDifficulty(), mapname); }
bool CASW_Spawn_Manager::GetAlienBounds( string_t iszAlienClass, Vector &vecMins, Vector &vecMaxs ) { int nCount = GetNumAlienClasses(); for ( int i = 0 ; i < nCount; i++ ) { if ( iszAlienClass == GetAlienClass( i )->m_iszAlienClass ) { vecMins = NAI_Hull::Mins( GetAlienClass( i )->m_nHullType ); vecMaxs = NAI_Hull::Maxs (GetAlienClass( i )->m_nHullType ); return true; } } return false; }
bool CASW_Spawn_Manager::GetAlienBounds( const char *szAlienClass, Vector &vecMins, Vector &vecMaxs ) { int nCount = GetNumAlienClasses(); for ( int i = 0 ; i < nCount; i++ ) { if ( !Q_stricmp( szAlienClass, GetAlienClass( i )->m_pszAlienClass ) ) { vecMins = NAI_Hull::Mins( GetAlienClass( i )->m_nHullType ); vecMaxs = NAI_Hull::Maxs (GetAlienClass( i )->m_nHullType ); return true; } } return false; }
bool CASW_Spawn_Manager::GetAlienBounds( string_t iszAlienClass, Vector &vecMins, Vector &vecMaxs ) { int nCount = GetNumAlienClasses(); for ( int i = 0 ; i < nCount; i++ ) { if ( iszAlienClass == GetAlienClass( i )->m_iszAlienClass ) { vecMins = NAI_Hull::Mins( GetAlienClass( i )->m_nHullType ); vecMaxs = NAI_Hull::Maxs (GetAlienClass( i )->m_nHullType ); return true; } } if (strcmp(iszAlienClass.ToCStr(), "asw_drone_uber") == 0) { vecMins = NAI_Hull::Mins( HULL_MEDIUMBIG ); vecMaxs = NAI_Hull::Maxs( HULL_MEDIUMBIG ); return true; } return false; }