engines.server module

Provides access to the base Server interfaces.

class engines.server.ConnectionlessPacketHandler

Bases: Boost.Python.instance

__init__()

Raises an exception This class cannot be instantiated from Python

class engines.server.MapLoadType

Bases: Boost.Python.enum

Background = _globals.MapLoadType.Background
LoadGame = _globals.MapLoadType.LoadGame
NewGame = _globals.MapLoadType.NewGame
Transition = _globals.MapLoadType.Transition
names = {'NewGame': _globals.MapLoadType.NewGame, 'LoadGame': _globals.MapLoadType.LoadGame, 'Transition': _globals.MapLoadType.Transition, 'Background': _globals.MapLoadType.Background}
values = {0: _globals.MapLoadType.NewGame, 1: _globals.MapLoadType.LoadGame, 2: _globals.MapLoadType.Transition, 3: _globals.MapLoadType.Background}
class engines.server.QueryCvarStatus

Bases: Boost.Python.enum

INVALID = _engines._server.QueryCvarStatus.INVALID
NOT_FOUND = _engines._server.QueryCvarStatus.NOT_FOUND
PROTECTED = _engines._server.QueryCvarStatus.PROTECTED
SUCCESS = _engines._server.QueryCvarStatus.SUCCESS
names = {'SUCCESS': _engines._server.QueryCvarStatus.SUCCESS, 'NOT_FOUND': _engines._server.QueryCvarStatus.NOT_FOUND, 'INVALID': _engines._server.QueryCvarStatus.INVALID, 'PROTECTED': _engines._server.QueryCvarStatus.PROTECTED}
values = {0: _engines._server.QueryCvarStatus.SUCCESS, 1: _engines._server.QueryCvarStatus.NOT_FOUND, 2: _engines._server.QueryCvarStatus.INVALID, 3: _engines._server.QueryCvarStatus.PROTECTED}
class engines.server.Server

Bases: _engines._server.ConnectionlessPacketHandler

__init__()

Raises an exception This class cannot be instantiated from Python

broadcast_message((Server)arg1, (NetMessage)arg2, (bool)arg3, (bool)arg4) → None

broadcast_message( (Server)arg1, (NetMessage)arg2, (BaseRecipientFilter)arg3) -> None

disconnect_client((Server)arg1, (Client)arg2, (str)arg3) → None
get_client((Server)arg1, (Channel)arg2) → Client :

Return the interface to a client.

get_player_info((Server)arg1, (Channel)arg2, (object)arg3) → bool
is_active((Server)arg1) → bool
is_dedicated((Server)arg1) → bool
is_hltv((Server)arg1) → bool
is_loading((Server)arg1) → bool
is_multiplayer((Server)arg1) → bool
is_pausable((Server)arg1) → bool
class_bits
client_count

Return the number of client slots (used and unused).

map_name

Return the current map name.

max_clients

Return the current client limit.

name

Return the public server name

net_stats

Return a tuple containing the total net in/out in bytes/sec.

num_classes
num_clients

Return the current number of clients.

num_fake_clients

Return the number of fake clients.

num_players
num_proxies

Return the number of attached HLTV proxies.

password

Return the server password.

paused
spawn_count
tick

Return the game world tick.

tick_interval

Return the tick interval in seconds.

time

Return the game world time.

udp_port

Return the currently used UDP port.

engines.server.execute_server_command()

object execute_server_command(tuple args, dict kwds)

engines.server.queue_command_string((str)arg1) → None :

Queue a string for execution.

engines.server.queue_server_command()

object queue_server_command(tuple args, dict kwds)