players.helpers module

Provides helper functions specific to players.

players.helpers.address_from_playerinfo((_players.PlayerInfo)PlayerInfo) str :

Return the Address (of type “str”) from the given PlayerInfo (of type “IPlayerInfo *”).

players.helpers.baseentity_from_playerinfo((_players.PlayerInfo)PlayerInfo) object :

Return the BaseEntity (of type “CBaseEntity *”) from the given PlayerInfo (of type “IPlayerInfo *”).

players.helpers.baseentity_from_userid((int)Userid) object :

Return the BaseEntity (of type “CBaseEntity *”) from the given Userid (of type “unsigned int”).

players.helpers.basehandle_from_playerinfo((_players.PlayerInfo)PlayerInfo) _entities.BaseEntityHandle :

Return the BaseHandle (of type “CBaseHandle”) from the given PlayerInfo (of type “IPlayerInfo *”).

players.helpers.basehandle_from_userid((int)Userid) _entities.BaseEntityHandle :

Return the BaseHandle (of type “CBaseHandle”) from the given Userid (of type “unsigned int”).

players.helpers.edict_from_playerinfo((_players.PlayerInfo)PlayerInfo) _entities.Edict :

Return the Edict (of type “edict_t *”) from the given PlayerInfo (of type “IPlayerInfo *”).

players.helpers.edict_from_userid((int)Userid) _entities.Edict :

Return the Edict (of type “edict_t *”) from the given Userid (of type “unsigned int”).

players.helpers.get_client_language(index)[source]

Return the language of the given client.

Parameters:

index (int) – Index of the client.

players.helpers.index_from_name((str)Name) int :

Return the Index (of type “unsigned int”) from the given Name (of type “const char *”).

players.helpers.index_from_playerinfo((_players.PlayerInfo)PlayerInfo) int :

Return the Index (of type “unsigned int”) from the given PlayerInfo (of type “IPlayerInfo *”).

players.helpers.index_from_steamid((str)SteamID) int :

Return the Index (of type “unsigned int”) from the given SteamID (of type “const char *”).

players.helpers.index_from_uniqueid((str)UniqueID) int :

Return the Index (of type “unsigned int”) from the given UniqueID (of type “const char *”).

players.helpers.index_from_userid((int)Userid) int :

Return the Index (of type “unsigned int”) from the given Userid (of type “unsigned int”).

players.helpers.inthandle_from_playerinfo((_players.PlayerInfo)PlayerInfo) int :

Return the IntHandle (of type “unsigned int”) from the given PlayerInfo (of type “IPlayerInfo *”).

players.helpers.inthandle_from_userid((int)Userid) int :

Return the IntHandle (of type “unsigned int”) from the given Userid (of type “unsigned int”).

players.helpers.playerinfo_from_baseentity((object)BaseEntity) _players.PlayerInfo :

Return the PlayerInfo (of type “IPlayerInfo *”) from the given BaseEntity (of type “CBaseEntity *”).

players.helpers.playerinfo_from_basehandle((_entities.BaseEntityHandle)BaseHandle) _players.PlayerInfo :

Return the PlayerInfo (of type “IPlayerInfo *”) from the given BaseHandle (of type “CBaseHandle”).

players.helpers.playerinfo_from_edict((_entities.Edict)Edict) _players.PlayerInfo :

Return the PlayerInfo (of type “IPlayerInfo *”) from the given Edict (of type “edict_t *”).

players.helpers.playerinfo_from_index((int)Index) _players.PlayerInfo :

Return the PlayerInfo (of type “IPlayerInfo *”) from the given Index (of type “unsigned int”).

players.helpers.playerinfo_from_inthandle((int)IntHandle) _players.PlayerInfo :

Return the PlayerInfo (of type “IPlayerInfo *”) from the given IntHandle (of type “unsigned int”).

players.helpers.playerinfo_from_pointer((_memory.Pointer)Pointer) _players.PlayerInfo :

Return the PlayerInfo (of type “IPlayerInfo *”) from the given Pointer (of type “CPointer *”).

players.helpers.playerinfo_from_userid((int)Userid) _players.PlayerInfo :

Return the PlayerInfo (of type “IPlayerInfo *”) from the given Userid (of type “unsigned int”).

players.helpers.pointer_from_playerinfo((_players.PlayerInfo)PlayerInfo) _memory.Pointer :

Return the Pointer (of type “CPointer”) from the given PlayerInfo (of type “IPlayerInfo *”).

players.helpers.pointer_from_userid((int)Userid) _memory.Pointer :

Return the Pointer (of type “CPointer”) from the given Userid (of type “unsigned int”).

players.helpers.uniqueid_from_index((int)Index) str :

Return the UniqueID (of type “str”) from the given Index (of type “unsigned int”).

players.helpers.uniqueid_from_playerinfo((_players.PlayerInfo)PlayerInfo) str :

Return the UniqueID (of type “str”) from the given PlayerInfo (of type “IPlayerInfo *”).

players.helpers.userid_from_baseentity((object)BaseEntity) int :

Return the Userid (of type “unsigned int”) from the given BaseEntity (of type “CBaseEntity *”).

players.helpers.userid_from_basehandle((_entities.BaseEntityHandle)BaseHandle) int :

Return the Userid (of type “unsigned int”) from the given BaseHandle (of type “CBaseHandle”).

players.helpers.userid_from_edict((_entities.Edict)Edict) int :

Return the Userid (of type “unsigned int”) from the given Edict (of type “edict_t *”).

players.helpers.userid_from_index((int)Index) int :

Return the Userid (of type “unsigned int”) from the given Index (of type “unsigned int”).

players.helpers.userid_from_inthandle((int)IntHandle) int :

Return the Userid (of type “unsigned int”) from the given IntHandle (of type “unsigned int”).

players.helpers.userid_from_playerinfo((_players.PlayerInfo)PlayerInfo) int :

Return the Userid (of type “unsigned int”) from the given PlayerInfo (of type “IPlayerInfo *”).

players.helpers.userid_from_pointer((_memory.Pointer)Pointer) int :

Return the Userid (of type “unsigned int”) from the given Pointer (of type “CPointer *”).