Implement/match Act1State::PlaceActors and related (#1142)

* Implement/match Act1State::PlaceActors and related

* Fix naming
This commit is contained in:
Christian Semmler
2024-11-10 13:26:48 -07:00
committed by GitHub
parent 6885abdc78
commit 5d3d66965d
9 changed files with 207 additions and 18 deletions

View File

@@ -728,3 +728,13 @@ void LegoPathActor::UpdatePlane(LegoNamedPlane& p_namedPlane)
p_namedPlane.SetDirection(GetWorldDirection());
p_namedPlane.SetUp(GetWorldUp());
}
// FUNCTION: LEGO1 0x1002f830
void LegoPathActor::PlaceActor(LegoNamedPlane& p_namedPlane)
{
if (strcmp(p_namedPlane.GetName()->GetData(), "") != 0) {
LegoWorld* world = CurrentWorld();
world->PlaceActor(this, p_namedPlane.GetName()->GetData(), 0, 0.5f, 1, 0.5f);
SetLocation(p_namedPlane.GetPosition(), p_namedPlane.GetDirection(), p_namedPlane.GetUp(), TRUE);
}
}