opengsq.responses.cod1 package

Submodules

opengsq.responses.cod1.cod1_status module

class opengsq.responses.cod1.cod1_status.Cod1Status(info: Info, status: Status)

Bases: object

Represents the combined status information from a Call of Duty 1 server. Contains both info and status responses.

info: Info

The server info response.

status: Status

The server status response.

opengsq.responses.cod1.info module

opengsq.responses.cod1.info.translate_gametype(gametype_code: str) str

Translate CoD1 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.cod1.info.Info(data: dict[str, str])

Bases: object

Represents the info response from a Call of Duty 1 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.cod1.status module

opengsq.responses.cod1.status.translate_gametype(gametype_code: str) str

Translate CoD1 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.cod1.status.Status(data: dict[str, str])

Bases: object

Represents the status response from a Call of Duty 1 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

Module contents