Dynamic Actor IDs (#1729)
* Add dynamic actor IDs * Convert Ivan to use new actor system * attempt to fix linux build * attempt to fix linux build * merge * Cleanup * Fix missing math functions on Windows. * Removes a stubbed function to fix non-windows builds. * Update soh/soh/ActorDB.cpp Co-authored-by: Adam Bird <Archez@users.noreply.github.com> --------- Co-authored-by: Christopher Leggett <chris@leggett.dev> Co-authored-by: Adam Bird <Archez@users.noreply.github.com>
This commit is contained in:
@@ -29,6 +29,8 @@ u64 D_801614D0[0xA00];
|
||||
|
||||
PlayState* gPlayState;
|
||||
|
||||
s16 gEnPartnerId;
|
||||
|
||||
void func_800BC450(PlayState* play) {
|
||||
Camera_ChangeDataIdx(GET_ACTIVE_CAM(play), play->unk_1242B - 1);
|
||||
}
|
||||
@@ -729,7 +731,7 @@ void Play_Init(GameState* thisx) {
|
||||
#endif
|
||||
|
||||
if (CVarGetInteger("gIvanCoopModeEnabled", 0)) {
|
||||
Actor_Spawn(&play->actorCtx, play, ACTOR_EN_PARTNER, GET_PLAYER(play)->actor.world.pos.x,
|
||||
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, true);
|
||||
}
|
||||
@@ -764,7 +766,6 @@ void Play_Update(PlayState* play) {
|
||||
|
||||
if ((HREG(81) == 18) && (HREG(82) < 0)) {
|
||||
HREG(82) = 0;
|
||||
ActorOverlayTable_LogPrint();
|
||||
}
|
||||
|
||||
if (CVarGetInteger("gFreeCamera", 0) && Player_InCsMode(play)) {
|
||||
|
||||
Reference in New Issue
Block a user