BigBrotherBot v1.9.0
System Development Information for the BigBrotherBot project.

b3::parsers::iourt42::Iourt42Parser Class Reference

Inheritance diagram for b3::parsers::iourt42::Iourt42Parser:
b3::parsers::iourt41::Iourt41Parser b3::parsers::iourt41::Iourt41Parser b3::parsers::q3a::abstractParser::AbstractParser b3::parsers::q3a::abstractParser::AbstractParser b3::parsers::q3a::abstractParser::AbstractParser b3::parsers::q3a::abstractParser::AbstractParser b3::parser::Parser b3::parser::Parser b3::parser::Parser b3::parser::Parser b3::parser::Parser b3::parser::Parser b3::parser::Parser b3::parser::Parser

List of all members.

Public Member Functions

def __new__
def startup
def pluginsStarted
def load_conf_frozensand_ban_settings
 Config loaders.
def load_conf_permban_with_frozensand
def load_conf_tempban_with_frozensand
def OnRadio
 Events handlers.
def OnCallvote
def OnVote
def OnClientjumptimerstarted
def OnClientjumptimerstopped
def OnClientsaveposition
def OnClientloadposition
def OnSurvivorwinner
def authorizeClients
 B3 Parser interface implementation.
def ban
def tempban
def inflictCustomPenalty
def queryClientFrozenSandAccount
 Other methods.
def queryAllFrozenSandAccount
def is_frozensand_auth_available
def OnClientuserinfo
def defineGameType
def patch_spamcontrolPlugin
def patch_Clients
def __new__
def startup
def pluginsStarted
def load_conf_frozensand_ban_settings
 Config loaders.
def load_conf_permban_with_frozensand
def load_conf_tempban_with_frozensand
def OnRadio
 Events handlers.
def OnCallvote
def OnVote
def OnClientjumptimerstarted
def OnClientjumptimerstopped
def OnClientsaveposition
def OnClientloadposition
def OnSurvivorwinner
def authorizeClients
 B3 Parser interface implementation.
def ban
def tempban
def inflictCustomPenalty
def queryClientFrozenSandAccount
 Other methods.
def queryAllFrozenSandAccount
def is_frozensand_auth_available
def OnClientuserinfo
def defineGameType
def patch_spamcontrolPlugin
def patch_Clients

Public Attributes

 EVT_CLIENT_RADIO
 EVT_GAME_FLAG_HOTPOTATO
 EVT_CLIENT_CALLVOTE
 EVT_CLIENT_VOTE
 EVT_CLIENT_JUMP_TIMER_START
 EVT_CLIENT_JUMP_TIMER_STOP
 EVT_CLIENT_POS_SAVE
 EVT_CLIENT_POS_LOAD
 EVT_CLIENT_SURVIVOR_WINNER
 spamcontrolPlugin

Static Public Attributes

string gameName = 'iourt42'
string MOD_WATER = '1'
 kill modes
string MOD_LAVA = '3'
string MOD_TELEFRAG = '5'
string MOD_FALLING = '6'
string MOD_SUICIDE = '7'
string MOD_TRIGGER_HURT = '9'
string MOD_CHANGE_TEAM = '10'
string UT_MOD_KNIFE = '12'
string UT_MOD_KNIFE_THROWN = '13'
string UT_MOD_BERETTA = '14'
string UT_MOD_DEAGLE = '15'
string UT_MOD_SPAS = '16'
string UT_MOD_UMP45 = '17'
string UT_MOD_MP5K = '18'
string UT_MOD_LR300 = '19'
string UT_MOD_G36 = '20'
string UT_MOD_PSG1 = '21'
string UT_MOD_HK69 = '22'
string UT_MOD_BLED = '23'
string UT_MOD_KICKED = '24'
string UT_MOD_HEGRENADE = '25'
string UT_MOD_SR8 = '27'
string UT_MOD_AK103 = '29'
string UT_MOD_SPLODED = '30'
string UT_MOD_SLAPPED = '31'
string UT_MOD_SMITED = '32'
string UT_MOD_BOMBED = '33'
string UT_MOD_NUKED = '34'
string UT_MOD_NEGEV = '35'
string UT_MOD_HK69_HIT = '36'
string UT_MOD_M4 = '37'
string UT_MOD_GLOCK = '38'
string UT_MOD_FLAG = '39'
string UT_MOD_GOOMBA = '40'
dictionary hitweapon2killweapon
 weapons id on Hit: lines are different than the one on the Kill: lines.

