you can get the name of the level texture a trace hits. look up trace or c_trace in the manual.