unpredicted_data_t

unpredicted_data_t holds data on the player state before input prediction was run

Fields

FieldDescription

origin vec3_t

[read-only]

velocity vec3_t

[read-only]

move vec3_t

[read-only]

Functions

has_button

checks if a cmd button was pressed

bool has_button(<e_cmd_buttons> cmd_button)
FieldsDescription

cmd_button e_cmd_buttons

Example

local shooting = unpredicted_data:has_button(e_cmd_buttons.ATTACK)

has_player_flag

checks if a player flag was set

bool has_player_flag(<e_player_flags> flag)
FieldsDescription

flag e_player_flags

Example

local was_on_ground = unpredicted_data:has_player_flag(e_player_flags.ON_GROUND)

Last updated