TR_GetHitBoxIndex Function

Returns in which hitbox the trace collided if any.

Note: if the entity that collided with the trace is the world entity, then this function doesn't return an hitbox index but a static prop index.

int TR_GetHitBoxIndex(Handle hndl)

Parameters

Handle hndl

A trace Handle, or INVALID_HANDLE to use a global trace result.

Return Value

Hitbox index (Or static prop index).

Errors

Invalid Handle.