summaryrefslogtreecommitdiff
path: root/soh/src/code/z_onepointdemo.c
diff options
context:
space:
mode:
authorGarrett Cox <garrettjcox@gmail.com>2024-01-08 09:25:47 -0600
committerGarrett Cox <garrettjcox@gmail.com>2024-02-02 15:39:01 -0600
commit596ea5ebbb3e5a5dfab72fb7bee6d4802d8b13d4 (patch)
tree4161db9bf2f0ad30895e9195e3bbaa7db56785cc /soh/src/code/z_onepointdemo.c
parentfe9dcf1fc3f82711f03f932e3f153dc4ba3cf7df (diff)
Vanilla Behavior Overhaul
Co-authored-by: jordanpg <jordanpg@users.noreply.github.com>
Diffstat (limited to 'soh/src/code/z_onepointdemo.c')
-rw-r--r--soh/src/code/z_onepointdemo.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/soh/src/code/z_onepointdemo.c b/soh/src/code/z_onepointdemo.c
index 9489eefcd..ad5df65bd 100644
--- a/soh/src/code/z_onepointdemo.c
+++ b/soh/src/code/z_onepointdemo.c
@@ -1,6 +1,7 @@
#include "global.h"
#include "vt.h"
#include "overlays/actors/ovl_En_Sw/z_en_sw.h"
+#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
static s16 sDisableAttention = false;
static s16 sUnused = -1;
@@ -810,12 +811,7 @@ s32 OnePointCutscene_SetInfo(PlayState* play, s16 camIdx, s16 csId, Actor* actor
break;
case 4100:
csInfo->keyFrames = D_801225D4;
- // RANDO: Waterfall opening cutscene skips to the end of the cutscene data earlier by doing this
- if (!(IS_RANDO)) {
- csInfo->keyFrameCnt = 5;
- } else {
- csInfo->keyFrameCnt = 2;
- }
+ csInfo->keyFrameCnt = ARRAY_COUNT(D_801225D4);
player->actor.shape.rot.y = player->actor.world.rot.y = player->currentYaw = 0x3FFC;
func_800C0808(play, camIdx, player, CAM_SET_CS_C);
@@ -1176,6 +1172,16 @@ s16 OnePointCutscene_Init(PlayState* play, s16 csId, s16 timer, Actor* actor, s1
s16 csCamIdx;
Camera* csCam;
+ if (actor != NULL && actor->id != ACTOR_PLAYER) {
+ if (!GameInteractor_Should(GI_VB_PLAY_ONEPOINT_ACTOR_CS, true, actor)) {
+ return;
+ }
+ } else {
+ if (!GameInteractor_Should(GI_VB_PLAY_ONEPOINT_CS, true, &csId)) {
+ return;
+ }
+ }
+
if (parentCamIdx == SUBCAM_ACTIVE) {
parentCamIdx = play->activeCamera;
}