don't mix old and new Code and don't mix Physik with direct moves.
Here the easy way:

erase the part between

//FIND FALL DISTANCE
and
jump_handling_phys();

and enter this code:

if(key_space)
phent_addcentralforce(my, vector(0,0,xxx));

xxx is the force to jump!


-------------------------- www.3dgs.de