players.constants module

Provides constant values that are player based.

class players.constants.FixAngle(*values)[source]

Bases: IntEnum

Player fix angle enumerator.

ABSOLUTE = 1
NONE = 0
RELATIVE = 2
class players.constants.HideHudFlags(*values)[source]

Bases: IntFlag

Hide hud flags wrapper enumerator.

ALL = 4
BONUS_PROGRESS = 2048
CHAT = 128
CROSSHAIR = 256
FLASHLIGHT = 2
HEALTH = 8
INVEHICLE = 1024
MISCSTATUS = 64
NEEDSUIT = 32
PLAYERDEAD = 16
RADAR = -2147483647
VEHICLE_CROSSHAIR = 512
WEAPONSELECTION = 1
class players.constants.HitGroup(*values)[source]

Bases: IntEnum

Hit groups wrapper enumerator.

CHEST = 2
GEAR = 10
GENERIC = 0
HEAD = 1
LEFTARM = 4
LEFTLEG = 6
RIGHTARM = 5
RIGHTLEG = 7
STOMACH = 3
class players.constants.LifeState(*values)[source]

Bases: IntEnum

Player life states wrapper enumerator.

ALIVE = 0
DEAD = 2
DISCARDBODY = 4
DYING = 1
RESPAWNABLE = 3
class players.constants.ObserverMode(*values)[source]

Bases: IntEnum

Observer modes wrapper enumerator.

CHASE = 5
DEATHCAM = 1
FIXED = 3
FREEZECAM = 2
IN_EYE = 4
NONE = 0
ROAMING = 7
class players.constants.PlayerAnimation

Bases: 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 = {'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}
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(*values)[source]

Bases: IntFlag

Player buttons wrapper enumerator.

ALT1 = 16384
ALT2 = 32768
ATTACK = 1
ATTACK2 = 2048
BACK = 16
BULLRUSH = 4194304
CANCEL = 64
DUCK = 4
FORWARD = 8
GRENADE1 = 8388608
GRENADE2 = 16777216
JUMP = 2
LEFT = 128
LOOKSPIN = -2147483647
MOVELEFT = 512
MOVERIGHT = 1024
RELOAD = 8192
RIGHT = 256
RUN = 4096
SCORE = 65536
SPEED = 131072
USE = 32
WALK = 262144
WEAPON1 = 1048576
WEAPON2 = 2097152
ZOOM = 524288
class players.constants.PlayerStates(*values)[source]

Bases: IntFlag

Player states wrapper enumerator.

ATCONTROLS = 128
CLIENT = 256
DUCKING = 2
FAKECLIENT = 512
FROZEN = 64
INRAIN = 32
INWATER = 1024
ONGROUND = 1
ONTRAIN = 16
WATERJUMP = 8