⚙ïļtrace_t

trace_t datatype

endpos

the end position

fraction

float

percentage of the path the trace went (0 - 1)

ent_index

number

index of impacted entity if any

hitbox

number

impacted hitbox if any

hitgroup

number

impacted hitgroup if any

plane_normal

math.vec3

surface plane's normal vector

plane_dist

float

plane distancecontents

allsolid

boolean

if true then the plane is not valid

startsolid

boolean

if true then the initial point was in a solid area

fractionleftsolid

float

time left a solid, only valid if started in solid

contents

number

-

disp_flags

number

-

weapon_type

number

the type of weapon

surface_name

string

-

surface_props

number

-

surface_flags

number

-

Last updated