Private Member Functions

def _getDamagePoints
def _getDamagePoints

Static Private Attributes

dictionary _commands
dictionary _eventMap
tuple _lineClear = re.compile(r'^(?:[0-9:]+\s?)?')
tuple _lineFormats
tuple _regPlayer = re.compile(r'^(?P<slot>[0-9]+)\s+(?P<score>[0-9-]+)\s+(?P<ping>[0-9]+|CNCT|ZMBI)\s+(?P<name>.*?)\s+(?P<last>[0-9]+)\s+(?P<ip>[0-9.]+):(?P<port>[0-9-]+)\s+(?P<qport>[0-9]+)\s+(?P<rate>[0-9]+)$', re.I)
tuple _reColor = re.compile(r'(\^.)|[\x00-\x20]|[\x7E-\xff]')
tuple _reTeamScores = re.compile(r'^Scores:\s+R:(?P<RedScore>.+)\s+B:(?P<BlueScore>.+)$', re.I)
tuple _rePlayerScore = re.compile(r'^(?P<slot>[0-9]+): (?P<name>.*) (?P<team>RED|BLUE|SPECTATOR|FREE) k:(?P<kill>[0-9]+) d:(?P<death>[0-9]+) ping:(?P<ping>[0-9]+|CNCT|ZMBI)( (?P<ip>[0-9.]+):(?P<port>[0-9-]+))?$', re.I)
tuple _re_authwhois = re.compile(r"""^auth: id: (?P<cid>\d+) - name: \^7(?P<name>.+?) - login: (?P<login>.*?) - notoriety: (?P<notoriety>.+?) - level: (?P<level>-?\d+?)(?:\s+- (?P<extra>.*))?$""", re.MULTILINE)
 _permban_with_frozensand = False
 _tempban_with_frozensand = False

Member Function Documentation

def b3::parsers::iourt42::Iourt42Parser::__new__ (   cls,
  args,
  kwargs 
)
def b3::parsers::iourt42::Iourt42Parser::__new__ (   cls,
  args,
  kwargs 
)
def b3::parsers::iourt42::Iourt42Parser::_getDamagePoints (   self,
  weapon,
  hitloc 
) [private]
provide the estimated number of damage points inflicted by a hit of a given weapon to a given body location.
try:
    points = self.damage[weapon][int(hitloc)]
    self.debug("_getDamagePoints(%s, %s) -> %s" % (weapon, hitloc, points))
    return points
except KeyError, err:
    self.warning("_getDamagePoints(%s, %s) cannot find value : %s" % (weapon, hitloc, err))
    return 15

Reimplemented from b3::parsers::iourt41::Iourt41Parser.

def b3::parsers::iourt42::Iourt42Parser::_getDamagePoints (   self,
  weapon,
  hitloc 
) [private]
provide the estimated number of damage points inflicted by a hit of a given weapon to a given body location.
try:
    points = self.damage[weapon][int(hitloc)]
    self.debug("_getDamagePoints(%s, %s) -> %s" % (weapon, hitloc, points))
    return points
except KeyError, err:
    self.warning("_getDamagePoints(%s, %s) cannot find value : %s" % (weapon, hitloc, err))
    return 15

Reimplemented from b3::parsers::iourt41::Iourt41Parser.

def b3::parsers::iourt42::Iourt42Parser::authorizeClients (   self)

B3 Parser interface implementation.

Reimplemented from b3::parsers::q3a::abstractParser::AbstractParser.

def b3::parsers::iourt42::Iourt42Parser::authorizeClients (   self)

B3 Parser interface implementation.

Reimplemented from b3::parsers::q3a::abstractParser::AbstractParser.

def b3::parsers::iourt42::Iourt42Parser::ban (   self,
  client,
  reason = '',
  admin = None,
  silent = False,
  kwargs 
)
\
ban a given player on the game server and in case of success
fire the event ('EVT_CLIENT_BAN', data={'reason': reason, 
'admin': admin}, client=target)

Reimplemented from b3::parsers::iourt41::Iourt41Parser.

