summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorSirius902 <10891979+Sirius902@users.noreply.github.com>2022-07-06 15:46:01 -0700
committerGitHub <noreply@github.com>2022-07-06 18:46:01 -0400
commite8bfa61fc2a6b95e1a94f0297f23146c2a55cee2 (patch)
tree16f76375b1682a545406e28c9359b480ce293a53 /soh/src/code
parent537722d57a1fdd2fed24ccbab84179eb97271162 (diff)
Add N64 weird frames and OOB Bombchus cvars (#602)
* Add gN64WeirdFrames and gBombchuOOB cvars * Rename gBombchuOOB to gBombchusOOB * Fix pipeline
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_skelanime.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/soh/src/code/z_skelanime.c b/soh/src/code/z_skelanime.c
index b99510cd4..34e827b18 100644
--- a/soh/src/code/z_skelanime.c
+++ b/soh/src/code/z_skelanime.c
@@ -845,6 +845,12 @@ AnimationEntry* AnimationContext_AddEntry(AnimationContext* animationCtx, Animat
*/
void AnimationContext_SetLoadFrame(GlobalContext* globalCtx, LinkAnimationHeader* animation, s32 frame, s32 limbCount,
Vec3s* frameTable) {
+ if (CVar_GetS32("gN64WeirdFrames", 0) && frame < 0) {
+ Vec3s* src = (Vec3s*)getN64WeirdFrame((sizeof(Vec3s) * limbCount + 2) * frame);
+ memcpy(frameTable, src, sizeof(Vec3s) * limbCount + 2);
+ return;
+ }
+
AnimationEntry* entry = AnimationContext_AddEntry(&globalCtx->animationCtx, ANIMENTRY_LOADFRAME);
if (entry != NULL)