Code:
public plugin_init() {
register_forward( FM_TraceLine, "fwd_TraceLine" );
}
public fwd_TraceLine( Float:start[3], Float:end[3], nomonsters, enttoskip, ptr ) {
// start is the starting point of the trace/bullet line
// end is the ending point of the trace/bullet line
}
If this doesn't solve your problem, another idea is to shoot a trace and test if it makes it all the way.
By using FM Utilities, you can run:
fm_trace_line( id, fStartOrigin, fEndOrigin, fStop );
Then test if fStop is equal to fEndOrigin. If not, it hit something at fStop (such as a box or wall).
__________________