players.helpers module

Provides helper functions specific to players.

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

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

players.helpers.baseentity_from_playerinfo((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((PlayerInfo)PlayerInfo) → BaseEntityHandle :

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

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

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

players.helpers.edict_from_playerinfo((PlayerInfo)PlayerInfo) → Edict :

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

players.helpers.edict_from_userid((int)Userid) → 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((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((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) → PlayerInfo :

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

players.helpers.playerinfo_from_basehandle((BaseEntityHandle)BaseHandle) → PlayerInfo :

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

players.helpers.playerinfo_from_edict((Edict)Edict) → PlayerInfo :

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

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

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

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

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

players.helpers.playerinfo_from_pointer((Pointer)Pointer) → PlayerInfo :

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

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

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

players.helpers.pointer_from_playerinfo((PlayerInfo)PlayerInfo) → Pointer :

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

players.helpers.pointer_from_userid((int)Userid) → 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((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((BaseEntityHandle)BaseHandle) → int :

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

players.helpers.userid_from_edict((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((PlayerInfo)PlayerInfo) → int :

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

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

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