def b3::parsers::iourt42::Iourt42Parser::ban (   self,
  client,
  reason = '',
  admin = None,
  silent = False,
  kwargs 
)
\
ban a given player on the game server and in case of success
fire the event ('EVT_CLIENT_BAN', data={'reason': reason, 
'admin': admin}, client=target)

Reimplemented from b3::parsers::iourt41::Iourt41Parser.

def b3::parsers::iourt42::Iourt42Parser::defineGameType (   self,
  gameTypeInt 
)
def b3::parsers::iourt42::Iourt42Parser::defineGameType (   self,
  gameTypeInt 
)
def b3::parsers::iourt42::Iourt42Parser::inflictCustomPenalty (   self,
  type,
  client,
  reason = None,
  duration = None,
  admin = None,
  data = None 
)
Called if b3.admin.penalizeClient() does not know a given penalty type. 
Overwrite this to add customized penalties for your game like 'slap', 'nuke', 
'mute', 'kill' or anything you want.
/!\ This method must return True if the penalty was inflicted.

Reimplemented from b3::parsers::iourt41::Iourt41Parser.

def b3::parsers::iourt42::Iourt42Parser::inflictCustomPenalty (   self,
  type,
  client,
  reason = None,
  duration = None,
  admin = None,
  data = None 
)
Called if b3.admin.penalizeClient() does not know a given penalty type. 
Overwrite this to add customized penalties for your game like 'slap', 'nuke', 
'mute', 'kill' or anything you want.
/!\ This method must return True if the penalty was inflicted.

Reimplemented from b3::parsers::iourt41::Iourt41Parser.

def b3::parsers::iourt42::Iourt42Parser::is_frozensand_auth_available (   self)
def b3::parsers::iourt42::Iourt42Parser::is_frozensand_auth_available (   self)
def b3::parsers::iourt42::Iourt42Parser::load_conf_frozensand_ban_settings (   self)

Config loaders.

def b3::parsers::iourt42::Iourt42Parser::load_conf_frozensand_ban_settings (   self)

Config loaders.

def b3::parsers::iourt42::Iourt42Parser::load_conf_permban_with_frozensand (   self)
def b3::parsers::iourt42::Iourt42Parser::load_conf_permban_with_frozensand (   self)
def b3::parsers::iourt42::Iourt42Parser::load_conf_tempban_with_frozensand (   self)
def b3::parsers::iourt42::Iourt42Parser::load_conf_tempban_with_frozensand (   self)
def b3::parsers::iourt42::Iourt42Parser::OnCallvote (   self,
  action,
  data,
  match = None 
)
def b3::parsers::iourt42::Iourt42Parser::OnCallvote (   self,
  action,
  data,
  match = None 
)
def b3::parsers::iourt42::Iourt42Parser::OnClientjumptimerstarted (   self,
  action,
  data,
  match = None 
)
def b3::parsers::iourt42::Iourt42Parser::OnClientjumptimerstarted (   self,
  action,
  data,
  match = None 
)
def b3::parsers::iourt42::Iourt42Parser::OnClientjumptimerstopped (   self,
  action,
  data,
  match = None 
)
def b3::parsers::iourt42::Iourt42Parser::OnClientjumptimerstopped (   self,
  action,
  data,
  match = None 
)
def b3::parsers::iourt42::Iourt42Parser::OnClientloadposition (   self,
  action,
  data,
  match = None 
)
def b3::parsers::iourt42::Iourt42Parser::OnClientloadposition (   self,
  action,
  data,
  match = None 
)
def b3::parsers::iourt42::Iourt42Parser::OnClientsaveposition (   self,
  action,
  data,
  match = None 
)
def b3::parsers::iourt42::Iourt42Parser::OnClientsaveposition (   self,
  action,
  data,
  match = None 
)
def b3::parsers::iourt42::Iourt42Parser::OnClientuserinfo (   self,
  action,
  data,
  match = None 
)
def b3::parsers::iourt42::Iourt42Parser::OnClientuserinfo (   self,
  action,
  data,
  match = None 
)
def b3::parsers::iourt42::Iourt42Parser::OnRadio (   self,
  action,
  data,
  match = None 
)

Events handlers.

