mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-08-13 20:44:41 -04:00
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:
committed by
GitHub
parent
44888584c4
commit
1c58bcc3e9
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user