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