This is the part where you rotate the entire entity:

vec_to_angle(silver_surfer.pan,temp);

You can directly do this:

vec_to_angle(temp1,temp);

or like this, if needed:

vec_to_angle(temp1, vector(temp.pan + 90, temp.tilt, temp.roll));