players.constants module

Provides constant values that are player based.

class players.constants.HideHudFlags[source]

Bases: enum.IntEnum

Hide hud flags wrapper enumerator.

_member_type_

alias of int

_generate_next_value_(name, start, count, last_values)
ALL = <HideHudFlags.ALL: 4>
BONUS_PROGRESS = <HideHudFlags.BONUS_PROGRESS: 2048>
CHAT = <HideHudFlags.CHAT: 128>
CROSSHAIR = <HideHudFlags.CROSSHAIR: 256>
FLASHLIGHT = <HideHudFlags.FLASHLIGHT: 2>
HEALTH = <HideHudFlags.HEALTH: 8>
INVEHICLE = <HideHudFlags.INVEHICLE: 1024>
MISCSTATUS = <HideHudFlags.MISCSTATUS: 64>
NEEDSUIT = <HideHudFlags.NEEDSUIT: 32>
PLAYERDEAD = <HideHudFlags.PLAYERDEAD: 16>
RADAR = <HideHudFlags.RADAR: -2147483647>
VEHICLE_CROSSHAIR = <HideHudFlags.VEHICLE_CROSSHAIR: 512>
WEAPONSELECTION = <HideHudFlags.WEAPONSELECTION: 1>
_member_map_ = OrderedDict([('WEAPONSELECTION', <HideHudFlags.WEAPONSELECTION: 1>), ('FLASHLIGHT', <HideHudFlags.FLASHLIGHT: 2>), ('ALL', <HideHudFlags.ALL: 4>), ('HEALTH', <HideHudFlags.HEALTH: 8>), ('PLAYERDEAD', <HideHudFlags.PLAYERDEAD: 16>), ('NEEDSUIT', <HideHudFlags.NEEDSUIT: 32>), ('MISCSTATUS', <HideHudFlags.MISCSTATUS: 64>), ('CHAT', <HideHudFlags.CHAT: 128>), ('CROSSHAIR', <HideHudFlags.CROSSHAIR: 256>), ('VEHICLE_CROSSHAIR', <HideHudFlags.VEHICLE_CROSSHAIR: 512>), ('INVEHICLE', <HideHudFlags.INVEHICLE: 1024>), ('BONUS_PROGRESS', <HideHudFlags.BONUS_PROGRESS: 2048>), ('RADAR', <HideHudFlags.RADAR: -2147483647>)])
_member_names_ = ['WEAPONSELECTION', 'FLASHLIGHT', 'ALL', 'HEALTH', 'PLAYERDEAD', 'NEEDSUIT', 'MISCSTATUS', 'CHAT', 'CROSSHAIR', 'VEHICLE_CROSSHAIR', 'INVEHICLE', 'BONUS_PROGRESS', 'RADAR']
_value2member_map_ = {1: <HideHudFlags.WEAPONSELECTION: 1>, 2: <HideHudFlags.FLASHLIGHT: 2>, 4: <HideHudFlags.ALL: 4>, 8: <HideHudFlags.HEALTH: 8>, 16: <HideHudFlags.PLAYERDEAD: 16>, 32: <HideHudFlags.NEEDSUIT: 32>, 64: <HideHudFlags.MISCSTATUS: 64>, 128: <HideHudFlags.CHAT: 128>, 256: <HideHudFlags.CROSSHAIR: 256>, 512: <HideHudFlags.VEHICLE_CROSSHAIR: 512>, 1024: <HideHudFlags.INVEHICLE: 1024>, 2048: <HideHudFlags.BONUS_PROGRESS: 2048>, -2147483647: <HideHudFlags.RADAR: -2147483647>}
class players.constants.HitGroup[source]

Bases: enum.IntEnum

Hit groups wrapper enumerator.

_member_type_

alias of int

_generate_next_value_(name, start, count, last_values)
CHEST = <HitGroup.CHEST: 2>
GEAR = <HitGroup.GEAR: 10>
GENERIC = <HitGroup.GENERIC: 0>
HEAD = <HitGroup.HEAD: 1>
LEFTARM = <HitGroup.LEFTARM: 4>
LEFTLEG = <HitGroup.LEFTLEG: 6>
RIGHTARM = <HitGroup.RIGHTARM: 5>
RIGHTLEG = <HitGroup.RIGHTLEG: 7>
STOMACH = <HitGroup.STOMACH: 3>
_member_map_ = OrderedDict([('GENERIC', <HitGroup.GENERIC: 0>), ('HEAD', <HitGroup.HEAD: 1>), ('CHEST', <HitGroup.CHEST: 2>), ('STOMACH', <HitGroup.STOMACH: 3>), ('LEFTARM', <HitGroup.LEFTARM: 4>), ('RIGHTARM', <HitGroup.RIGHTARM: 5>), ('LEFTLEG', <HitGroup.LEFTLEG: 6>), ('RIGHTLEG', <HitGroup.RIGHTLEG: 7>), ('GEAR', <HitGroup.GEAR: 10>)])
_member_names_ = ['GENERIC', 'HEAD', 'CHEST', 'STOMACH', 'LEFTARM', 'RIGHTARM', 'LEFTLEG', 'RIGHTLEG', 'GEAR']
_value2member_map_ = {0: <HitGroup.GENERIC: 0>, 1: <HitGroup.HEAD: 1>, 2: <HitGroup.CHEST: 2>, 3: <HitGroup.STOMACH: 3>, 4: <HitGroup.LEFTARM: 4>, 5: <HitGroup.RIGHTARM: 5>, 6: <HitGroup.LEFTLEG: 6>, 7: <HitGroup.RIGHTLEG: 7>, 10: <HitGroup.GEAR: 10>}
class players.constants.LifeState[source]

