var run_speed = 550;
action guss()
{
var anim_cycle;
var ground_dist;
VECTOR ground_00;
player = my;
c_updatehull(my,11);
wait(1);
set(my,SHADOW);
my.material = mat_alphatest;
while(1)
{
player_exists = 1;//global
c_trace(my.x,vector(my.x,my.y,(my.z - 500)),IGNORE_ME|IGNORE_PASSABLE|IGNORE_SPRITES|USE_BOX);
vec_set(player.x,vector(player.x,player.y,(hit.z + 24)));
if(key_w == 1)
{
c_move(my,vector(run_speed*time_step/16,0,0),nullvector,IGNORE_PASSABLE|IGNORE_SPRITES|GLIDE);
ent_animate(my,"run",anim_cycle,ANM_CYCLE);
anim_cycle += 10 * time_step;
anim_cycle %= 100;
}
if(key_any == 0)
{
ent_animate(my,"stand",anim_cycle,ANM_CYCLE);
anim_cycle += 8 * time_step;
anim_cycle %= 100;
}
my.pan -= mouse_force.x + mouse_force.x;
wait(1);
}
}