user_cmd
user_cmd objects are passed to register_callback("create_move", function(cmd) ... end).
command_number
Read-only command sequence number.
get_button
Returns whether a button from input_bit_mask_t is pressed.
set_button
Adds a button to the command.
remove_button
Removes a button from the command.
get_viewangles
Returns the current game input viewangles from csgo_input.
get_command_viewangles
Returns the command viewangles from mutable_base.
set_viewangles
Writes viewangles into the command mutable_base.
lock_angles
Copies command viewangles into the game input view.
movement
cmd:get_forward_move(): number
cmd:get_left_move(): number
cmd:set_forward_move(value: number)
cmd:set_left_move(value: number)
cmd:rotate_movement(yaw: number)
Movement values are clamped to -1.0..1.0. rotate_movement rotates movement toward a yaw without changing command viewangles.