ah, ok, i think your problem is this line:

if(c_trace >= 0) //if c trace hits something ( ctrace > 5) or ctrace hits nothing (ctrace = 0)

so, if there is nothing under the model, ctrace will always return a 0, and your fall damage will always be 5.

try it with

if(c_trace > 0)