Bases: enum.IntEnum

Player life states wrapper enumerator.

_member_type_

alias of int

_generate_next_value_(name, start, count, last_values)
ALIVE = <LifeState.ALIVE: 0>
DEAD = <LifeState.DEAD: 2>
DISCARDBODY = <LifeState.DISCARDBODY: 4>
DYING = <LifeState.DYING: 1>
RESPAWNABLE = <LifeState.RESPAWNABLE: 3>
_member_map_ = OrderedDict([('ALIVE', <LifeState.ALIVE: 0>), ('DYING', <LifeState.DYING: 1>), ('DEAD', <LifeState.DEAD: 2>), ('RESPAWNABLE', <LifeState.RESPAWNABLE: 3>), ('DISCARDBODY', <LifeState.DISCARDBODY: 4>)])
_member_names_ = ['ALIVE', 'DYING', 'DEAD', 'RESPAWNABLE', 'DISCARDBODY']
_value2member_map_ = {0: <LifeState.ALIVE: 0>, 1: <LifeState.DYING: 1>, 2: <LifeState.DEAD: 2>, 3: <LifeState.RESPAWNABLE: 3>, 4: <LifeState.DISCARDBODY: 4>}
class players.constants.ObserverMode[source]

Bases: enum.IntEnum

Observer modes wrapper enumerator.

_member_type_

alias of int

_generate_next_value_(name, start, count, last_values)
CHASE = <ObserverMode.CHASE: 5>
DEATHCAM = <ObserverMode.DEATHCAM: 1>
FIXED = <ObserverMode.FIXED: 3>
FREEZECAM = <ObserverMode.FREEZECAM: 2>
IN_EYE = <ObserverMode.IN_EYE: 4>
NONE = <ObserverMode.NONE: 0>
ROAMING = <ObserverMode.ROAMING: 6>
_member_map_ = OrderedDict([('NONE', <ObserverMode.NONE: 0>), ('DEATHCAM', <ObserverMode.DEATHCAM: 1>), ('FREEZECAM', <ObserverMode.FREEZECAM: 2>), ('FIXED', <ObserverMode.FIXED: 3>), ('IN_EYE', <ObserverMode.IN_EYE: 4>), ('CHASE', <ObserverMode.CHASE: 5>), ('ROAMING', <ObserverMode.ROAMING: 6>)])
_member_names_ = ['NONE', 'DEATHCAM', 'FREEZECAM', 'FIXED', 'IN_EYE', 'CHASE', 'ROAMING']
_value2member_map_ = {0: <ObserverMode.NONE: 0>, 1: <ObserverMode.DEATHCAM: 1>, 2: <ObserverMode.FREEZECAM: 2>, 3: <ObserverMode.FIXED: 3>, 4: <ObserverMode.IN_EYE: 4>, 5: <ObserverMode.CHASE: 5>, 6: <ObserverMode.ROAMING: 6>}
class players.constants.PlayerAnimation

Bases: Boost.Python.enum

