I'm idiot, I was aware. Last time I have decompiled PlayerSpawn() for Connor and it's quite the same as the HLSDK one and we can see well it search for game_player_equip automatically :
Code:
void CHalfLifeMultiplay::PlayerSpawn( CBasePlayer *pPlayer )
{
if ( pPlayer->m_bJustConnected )
{
return;
}
bool addDefault = true;
CBaseEntity *pWeapon = NULL;
pPlayer->pev->weapons |= ( 1 << WEAPON_SUIT );
while ( pWeapon = UTIL_FindEntityByClassname( pWeapon, "game_player_equip" ) )
{
pWeapon->Touch( pPlayer );
addDefault = false;
}
if ( pPlayer->m_bNotKilled )
{
addDefault = false;
}
if ( addDefault || pPlayer->m_bIsVIP )
{
pPlayer->GiveDefaultItems();
}
pPlayer->SetPlayerModel();
}
__________________