One of the most valuable bits of information in a first person shooter is the crosshair. This is obviously important for knowing exactly where our shots will land and where our pawn is focusing its attention.
We're going to be drawing a crosshair directly in the center of the screen, which is precisely where our projectiles will be firing.
Open your IDE and have the
TutorialHUD class ready to edit. We're going to be adding quite a few variables here.
To create crosshairs we'll need to declare variables which store our data, as well as a function to draw the actual crosshair. We'll then take our newly created
DrawWeaponCrosshair() function and add it to
DrawHUD(), so that it gets drawn on screen with ...