opengsq.responses.cod4 package
Submodules
opengsq.responses.cod4.cod4_status module
opengsq.responses.cod4.info module
- opengsq.responses.cod4.info.translate_gametype(gametype_code: str) str
Translate CoD4 gametype codes to German display names.
- Parameters:
gametype_code – The gametype code from the server
- Returns:
German display name for the gametype
- class opengsq.responses.cod4.info.Info(data: dict[str, str])
Bases:
objectRepresents the info response from a Call of Duty 4 server.
- sv_maxPing: str = ''
Maximum ping allowed.
- voice: str = ''
Voice chat enabled.
- mod: str = ''
Mod information.
- hw: str = ''
Hardware information.
- od: str = ''
Unknown parameter.
- hc: str = ''
Hardcore mode.
- ki: str = ''
Kill info.
- ff: str = ''
Friendly fire.
- pswrd: str = ''
Password protected.
- shortversion: str = ''
Short version string.
- build: str = ''
Build number.
- pure: str = ''
Pure server.
- gametype: str = ''
Game type.
- sv_maxclients: str = ''
Maximum clients.
- g_humanplayers: str = ''
Human players count.
- clients: str = ''
Current clients.
- mapname: str = ''
Current map name.
- hostname: str = ''
Server hostname.
- protocol: str = ''
Protocol version.
- challenge: str = ''
Challenge string.
- property gametype_translated: str
Get the translated gametype name.
- Returns:
German display name for the gametype
opengsq.responses.cod4.status module
- opengsq.responses.cod4.status.translate_gametype(gametype_code: str) str
Translate CoD4 gametype codes to German display names.
- Parameters:
gametype_code – The gametype code from the server
- Returns:
German display name for the gametype
- class opengsq.responses.cod4.status.Status(data: dict[str, str])
Bases:
objectRepresents the status response from a Call of Duty 4 server.
- sv_maxclients: str = ''
Maximum clients.
- version: str = ''
Server version.
- shortversion: str = ''
Short version string.
- build: str = ''
Build number.
- branch: str = ''
Branch information.
- revision: str = ''
Revision information.
- protocol: str = ''
Protocol version.
- sv_privateClients: str = ''
Private clients.
- sv_hostname: str = ''
Server hostname.
- sv_minPing: str = ''
Minimum ping.
- sv_maxPing: str = ''
Maximum ping.
- sv_disableClientConsole: str = ''
Client console disabled.
- sv_voice: str = ''
Voice chat.
- g_mapStartTime: str = ''
Map start time.
- uptime: str = ''
Server uptime.
- g_gametype: str = ''
Game type.
- mapname: str = ''
Current map name.
- sv_maxRate: str = ''
Maximum rate.
- sv_floodprotect: str = ''
Flood protection.
- sv_pure: str = ''
Pure server.
- gamename: str = ''
Game name.
- g_compassShowEnemies: str = ''
Compass show enemies.
- property g_gametype_translated: str
Get the translated gametype name.
- Returns:
German display name for the gametype