engine
is_connected
Returns whether the engine is connected.
is_in_game
Returns whether the client is currently in game.
client_cmd
Runs a client command.
get_netvar_offset
Returns an offset or nil.
camera_in_thirdperson
Returns whether the local camera is currently in thirdperson.
trace_shape
engine.trace_shape(ray: ray_t, start: vec3_t, finish: vec3_t, filter: trace_filter_t): trace_t | nil
Runs engine_trace->trace_shape.
local forward = math.angle_vectors(g_camera_angles)
local filter = trace_filter_t(0x2800100001, 3, true)
local result = engine.trace_shape(ray_t(), g_camera_origin, g_camera_origin + forward * 10000, filter)
See ray_t, trace_filter_t, and trace_t.
trace_bullet
Runs bullet tracing with the local weapon data.
See bullet_trace_t.