i tryed somting

Code:


var phandle;

function enemy_shoot;

function player
{
you = ent_create("stuff");
phandle = you;
while(1)
{
if(my_shoot == on)
{
enemy_shoot();
}
wait(1);
}

function enemy_shoot()
{
you = phandle;
vec_for_vertex(temp,you, 1);
c_trace(temp, vector(temp.x + 200000, temp.y, temp.z), ignore_passable + ignore_you + get_hitvertex);
if(trace_hit != 0 && you != null)
{
you.life -= 50;
if(hitvertex == 12 || hitvertex == 43)
{you.life -= 50;}//because of vertex in head extra hit
}
}




"empty"