Example #1
0
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 );
	}
}
Example #3
0
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);

}
Example #4
0
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;
}
Example #5
0
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;
}
Example #6
0
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;
}