Ivan: Hookify and improve spawning (#6707)

Spawn/despawn Ivan immediately (not on next scene)

Move Ivan’s boomerang code out of z_player.c
This commit is contained in:
Shishu the Dragon
2026-06-10 13:41:38 +12:00
committed by GitHub
parent 44888584c4
commit 1c58bcc3e9
5 changed files with 74 additions and 31 deletions
-6
View File
@@ -683,12 +683,6 @@ void Play_Init(GameState* thisx) {
}
#endif
if (CVarGetInteger(CVAR_ENHANCEMENT("IvanCoopModeEnabled"), 0)) {
Actor_Spawn(&play->actorCtx, play, gEnPartnerId, GET_PLAYER(play)->actor.world.pos.x,
GET_PLAYER(play)->actor.world.pos.y + Player_GetHeight(GET_PLAYER(play)) + 5.0f,
GET_PLAYER(play)->actor.world.pos.z, 0, 0, 0, 1);
}
// nextEntranceIndex was not initialized, so the previous value was carried over during soft resets.
gPlayState->nextEntranceIndex = gSaveContext.entranceIndex;
}