Das Fadenkreuz ist also nicht im Mittelpunkt des Bildschirms? Sollte das Fadenkreuz die Maus sein, ist es sehr einfach:
// use the mouse to trace a ray into the level,
// and trigger EVENT_SHOOT of hit entities
function shoot_with_mouse()
{
VECTOR to;
vec_set(to,mouse_dir3d);
vec_scale(to,1000); // set a range
vec_add(to,mouse_pos3d);
c_trace(mouse_pos3d,to,ACTIVATE_SHOOT);
}
(Manual-Beispiel zu mouse_pos3d)