mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 14:31:17 +00:00
Introduce Player csMode enum (#1462)
* player csmode enum * cleanup * missed one, player2 * spell out enum name * use CSMODE_MAX for data
This commit is contained in:
parent
0aff024c01
commit
aa48c66e10
63 changed files with 655 additions and 535 deletions
|
@ -653,7 +653,7 @@ void BossFd2_Death(BossFd2* this, PlayState* play) {
|
|||
case DEATH_START:
|
||||
this->deathState = DEATH_RETREAT;
|
||||
func_80064520(play, &play->csCtx);
|
||||
func_8002DF54(play, &this->actor, 1);
|
||||
func_8002DF54(play, &this->actor, PLAYER_CSMODE_1);
|
||||
this->subCamId = Play_CreateSubCamera(play);
|
||||
Play_ChangeCameraStatus(play, CAM_ID_MAIN, CAM_STAT_WAIT);
|
||||
Play_ChangeCameraStatus(play, this->subCamId, CAM_STAT_ACTIVE);
|
||||
|
@ -747,7 +747,7 @@ void BossFd2_Death(BossFd2* this, PlayState* play) {
|
|||
this->work[FD2_ACTION_STATE]++;
|
||||
this->subCamVelFactor = 0.0f;
|
||||
this->subCamAccel = 0.02f;
|
||||
func_8002DF54(play, &bossFd->actor, 1);
|
||||
func_8002DF54(play, &bossFd->actor, PLAYER_CSMODE_1);
|
||||
}
|
||||
}
|
||||
if ((bossFd->work[BFD_ACTION_STATE] == BOSSFD_BONES_FALL) && (bossFd->timers[0] == 5)) {
|
||||
|
@ -781,7 +781,7 @@ void BossFd2_Death(BossFd2* this, PlayState* play) {
|
|||
func_800C08AC(play, this->subCamId, 0);
|
||||
this->subCamId = SUB_CAM_ID_DONE;
|
||||
func_80064534(play, &play->csCtx);
|
||||
func_8002DF54(play, &this->actor, 7);
|
||||
func_8002DF54(play, &this->actor, PLAYER_CSMODE_7);
|
||||
Actor_SpawnAsChild(&play->actorCtx, &this->actor, play, ACTOR_DOOR_WARP1, 0.0f, 100.0f, 0.0f, 0, 0, 0,
|
||||
WARP_DUNGEON_ADULT);
|
||||
Flags_SetClear(play, play->roomCtx.curRoom.num);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue