From dc3c0dd9c852ae704aaa6f6f7ad7258d7076c5ec Mon Sep 17 00:00:00 2001 From: louist103 <35883445+louist103@users.noreply.github.com> Date: Wed, 28 Sep 2022 20:27:07 -0400 Subject: disable crit wiggle (#1629) * disable crit wiggle * Set to zero in default preset --- soh/src/code/z_camera.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'soh/src/code') diff --git a/soh/src/code/z_camera.c b/soh/src/code/z_camera.c index ea3016769..2c8f7378c 100644 --- a/soh/src/code/z_camera.c +++ b/soh/src/code/z_camera.c @@ -1732,9 +1732,11 @@ s32 Camera_Normal1(Camera* camera) { } // crit wiggle - if (gSaveContext.health <= 16 && ((camera->globalCtx->state.frames % 256) == 0)) { - wiggleAdj = Rand_ZeroOne() * 10000.0f; - camera->inputDir.y = wiggleAdj + camera->inputDir.y; + if(!CVar_GetS32("gDisableCritWiggle",0)) { + if (gSaveContext.health <= 16 && ((camera->globalCtx->state.frames % 256) == 0)) { + wiggleAdj = Rand_ZeroOne() * 10000.0f; + camera->inputDir.y = wiggleAdj + camera->inputDir.y; + } } } else { anim->swing.swingUpdateRate = norm1->unk_0C; -- cgit v1.2.3