Skip to content



Name Type Description
startpos Vector Start position
endpos Vector Final position
plane cplane_t Surface normal at impact
fraction float Time completed, 1.0 = didn't hit anything
contents int Contents on other side of surface hit
dispFlags int Displacement flags for making surfaces with data
allsolid bool If true, plane is not valid
startsolid bool If true, the initial point was in a solid area
fractionleftsolid float Time we left a solid, only valid if we started in solid
surface csurface_t Surface hit (impact surface)
hitgroup int 0 == generic, non-zero is specific body part
physicsbone short Physics bone hit by trace in studio
worldSurfaceIndex unsigned short Index of the msurface2_t, if applicable
hit_entity IClientEntity* Entity pointer
hitbox int Box hit by trace in studio