PHP Code:
get_tr2(trace, TR_flFraction, fraction)
// If we didn't hit anything, then we won't get a valid TR_vecPlaneNormal.
if (fraction == 1.0) return
new Float:normal[3]
get_tr2(trace, TR_vecPlaneNormal, normal)
// We'll multiply the the normal vector by a scalar to make it longer.
normal[0] *= 400.0 // Mathematically, we multiplied the length of the vector by 400*(3)^(1/2),
normal[1] *= 400.0 // or, in words, four hundred times root three.
normal[2] *= 400.0
You might get false result because you are not checking if the trace hit something transfer the vector into angles and it should give you the angles of the wall.
If i am wrong can you explain more of what are you doing?
__________________