hey i have a cool adition for your code grin
downside the code line who you have write
make this here
if(my.SPEED_Z > 0)
{
DEBUG_VAR(my.SPEED_Z,30);
vec_set(toVec, vector(my.x, my.y, my.z + 18 ));
// trace UP to it from our origin position:
COLLISION_UP = c_trace(my.x, toVec, TRACE_FLAGS | IGNORE_FLAG2 | SCAN_TEXTURE | USE_BOX);
}
else
{
COLLISION_UP = 0;
}
DEBUG_VAR(COLLISION_UP,50);
if(COLLISION_UP != 0)
my.SPEED_Z = 0;
and in the begin of the action make
its make a trace from he ca. middle to ha higer place and if this trace contact with something above hem if he Z_SPEED = 0 and he fall down
and know have the player collision to the things upside from hem
=)