Ejemplo n.º 1
0
//-----------------------------------------------------------------------------
// Returns an Edict instance from the given PlayerInfo instance.
//-----------------------------------------------------------------------------
bool EdictFromPlayerInfo( IPlayerInfo *pPlayerInfo, edict_t*& output )
{
	if (!pPlayerInfo)
		return false;

	return EdictFromUserid(pPlayerInfo->GetUserID(), output);
}
Ejemplo n.º 2
0
//-----------------------------------------------------------------------------
// Returns an index from the given UserID.
//-----------------------------------------------------------------------------
bool IndexFromUserid( unsigned int iUserID, unsigned int& output )
{
    edict_t* pEdict;
    if (!EdictFromUserid(iUserID, pEdict))
        return false;

    return IndexFromEdict(pEdict, output);
}
Ejemplo n.º 3
0
//-----------------------------------------------------------------------------
// Returns a BaseEntity instance from the given UserID.
//-----------------------------------------------------------------------------
bool BaseEntityFromUserid( unsigned int iUserID, CBaseEntity*& output )
{
	edict_t* pEdict;
	if (!EdictFromUserid(iUserID, pEdict))
		return false;

	return BaseEntityFromEdict(pEdict, output);
}