def b3::parsers::iourt42::Iourt42Parser::OnRadio (   self,
  action,
  data,
  match = None 
)

Events handlers.

def b3::parsers::iourt42::Iourt42Parser::OnSurvivorwinner (   self,
  action,
  data,
  match = None 
)
def b3::parsers::iourt42::Iourt42Parser::OnSurvivorwinner (   self,
  action,
  data,
  match = None 
)
def b3::parsers::iourt42::Iourt42Parser::OnVote (   self,
  action,
  data,
  match = None 
)
def b3::parsers::iourt42::Iourt42Parser::OnVote (   self,
  action,
  data,
  match = None 
)
def b3::parsers::iourt42::Iourt42Parser::patch_Clients ( )
def b3::parsers::iourt42::Iourt42Parser::patch_Clients ( )
def b3::parsers::iourt42::Iourt42Parser::patch_spamcontrolPlugin (   self)
This method alters the Spamcontrol plugin after it started to make it aware of RADIO spam 
def b3::parsers::iourt42::Iourt42Parser::patch_spamcontrolPlugin (   self)
This method alters the Spamcontrol plugin after it started to make it aware of RADIO spam 
def b3::parsers::iourt42::Iourt42Parser::pluginsStarted (   self)
called when all plugins are started 

Reimplemented from b3::parsers::iourt41::Iourt41Parser.

def b3::parsers::iourt42::Iourt42Parser::pluginsStarted (   self)
called when all plugins are started 

Reimplemented from b3::parsers::iourt41::Iourt41Parser.

def b3::parsers::iourt42::Iourt42Parser::queryAllFrozenSandAccount (   self,
  maxRetries = None 
)
def b3::parsers::iourt42::Iourt42Parser::queryAllFrozenSandAccount (   self,
  maxRetries = None 
)
def b3::parsers::iourt42::Iourt42Parser::queryClientFrozenSandAccount (   self,
  cid 
)

Other methods.

: auth-whois 0
auth: id: 0 - name: ^7laCourge - login:  - notoriety: 0 - level: 0  - ^7no account

: auth-whois 0
auth: id: 0 - name: ^7laCourge - login: courgette - notoriety: serious - level: -1

: auth-whois 3
Client 3 is not active.
def b3::parsers::iourt42::Iourt42Parser::queryClientFrozenSandAccount (   self,
  cid 
)

Other methods.

: auth-whois 0
auth: id: 0 - name: ^7laCourge - login:  - notoriety: 0 - level: 0  - ^7no account

: auth-whois 0
auth: id: 0 - name: ^7laCourge - login: courgette - notoriety: serious - level: -1

: auth-whois 3
Client 3 is not active.
def b3::parsers::iourt42::Iourt42Parser::startup (   self)
\
Called after the parser is created before run(). Overwrite this
for anything you need to initialize you parser with.

Reimplemented from b3::parsers::iourt41::Iourt41Parser.

def b3::parsers::iourt42::Iourt42Parser::startup (   self)
\
Called after the parser is created before run(). Overwrite this
for anything you need to initialize you parser with.

Reimplemented from b3::parsers::iourt41::Iourt41Parser.

def b3::parsers::iourt42::Iourt42Parser::tempban (   self,
  client,
  reason = '',
  duration = 2,
  admin = None,
  silent = False,
  kwargs 
)
\
tempban a given player on the game server and in case of success
fire the event ('EVT_CLIENT_BAN_TEMP', data={'reason': reason, 
'duration': duration, 'admin': admin}, client=target)

Reimplemented from b3::parsers::q3a::abstractParser::AbstractParser.

def b3::parsers::iourt42::Iourt42Parser::tempban (   self,
  client,
  reason = '',
  duration = 2,
  admin = None,
  silent = False,
  kwargs 
)
\
tempban a given player on the game server and in case of success
fire the event ('EVT_CLIENT_BAN_TEMP', data={'reason': reason, 
'duration': duration, 'admin': admin}, client=target)

Reimplemented from b3::parsers::q3a::abstractParser::AbstractParser.


Member Data Documentation

