players.constants module

Provides constant values that are player based.

class players.constants.FixAngle[source]

Bases: enum.IntEnum

Player fix angle enumerator.

ABSOLUTE = <FixAngle.ABSOLUTE: 1>
NONE = <FixAngle.NONE: 0>
RELATIVE = <FixAngle.RELATIVE: 2>
class players.constants.HideHudFlags[source]

Bases: enum.IntFlag

Hide hud flags wrapper enumerator.

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>
class players.constants.HitGroup[source]

Bases: enum.IntEnum

Hit groups wrapper enumerator.

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>
class players.constants.LifeState[source]

Bases: enum.IntEnum

Player life states wrapper enumerator.

ALIVE = <LifeState.ALIVE: 0>
DEAD = <LifeState.DEAD: 2>
DISCARDBODY = <LifeState.DISCARDBODY: 4>
DYING = <LifeState.DYING: 1>
RESPAWNABLE = <LifeState.RESPAWNABLE: 3>
class players.constants.ObserverMode[source]

Bases: enum.IntEnum

Observer modes wrapper enumerator.

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>
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.IntFlag

Player buttons wrapper enumerator.

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>
class players.constants.PlayerStates[source]

Bases: enum.IntFlag

Player states wrapper enumerator.

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>