# Hipfire zoom

## Preparation

In this guide you will have to edit a config file, otherwise known as `.cfg` file. Please be aware that you will need to create an `autoexec.cfg`file in `Origin Games\Titanfall2\r2\cfg\` if you do not have one.\
\
Navigate to your folder and find your `autoexec.cfg` file:

> Origin Games\Titanfall2\r2\cfg\\

Or:

> Steam\steamapps\common\Titanfall2\r2\cfg\\

Open it in your text editor of choice.

{% hint style="info" %}
You can use a different name for your config file, but you will need to use a command to execute it.
{% endhint %}

## Introduction

Source Engine games handle magnification when aiming down sights by changing the FOV to a smaller number, which creates the effect of magnification.\
This guide will teach you how to apply this effect to your hipfire view. We can achieve this by binding a key to cycle between multiple FOVs.

## Editing

Open your `autoexec.cfg` in your text editor and type in the following lines.

```
bind "MOUSE4" fovtoggle
	alias fovtoggle "fov1"
		alias "fov1" "cl_fovScale 1.0; alias fovtoggle fov2"
		alias "fov2" "cl_fovScale 1.6875; alias fovtoggle fov1"
```

Note that `cl_fovScale` values below 1.0 will default to 1.0.

I bound my FOV toggle to "MOUSE4", you can bind it to any button you'd like.\
\
This will toggle between`cl_fovScale 1.6875 (118.125 FOV)`and `cl_fovScale 1.0 (70 FOV).`\
However you will not have sensitivity scaling so when zooming in your mouse movement, much like your image, will be magnified.\
\
To have your sensitivity scale properly with your zoom you will need to divide your sensitivity value by the amount that you are zooming in (in my case that value is `1.6875 / 1.0 = 1.6875`), in this case the zoomed in sensitivity is `3.848 / 1.6875 = 2.2802962963`.\
\
Now add the proper sensitivity values to `"fov1"` and `"fov2"`

```
bind "MOUSE4" fovtoggle
	alias fovtoggle "fov1"
		alias "fov1" "cl_fovScale 1.0; alias fovtoggle fov2; m_sensitivity 2.2802962963"
		alias "fov2" "cl_fovScale 1.6875; alias fovtoggle fov1; m_sensitivity 3.848"
```

This will ensure that the mouse movement is not magnified and feels the same as it would when zoomed out.

## Examples

{% embed url="<https://gfycat.com/vaguedazzlingbackswimmer>" %}

{% embed url="<https://gfycat.com/sizzlingunfitasiansmallclawedotter>" %}

![EVA-8 zoomed in (70 FOV)](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-20a82f17008332c8939756b1f362f34f7526caf1%2FTitanfall2_PCJD3NMa5S.jpg?alt=media)

![EVA-8 zoomed out (118.125 FOV)](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-79f013ad7185edf0f72a7f0572d7c64270565fc7%2FTitanfall2_gsVomi4DFK.jpg?alt=media)

![HCOG Ranger zoomed in (70 FOV)](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-fb66ee3c68bcf3821f234ddff01a2a375f14f47d%2FTitanfall2_MYP3TREOFt.jpg?alt=media)

![HCOG Ranger zoomed out (118.125 FOV)](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-c2e9831269988595500593aa5b675f8e7a64751c%2FTitanfall2_dMtALqxcbr.jpg?alt=media)

{% hint style="info" %}
**Resources:**

* <https://developer.valvesoftware.com/wiki/Field_of_View>
* <https://en.wikipedia.org/wiki/Frustum>
* <https://en.wikipedia.org/wiki/Angle_of_view>
* <https://en.wikipedia.org/wiki/Parallax>
  {% endhint %}