dictionary b3::parsers::iourt42::Iourt42Parser::_commands [static, private]
Initial value:
{
        'broadcast': '%(prefix)s^7 %(message)s',
        'message': 'tell %(cid)s %(prefix)s ^3[pm]^7 %(message)s',
        'deadsay': 'tell %(cid)s %(prefix)s [DEAD]^7 %(message)s',
        'say': 'say %(prefix)s %(message)s',
        'saybig': 'bigtext "%(prefix)s %(message)s"',
        'set': 'set %(name)s "%(value)s"',
        'kick': 'kick %(cid)s "%(reason)s"',
        'ban': 'addip %(cid)s',
        'tempban': 'kick %(cid)s "%(reason)s"',
        'banByIp': 'addip %(ip)s',
        'unbanByIp': 'removeip %(ip)s',
        'auth-permban': 'auth-ban %(cid)s 0 0 0',
        'auth-tempban': 'auth-ban %(cid)s %(days)s %(hours)s %(minutes)s',
        'slap': 'slap %(cid)s',
        'nuke': 'nuke %(cid)s',
        'mute': 'mute %(cid)s %(seconds)s',
        'kill': 'smite %(cid)s',
    }

Reimplemented from b3::parsers::iourt41::Iourt41Parser.

dictionary b3::parsers::iourt42::Iourt42Parser::_eventMap [static, private]
Initial value:
{
        #'warmup' : b3.events.EVT_GAME_HOTPOTATO,
        #'shutdowngame' : b3.events.EVT_GAME_ROUND_END
    }

Reimplemented from b3::parsers::iourt41::Iourt41Parser.

tuple b3::parsers::iourt42::Iourt42Parser::_lineClear = re.compile(r'^(?:[0-9:]+\s?)?') [static, private]
tuple b3::parsers::iourt42::Iourt42Parser::_re_authwhois = re.compile(r"""^auth: id: (?P<cid>\d+) - name: \^7(?P<name>.+?) - login: (?P<login>.*?) - notoriety: (?P<notoriety>.+?) - level: (?P<level>-?\d+?)(?:\s+- (?P<extra>.*))?$""", re.MULTILINE) [static, private]
tuple b3::parsers::iourt42::Iourt42Parser::_reColor = re.compile(r'(\^.)|[\x00-\x20]|[\x7E-\xff]') [static, private]
tuple b3::parsers::iourt42::Iourt42Parser::_regPlayer = re.compile(r'^(?P<slot>[0-9]+)\s+(?P<score>[0-9-]+)\s+(?P<ping>[0-9]+|CNCT|ZMBI)\s+(?P<name>.*?)\s+(?P<last>[0-9]+)\s+(?P<ip>[0-9.]+):(?P<port>[0-9-]+)\s+(?P<qport>[0-9]+)\s+(?P<rate>[0-9]+)$', re.I) [static, private]
tuple b3::parsers::iourt42::Iourt42Parser::_rePlayerScore = re.compile(r'^(?P<slot>[0-9]+): (?P<name>.*) (?P<team>RED|BLUE|SPECTATOR|FREE) k:(?P<kill>[0-9]+) d:(?P<death>[0-9]+) ping:(?P<ping>[0-9]+|CNCT|ZMBI)( (?P<ip>[0-9.]+):(?P<port>[0-9-]+))?$', re.I) [static, private]
tuple b3::parsers::iourt42::Iourt42Parser::_reTeamScores = re.compile(r'^Scores:\s+R:(?P<RedScore>.+)\s+B:(?P<BlueScore>.+)$', re.I) [static, private]
Initial value:
{
        1: UT_MOD_KNIFE,
        2: UT_MOD_BERETTA,
        3: UT_MOD_DEAGLE,
        4: UT_MOD_SPAS,
        5: UT_MOD_MP5K,
        6: UT_MOD_UMP45,
        8: UT_MOD_LR300,
        9: UT_MOD_G36,
        10: UT_MOD_PSG1,
        14: UT_MOD_SR8,
        15: UT_MOD_AK103,
        17: UT_MOD_NEGEV,
        19: UT_MOD_M4,
        20: UT_MOD_GLOCK,
        23: UT_MOD_KNIFE_THROWN,
    }

weapons id on Hit: lines are different than the one on the Kill: lines.

Here the translation table

Reimplemented from b3::parsers::iourt41::Iourt41Parser.

kill modes

Reimplemented from b3::parsers::iourt41::Iourt41Parser.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Properties