I have been attempting various ways of using TraceRay to pick up children of parented entities, such as prop_dynamic(_override)s.
Can't seem to get children to register WHATSOEVER.
Heres an example plugin.
Use sm_tracetest_spawn twice. This places a prop at your aim's destination. Obviously best to place them at different locations.
It will return the ent IDs of those two props.
sm_tracetest_parent <one> <another> <- use this to parent one of those ents spawned with another.
bind k "say /tracetest_trace" is what I used to test the trace. When you use this on the Child, you can see the beam going right through the child, as well as the world returning as the result (0.)
EDIT: Also. This is on TF2, latest Metamod dev snapshot, latest SourceMod dev snapshot.