From 5a7f0f5650172031b1e01b4312841b48ed789d7b Mon Sep 17 00:00:00 2001 From: FakeMichau <49685661+FakeMichau@users.noreply.github.com> Date: Sun, 31 Jan 2021 15:22:10 +0100 Subject: [PATCH] [BotW] Add separate vertical sensitivity option Co-authored-by: M&M --- .../patch_CameraSensitivity.asm | 22 ++++++- .../Mods/CameraSensitivity/rules.txt | 57 ++++++++++++++++++- 2 files changed, 74 insertions(+), 5 deletions(-) diff --git a/src/BreathOfTheWild/Mods/CameraSensitivity/patch_CameraSensitivity.asm b/src/BreathOfTheWild/Mods/CameraSensitivity/patch_CameraSensitivity.asm index a96533c3..53a75265 100644 --- a/src/BreathOfTheWild/Mods/CameraSensitivity/patch_CameraSensitivity.asm +++ b/src/BreathOfTheWild/Mods/CameraSensitivity/patch_CameraSensitivity.asm @@ -1,5 +1,23 @@ -[BotW_CameraSensivity_V208] +[BotW_CameraSensitivity_V208] moduleMatches = 0x6267BFD0 +.origin = codecave + +; Variables +vertMovementSens: +.float ($movementSensitivity * $vertMovementSens) + +horMovementSens: +.float $movementSensitivity + +; Patches +; Sets sensitivity everywhere 0x102164C0 = .float ($sensitivity*-1) -0x101B3280 = .float (2*$movementSensitivity)+1 + +; Sets vertical sensitivity for movement +0x02B9C168 = lis r9, vertMovementSens@ha ; load address into r9 +0x02B9C170 = lfs f0, vertMovementSens@l(r9) ; load value into f0 + +; Sets horizontal sensitivity for movement +0x02B9C944 = lis r12, horMovementSens@ha ; load address into r12 +0x02B9C94c = lfs f6, horMovementSens@l(r12) ; load value into f6 diff --git a/src/BreathOfTheWild/Mods/CameraSensitivity/rules.txt b/src/BreathOfTheWild/Mods/CameraSensitivity/rules.txt index d97aa4a9..6548af8a 100644 --- a/src/BreathOfTheWild/Mods/CameraSensitivity/rules.txt +++ b/src/BreathOfTheWild/Mods/CameraSensitivity/rules.txt @@ -1,13 +1,14 @@ [Definition] titleIds = 00050000101C9400,00050000101C9500 +name = Camera Sensitivity path = "The Legend of Zelda: Breath of the Wild/Mods/Camera Sensitivity" -description = Changes the sensitivity of the camera.|On top of the normal sensitivity you can apply additional sensitivity while moving.||Made by FakeMichau and theboy181. +description = Changes the sensitivity of the camera.|On top of the normal sensitivity you can apply additional sensitivity while moving.||With higher sensitivities, vertical sensitivity may feel too high - use last option to fix.||Made by FakeMichau and theboy181. version = 6 [Default] $sensitivity = 1.00 $movementSensitivity = 1.00 - +$vertMovementSens = 1.00 [Preset] name = 0.5x @@ -128,4 +129,54 @@ $movementSensitivity = 2.50 [Preset] name = 3x category = Additional Movement Sensitivity -$movementSensitivity = 3.00 \ No newline at end of file +$movementSensitivity = 3.00 + +[Preset] +name = 0.2x +category = Additional Vertical Movement Sensitivity +$vertMovementSens = 0.2 + +[Preset] +name = 0.3x +category = Additional Vertical Movement Sensitivity +$vertMovementSens = 0.3 + +[Preset] +name = 0.4x +category = Additional Vertical Movement Sensitivity +$vertMovementSens = 0.4 + +[Preset] +name = 0.5x +category = Additional Vertical Movement Sensitivity +$vertMovementSens = 0.5 + +[Preset] +name = 0.6x +category = Additional Vertical Movement Sensitivity +$vertMovementSens = 0.6 + +[Preset] +name = 0.7x +category = Additional Vertical Movement Sensitivity +$vertMovementSens = 0.7 + +[Preset] +name = 0.8x +category = Additional Vertical Movement Sensitivity +$vertMovementSens = 0.8 + +[Preset] +name = 0.9x +category = Additional Vertical Movement Sensitivity +$vertMovementSens = 0.9 + +[Preset] +name = 1x (Default) +category = Additional Vertical Movement Sensitivity +default = 1 + +[Preset] +name = 1.1x +category = Additional Vertical Movement Sensitivity +$vertMovementSens = 1.10