# Weapon Positioning

## Preparation

Locate your game folder and find this folder if you are on Origin:

> Origin Games\Titanfall2\vpk\\

Or this folder if you are on Steam:

> Steam\steamapps\common\Titanfall2\vpk\\

Copy these files and paste them in a backup folder somewhere else:

* `englishclient_mp_common.bsp.pak000_dir.vpk`
* `client_mp_common.bsp.pak000_000.vpk`

You will need the Titanfall VPK Tool, the program which will allow you to open and repack Titanfall VPK files. [Here](https://noskill.gitbook.io/titanfall2/how-to-start-modding/modding-tools)

## Unpacking

Now that these files have been backed up and everything installed. Navigate to your game folder and open this file:

> Origin Games\Titanfall2\vpk\englishclient\_mp\_common.bsp.pak000\_dir.vpk

[How to extract VPK's properly ?](https://noskill.gitbook.io/titanfall2/how-to-start-modding/how-to-backup-extract-and-repack)

## Editing

Navigate to this location in your extracted folder

> \scripts\weapons

This folder contains the "config files" for the weapons. Edit those files at your own risk, if you get banned because you edit some important value don’t blame me.

Find this part of code in the file:

```
MP_BASE
	{
```

You want to add the following command in there:

```
"viewmodel_offset_hip" 						"x z y"
```

So it should look like this:

```
MP_BASE
	{	"viewmodel_offset_hip" 						"x z y" 
```

### Position Values

The Standard value for each of the coordinates is "0".

A positive "X" value is going to move the gun to the right, a negative one to the left.

A positive "Z" value is going to move the gun Forwards, a negative one backwards.

A positive "Y" value is going to move the gun up, a negative one down.

### Examples

!["viewmodel\_offset\_hip" 						"-10 0 -3"](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-602a7a536e06dffa26aedd964f4285a77dc9e75e%2Fanother%20kraber%20edit.jpg?alt=media)

!["viewmodel\_offset\_hip" 						"2 -2 -3"](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-f1a3d6a5f8bdbdf4f23377da6529ceb5b55731ed%2FDesktop%20Screenshot%202020.03.04%20-%2016.25.20.77.png?alt=media)

!["viewmodel\_offset\_hip" 						"-6.5 1 -4"](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-6246898d3e7c61b5a8f47227873095a5edf1c694%2FDesktop%20Screenshot%202020.03.04%20-%2016.47.10.40.png?alt=media)

## Repacking

[How to repack VPK files properly?](https://noskill.gitbook.io/titanfall2/how-to-start-modding/how-to-backup-extract-and-repack#how-to-repack-vpk-files-properly)

After closely following the previous link step by step:

Rename `pak000_000.vpk` *to* `client_mp_common.bsp.pak000_000.vpk`

Rename `pak000_dir.vpk` *to* `englishclient_mp_common.bsp.pak000_dir.vpk`

Place both of the renamed files back into your game directory and then launch Titanfall 2. You should be able to see your new weapon position!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://noskill.gitbook.io/titanfall2/modding/weapon-config-info/weapon-positioning.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
