The view entity is inside the camera, so you can use
Code:
c_trace(camera.x, trace_coords.x, IGNORE_ME )



[EDIT]
in case you want to have 'offset' from the lasergun.x
Code:
VECTOR temp;
...
vec_set(temp.x, lasergun.x);
vec_rotate(temp.x,camera.pan);
c_trace(vec_add(camera.x, temp.x), trace_coords.x, IGNORE_ME );



Warning: the code is not tested

Last edited by bart_the_13th; 07/13/11 08:26.