Currently I am using:

Code:
if (key_space) 
{
me.z +=16; //if space is pressed jump
ent_animate(me,"jump",jump_percentage,ANM_CYCLE);
//ent_playsound(me,woosh,100); //jumping plays woosh sound
}
if (me.z > 52) 
{
c_move(me,vector(0,0,-4.7),nullvector,GLIDE); //if the player is above z.20 then glide down at 0.8 speed, enable collision
//ent_animate(me,"jump",jump_percentage,ANM_CYCLE);
}



as my jump code, I wanted a FF:VII Advent Children jump style were they glide down slowly but it doesnt look right at the early stages so could someone help me with a code for jumping?