diff options
| author | louist103 <35883445+louist103@users.noreply.github.com> | 2022-09-28 20:27:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-28 20:27:07 -0400 |
| commit | dc3c0dd9c852ae704aaa6f6f7ad7258d7076c5ec (patch) | |
| tree | 5cc4640f59a9cf7559f528b0f03fe78686d5ab26 /soh/src/code | |
| parent | 08915e56849f0fcbf3653155494de754ee38ff4d (diff) | |
disable crit wiggle (#1629)
* disable crit wiggle
* Set to zero in default preset
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_camera.c | 8 |
1 files changed, 5 insertions, 3 deletions
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; |
