smserver.plugins.hardcore package

Submodules

smserver.plugins.hardcore.plugin module

The hardcore plugin add a hardcore mode in the room.

You can enable it by typing /hardcore.

class smserver.plugins.hardcore.plugin.HardcoreChatPlugin

Bases: smserver.chatplugin.ChatPlugin

Add the hadcore command in the chat.

/hardcore will enable or disable the hardcore mode for the current room

command = 'hardcore'
helper = 'Change room mode to hardcore'
permission = <Permissions.change_room_settings: 5>
room = True
class smserver.plugins.hardcore.plugin.HardcorePlugin(server)

Bases: smserver.pluginmanager.StepmaniaPlugin

Plugin to handle each new GSU packet.

Send an attack to everybody each time a player accumulate enought point

on_nscgsu(session, serv, packet)

This method is called on each nscgsu packet.

send_attack(serv, player_id, session)

Send an attack to every players except the current one

update_score(serv, player_id, stepid)

Update the score of the given player

class smserver.plugins.hardcore.plugin.HardcoreStartControllerPlugin(server, conn, packet, session)

Bases: smserver.stepmania_controller.StepmaniaController

Custom controller for Game Start Request packet

command = <SMClientCommand.NSCGSR: 3>
handle()

Activate the hardocre mode if the room status is in hardocre when a game start

require_login = True

Module contents