I'm still using A7 where I've always relied on the same method, so I can only guess:

You can try to use hit.entity for checking which entity was hit instead of you. It might require settings SCAN_TEXTURE. see the manual unter c_trace and hit.