ATTACK1 = _players._constants.PlayerAnimation.ATTACK1
DIE = _players._constants.PlayerAnimation.DIE
IDLE = _players._constants.PlayerAnimation.IDLE
IN_VEHICLE = _players._constants.PlayerAnimation.IN_VEHICLE
JUMP = _players._constants.PlayerAnimation.JUMP
LEAVE_AIMING = _players._constants.PlayerAnimation.LEAVE_AIMING
RELOAD = _players._constants.PlayerAnimation.RELOAD
START_AIMING = _players._constants.PlayerAnimation.START_AIMING
SUPERJUMP = _players._constants.PlayerAnimation.SUPERJUMP
WALK = _players._constants.PlayerAnimation.WALK
names = {'IDLE': _players._constants.PlayerAnimation.IDLE, 'WALK': _players._constants.PlayerAnimation.WALK, 'JUMP': _players._constants.PlayerAnimation.JUMP, 'SUPERJUMP': _players._constants.PlayerAnimation.SUPERJUMP, 'DIE': _players._constants.PlayerAnimation.DIE, 'ATTACK1': _players._constants.PlayerAnimation.ATTACK1, 'IN_VEHICLE': _players._constants.PlayerAnimation.IN_VEHICLE, 'RELOAD': _players._constants.PlayerAnimation.RELOAD, 'START_AIMING': _players._constants.PlayerAnimation.START_AIMING, 'LEAVE_AIMING': _players._constants.PlayerAnimation.LEAVE_AIMING}
values = {0: _players._constants.PlayerAnimation.IDLE, 1: _players._constants.PlayerAnimation.WALK, 2: _players._constants.PlayerAnimation.JUMP, 3: _players._constants.PlayerAnimation.SUPERJUMP, 4: _players._constants.PlayerAnimation.DIE, 5: _players._constants.PlayerAnimation.ATTACK1, 6: _players._constants.PlayerAnimation.IN_VEHICLE, 7: _players._constants.PlayerAnimation.RELOAD, 8: _players._constants.PlayerAnimation.START_AIMING, 9: _players._constants.PlayerAnimation.LEAVE_AIMING}
class players.constants.PlayerButtons[source]

Bases: enum.IntEnum

Player buttons wrapper enumerator.

_member_type_

alias of int

_generate_next_value_(name, start, count, last_values)
ALT1 = <PlayerButtons.ALT1: 16384>
ALT2 = <PlayerButtons.ALT2: 32768>
ATTACK = <PlayerButtons.ATTACK: 1>
ATTACK2 = <PlayerButtons.ATTACK2: 2048>
BACK = <PlayerButtons.BACK: 16>
BULLRUSH = <PlayerButtons.BULLRUSH: 4194304>
CANCEL = <PlayerButtons.CANCEL: 64>
DUCK = <PlayerButtons.DUCK: 4>
FORWARD = <PlayerButtons.FORWARD: 8>
GRENADE1 = <PlayerButtons.GRENADE1: 8388608>
GRENADE2 = <PlayerButtons.GRENADE2: 16777216>
JUMP = <PlayerButtons.JUMP: 2>
LEFT = <PlayerButtons.LEFT: 128>
LOOKSPIN = <PlayerButtons.LOOKSPIN: -2147483647>
MOVELEFT = <PlayerButtons.MOVELEFT: 512>
MOVERIGHT = <PlayerButtons.MOVERIGHT: 1024>
RELOAD = <PlayerButtons.RELOAD: 8192>
RIGHT = <PlayerButtons.RIGHT: 256>
RUN = <PlayerButtons.RUN: 4096>
SCORE = <PlayerButtons.SCORE: 65536>
SPEED = <PlayerButtons.SPEED: 131072>
USE = <PlayerButtons.USE: 32>
WALK = <PlayerButtons.WALK: 262144>
WEAPON1 = <PlayerButtons.WEAPON1: 1048576>
WEAPON2 = <PlayerButtons.WEAPON2: 2097152>
ZOOM = <PlayerButtons.ZOOM: 524288>
_member_map_ = OrderedDict([('ATTACK', <PlayerButtons.ATTACK: 1>), ('JUMP', <PlayerButtons.JUMP: 2>), ('DUCK', <PlayerButtons.DUCK: 4>), ('FORWARD', <PlayerButtons.FORWARD: 8>), ('BACK', <PlayerButtons.BACK: 16>), ('USE', <PlayerButtons.USE: 32>), ('CANCEL', <PlayerButtons.CANCEL: 64>), ('LEFT', <PlayerButtons.LEFT: 128>), ('RIGHT', <PlayerButtons.RIGHT: 256>), ('MOVELEFT', <PlayerButtons.MOVELEFT: 512>), ('MOVERIGHT', <PlayerButtons.MOVERIGHT: 1024>), ('ATTACK2', <PlayerButtons.ATTACK2: 2048>), ('RUN', <PlayerButtons.RUN: 4096>), ('RELOAD', <PlayerButtons.RELOAD: 8192>), ('ALT1', <PlayerButtons.ALT1: 16384>), ('ALT2', <PlayerButtons.ALT2: 32768>), ('SCORE', <PlayerButtons.SCORE: 65536>), ('SPEED', <PlayerButtons.SPEED: 131072>), ('WALK', <PlayerButtons.WALK: 262144>), ('ZOOM', <PlayerButtons.ZOOM: 524288>), ('WEAPON1', <PlayerButtons.WEAPON1: 1048576>), ('WEAPON2', <PlayerButtons.WEAPON2: 2097152>), ('BULLRUSH', <PlayerButtons.BULLRUSH: 4194304>), ('GRENADE1', <PlayerButtons.GRENADE1: 8388608>), ('GRENADE2', <PlayerButtons.GRENADE2: 16777216>), ('LOOKSPIN', <PlayerButtons.LOOKSPIN: -2147483647>)])
_member_names_ = ['ATTACK', 'JUMP', 'DUCK', 'FORWARD', 'BACK', 'USE', 'CANCEL', 'LEFT', 'RIGHT', 'MOVELEFT', 'MOVERIGHT', 'ATTACK2', 'RUN', 'RELOAD', 'ALT1', 'ALT2', 'SCORE', 'SPEED', 'WALK', 'ZOOM', 'WEAPON1', 'WEAPON2', 'BULLRUSH', 'GRENADE1', 'GRENADE2', 'LOOKSPIN']
_value2member_map_ = {1: <PlayerButtons.ATTACK: 1>, 2: <PlayerButtons.JUMP: 2>, 4: <PlayerButtons.DUCK: 4>, 8: <PlayerButtons.FORWARD: 8>, 16: <PlayerButtons.BACK: 16>, 32: <PlayerButtons.USE: 32>, 64: <PlayerButtons.CANCEL: 64>, 128: <PlayerButtons.LEFT: 128>, 256: <PlayerButtons.RIGHT: 256>, 512: <PlayerButtons.MOVELEFT: 512>, 1024: <PlayerButtons.MOVERIGHT: 1024>, 2048: <PlayerButtons.ATTACK2: 2048>, 4096: <PlayerButtons.RUN: 4096>, 8192: <PlayerButtons.RELOAD: 8192>, 16384: <PlayerButtons.ALT1: 16384>, 32768: <PlayerButtons.ALT2: 32768>, 65536: <PlayerButtons.SCORE: 65536>, 131072: <PlayerButtons.SPEED: 131072>, 262144: <PlayerButtons.WALK: 262144>, 524288: <PlayerButtons.ZOOM: 524288>, 1048576: <PlayerButtons.WEAPON1: 1048576>, 2097152: <PlayerButtons.WEAPON2: 2097152>, 4194304: <PlayerButtons.BULLRUSH: 4194304>, 8388608: <PlayerButtons.GRENADE1: 8388608>, 16777216: <PlayerButtons.GRENADE2: 16777216>, -2147483647: <PlayerButtons.LOOKSPIN: -2147483647>}
class players.constants.PlayerStates[source]

