Crosshair

In missions the mouse cursor is represented by crosshairs. The player character always faces the direction of the crosshairs position on the screen and all his actions (shooting, special item usage) are launched into the same direction.

Controls

Is the player using mouse/keyboard controls, the crosshairs always take the position of the mouse cursor.

Gamepad

As the control with the gamepad is subject to several restrictions, the mobility of the crosshairs is restricted according to the following rules:

  • The crosshairs rubber-band back to the character when the gamepad stick is in a neutral orientation.
  • They keep a minimum distance to the player character.
  • Their distance to the player character increases relative to the axis values of the gamepad stick - up to a maximum distance.
  • If the gamepad stick is brought into a neutral position/orientation (centered), the crosshairs stay at the aforesaid minimum distance aiming into the direction they were last oriented towards (therefore the character keeps his last aiming direction).

Mockup
crosshairs.png

Kamera

The camera - by default centered onto the player character - partly moves with the crosshairs.

  • If the crosshairs are centered on the position of the player character, the camera is perfectly centered as well. Due to the minimum distance in gamepad control mode, this is only posible with mouse control.
  • If the crosshairs are moved as far away as possible (with the maximum being the border of the window), the camera takes a predefined maximum distance to its center-position. Additionally, due to the difference between window height and width, the maximum move distance of the camera must be set for both axes independent.
  • The camera position is interpolated between its center-position and maximum distance, relative to all probable crosshairs positions.

Mockup
camera.jpg