465 {
466 int mouse_x;
467 int mouse_y;
469
470 float center_x;
471 float center_y;
473
474 float tan_x = mouse_x - center_x;
475 float tan_y = mouse_y - center_y;
477
478 return angle;
479 }
static proto float Atan2(float y, float x)
Returns angle in radians from tangent.
proto void GetMousePos(out int x, out int y)