Bases: enum.IntEnum

Player states wrapper enumerator.

_member_type_

alias of int

_generate_next_value_(name, start, count, last_values)
ATCONTROLS = <PlayerStates.ATCONTROLS: 128>
CLIENT = <PlayerStates.CLIENT: 256>
DUCKING = <PlayerStates.DUCKING: 2>
FAKECLIENT = <PlayerStates.FAKECLIENT: 512>
FROZEN = <PlayerStates.FROZEN: 64>
INRAIN = <PlayerStates.INRAIN: 32>
INWATER = <PlayerStates.INWATER: 1024>
ONGROUND = <PlayerStates.ONGROUND: 1>
ONTRAIN = <PlayerStates.ONTRAIN: 16>
WATERJUMP = <PlayerStates.WATERJUMP: 8>
_member_map_ = OrderedDict([('ONGROUND', <PlayerStates.ONGROUND: 1>), ('DUCKING', <PlayerStates.DUCKING: 2>), ('WATERJUMP', <PlayerStates.WATERJUMP: 8>), ('ONTRAIN', <PlayerStates.ONTRAIN: 16>), ('INRAIN', <PlayerStates.INRAIN: 32>), ('FROZEN', <PlayerStates.FROZEN: 64>), ('ATCONTROLS', <PlayerStates.ATCONTROLS: 128>), ('CLIENT', <PlayerStates.CLIENT: 256>), ('FAKECLIENT', <PlayerStates.FAKECLIENT: 512>), ('INWATER', <PlayerStates.INWATER: 1024>)])
_member_names_ = ['ONGROUND', 'DUCKING', 'WATERJUMP', 'ONTRAIN', 'INRAIN', 'FROZEN', 'ATCONTROLS', 'CLIENT', 'FAKECLIENT', 'INWATER']
_value2member_map_ = {1: <PlayerStates.ONGROUND: 1>, 2: <PlayerStates.DUCKING: 2>, 8: <PlayerStates.WATERJUMP: 8>, 16: <PlayerStates.ONTRAIN: 16>, 32: <PlayerStates.INRAIN: 32>, 64: <PlayerStates.FROZEN: 64>, 128: <PlayerStates.ATCONTROLS: 128>, 256: <PlayerStates.CLIENT: 256>, 512: <PlayerStates.FAKECLIENT: 512>, 1024: <PlayerStates.INWATER: 1024>}