Beispiel #1
0
void ClientActive( edict_t *pEdict, bool bLoadGame )
{
	// Can't load games in CS!
#ifndef HL2SB
	Assert( !bLoadGame );
#endif

	CHL2MP_Player *pPlayer = ToHL2MPPlayer( CBaseEntity::Instance( pEdict ) );
#ifdef HL2SB
	if( pPlayer )
		FinishClientPutInServer( pPlayer );
#else
	FinishClientPutInServer( pPlayer );
#endif
}
void ClientActive( edict_t *pEdict, bool bLoadGame )
{
	// Can't load games in CS!
	Assert( !bLoadGame );

	CHL2MP_Player *pPlayer = ToHL2MPPlayer( CBaseEntity::Instance( pEdict ) );
	FinishClientPutInServer( pPlayer );
}
void ClientActive( edict_t *pEdict, bool bLoadGame )
{
	// Can't load games in CS!
	Assert( !bLoadGame );

	CBaseTFPlayer *pPlayer = static_cast<CBaseTFPlayer*>( CBaseEntity::Instance( pEdict ) );
	FinishClientPutInServer( pPlayer );
}
//=========================================================
//=========================================================
void ClientActive(edict_t *pEdict, bool bLoadGame)
{
    CIN_Player *pPlayer = ToInPlayer(CBaseEntity::Instance(pEdict));
    Assert( pPlayer );

    if ( !pPlayer )
        return;

    // Creamos al jugador.
    pPlayer->InitialSpawn();

    // Si no esta cargando una partida guardada.
    if ( !bLoadGame )
    {
        // Spawn!
        pPlayer->Spawn();

        // Terminamos de agregarlo.
        FinishClientPutInServer(pPlayer);
    }
}