Can anyone help me the angle conversion formula for Unreal Engne based games?

I tried to find "View Angle Pointer Address" for Unreal Tournament 1999 and got the angles is not using degrees or radians. (The Yaw and Pitch is 4 bytes values, not a float).

The Yaw start from look forward then rotating up is 1 to 65555 (360 degrees), where "Look up" is stuck at 18000 and "Look down is stuck at 49000".

The Pitch, when rotate the mouse to the right, its start from 1 into 6555(360 degrees) then increase continously until 4294956884 then start into 1 again.(If rotate the mouse to the left its going into 1 and meet 4294956884 then decreasing continously)

what is the conversion formula for that angles based on the following Fleep's code? :

void CalcAngle(float *src, float *dst, float *angles) {

double delta[3] = { (src[0] - dst[0]), (src[1] - dst[1]), (src[2] - dst[2]) };

double hyp = sqrt(delta[0] * delta[0] + delta[1] * delta[1]);

angles[0] = (float)(asinf(delta[2] / hyp) * 57.295779513082f);

angles[1] = (float)(asinf(delta[1] / delta[0]) * 57.295779513082f);

angles[2] = 0;

if (delta[0] >= 0.0) {

angles[1] += 180.0f;

}

}

Also I want to ask what is the code to adjust aiming angle of certain Field of View (FOV)? (e.q. FOV 45 degrees aim only at the enemy infront of the player, not gonna rotate for enemy behind the player).

Sorry for my bad english and thank you for GuidedHacking.com.