Editing The Lock On Camera - SekiroResurrection/modding-wiki GitHub Wiki

In this guide, we'll walk through how to edit the camera while locked-on to an enemy.

Setup

In order to {do what must be done}, these requirements must be met.

  1. Unpack the Sekiro .exe with UXM.
  2. Have Yapped installed.

Download UXM and Yapped in the Tools page.

Getting started

First of all, we need to launch Yapped — it should detect your gameparam.parambnd.dcx file automatically.

Assuming you've also downloaded the necessary dictionary files from the Tools page, most row IDs should also have names attached to them.

We're gonna look at two parameters in this guide: NpcParam and LockCamParam.

Understanding LockCamParam

Navigate to LockCamParam. This parameter defines camera configurations while the player is locked-on to an enemy.

These are assigned with emevd events, but we can override this by assigning a static value in the NpcParam configurations.

In LockCamParam, only these parameters are important.

Parameter What it does
CamDistTarget Distance between the camera and the player character.
rotRangeMinX How far up the camera can pan. A smaller value (-80) will cause the camera to follow the target vertically almost perfectly, while a larger value (10) will make it so the camera won't follow the target as it goes upwards.
lockRotXShiftRatio The angle bias for the camera. A negative value won't do anything, while a positive value (0.4) will cause the camera to pan downwards.
chrOrgOffsetZ How high or low the camera is located.
chrLockRangeMaxRadius Maximum range before the camera disengages.
FovYChange The camera's field of view.