mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-22 16:04:17 +00:00
Name spawn areas (#1636)
This commit is contained in:
@@ -103,19 +103,19 @@ public:
|
||||
e_dunecarbuild,
|
||||
e_jetskibuild,
|
||||
e_racecarbuild,
|
||||
e_unk40,
|
||||
e_helicopterSpawn,
|
||||
e_unk41,
|
||||
e_unk42,
|
||||
e_unk43,
|
||||
e_unk44,
|
||||
e_unk45,
|
||||
e_dunebuggySpawn,
|
||||
e_racecarSpawn,
|
||||
e_jetskiSpawn,
|
||||
e_act2main,
|
||||
e_act3script,
|
||||
e_unk48,
|
||||
e_unk49,
|
||||
e_unk50,
|
||||
e_unk51,
|
||||
e_unk52,
|
||||
e_towTrackHookedUp,
|
||||
e_jukeboxw,
|
||||
e_jukeboxExterior,
|
||||
e_unk55,
|
||||
|
@@ -82,7 +82,7 @@ void Helicopter::Exit()
|
||||
|
||||
if (GameState()->GetCurrentAct() == LegoGameState::e_act1) {
|
||||
SpawnPlayer(
|
||||
LegoGameState::e_unk40,
|
||||
LegoGameState::e_helicopterSpawn,
|
||||
TRUE,
|
||||
IslePathActor::c_spawnBit1 | IslePathActor::c_playMusic | IslePathActor::c_spawnBit3
|
||||
);
|
||||
|
@@ -355,7 +355,7 @@ void IslePathActor::RegisterSpawnLocations()
|
||||
JukeboxScript::c_PoliceStation_Music
|
||||
);
|
||||
g_spawnLocations[16] = SpawnLocation(
|
||||
LegoGameState::e_unk40,
|
||||
LegoGameState::e_helicopterSpawn,
|
||||
g_isleScript,
|
||||
0,
|
||||
"edg02_51",
|
||||
@@ -379,7 +379,7 @@ void IslePathActor::RegisterSpawnLocations()
|
||||
JukeboxScript::c_noneJukebox
|
||||
);
|
||||
g_spawnLocations[18] = SpawnLocation(
|
||||
LegoGameState::e_unk43,
|
||||
LegoGameState::e_dunebuggySpawn,
|
||||
g_isleScript,
|
||||
0,
|
||||
"edg02_35",
|
||||
@@ -391,7 +391,7 @@ void IslePathActor::RegisterSpawnLocations()
|
||||
JukeboxScript::c_noneJukebox
|
||||
);
|
||||
g_spawnLocations[19] = SpawnLocation(
|
||||
LegoGameState::e_unk44,
|
||||
LegoGameState::e_racecarSpawn,
|
||||
g_isleScript,
|
||||
0,
|
||||
"EDG03_01",
|
||||
@@ -403,7 +403,7 @@ void IslePathActor::RegisterSpawnLocations()
|
||||
JukeboxScript::c_noneJukebox
|
||||
);
|
||||
g_spawnLocations[20] = SpawnLocation(
|
||||
LegoGameState::e_unk45,
|
||||
LegoGameState::e_jetskiSpawn,
|
||||
g_isleScript,
|
||||
0,
|
||||
"edg10_70",
|
||||
@@ -475,7 +475,7 @@ void IslePathActor::RegisterSpawnLocations()
|
||||
JukeboxScript::c_noneJukebox
|
||||
);
|
||||
g_spawnLocations[26] = SpawnLocation(
|
||||
LegoGameState::e_unk52,
|
||||
LegoGameState::e_towTrackHookedUp,
|
||||
g_isleScript,
|
||||
0,
|
||||
"edg02_19",
|
||||
|
@@ -67,7 +67,7 @@ void Jetski::Animate(float p_time)
|
||||
// FUNCTION: LEGO1 0x1007e6f0
|
||||
void Jetski::Exit()
|
||||
{
|
||||
SpawnPlayer(LegoGameState::e_unk45, FALSE, c_spawnBit1 | c_playMusic | c_spawnBit3);
|
||||
SpawnPlayer(LegoGameState::e_jetskiSpawn, FALSE, c_spawnBit1 | c_playMusic | c_spawnBit3);
|
||||
IslePathActor::Exit();
|
||||
GameState()->m_currentArea = LegoGameState::e_jetski;
|
||||
RemoveFromWorld();
|
||||
|
@@ -432,7 +432,7 @@ MxLong TowTrack::HandleClick()
|
||||
}
|
||||
|
||||
if (m_state->m_state == TowTrackMissionState::e_hookedUp) {
|
||||
SpawnPlayer(LegoGameState::e_unk52, TRUE, 0);
|
||||
SpawnPlayer(LegoGameState::e_towTrackHookedUp, TRUE, 0);
|
||||
FindROI("rcred")->SetVisibility(FALSE);
|
||||
}
|
||||
else {
|
||||
|
@@ -577,7 +577,7 @@ void Isle::Enable(MxBool p_enable)
|
||||
if (UserActor() != NULL && UserActor()->IsA("Jetski")) {
|
||||
IslePathActor* actor = (IslePathActor*) UserActor();
|
||||
actor->SpawnPlayer(
|
||||
LegoGameState::e_unk45,
|
||||
LegoGameState::e_jetskiSpawn,
|
||||
FALSE,
|
||||
IslePathActor::c_spawnBit1 | IslePathActor::c_playMusic | IslePathActor::c_spawnBit3
|
||||
);
|
||||
@@ -1633,7 +1633,7 @@ void Act1State::PlaceActors()
|
||||
|
||||
if (m_helicopter != NULL) {
|
||||
if (!m_helicopterPlane.IsPresent()) {
|
||||
m_helicopter->SpawnPlayer(LegoGameState::e_unk40, FALSE, 0);
|
||||
m_helicopter->SpawnPlayer(LegoGameState::e_helicopterSpawn, FALSE, 0);
|
||||
}
|
||||
else {
|
||||
isle->PlaceActor(m_helicopter, m_helicopterPlane.GetName(), 0, 0.5f, 1, 0.5f);
|
||||
@@ -1673,7 +1673,7 @@ void Act1State::PlaceActors()
|
||||
|
||||
if (m_jetski != NULL) {
|
||||
if (!m_jetskiPlane.IsPresent()) {
|
||||
m_jetski->SpawnPlayer(LegoGameState::e_unk45, FALSE, 0);
|
||||
m_jetski->SpawnPlayer(LegoGameState::e_jetskiSpawn, FALSE, 0);
|
||||
}
|
||||
else {
|
||||
isle->PlaceActor(m_jetski, m_jetskiPlane.GetName(), 0, 0.5f, 1, 0.5f);
|
||||
@@ -1703,7 +1703,7 @@ void Act1State::PlaceActors()
|
||||
|
||||
if (m_dunebuggy != NULL) {
|
||||
if (!m_dunebuggyPlane.IsPresent()) {
|
||||
m_dunebuggy->SpawnPlayer(LegoGameState::e_unk43, FALSE, 0);
|
||||
m_dunebuggy->SpawnPlayer(LegoGameState::e_dunebuggySpawn, FALSE, 0);
|
||||
}
|
||||
else {
|
||||
isle->PlaceActor(m_dunebuggy, m_dunebuggyPlane.GetName(), 0, 0.5f, 1, 0.5f);
|
||||
@@ -1731,7 +1731,7 @@ void Act1State::PlaceActors()
|
||||
|
||||
if (m_racecar != NULL) {
|
||||
if (!m_racecarPlane.IsPresent()) {
|
||||
m_racecar->SpawnPlayer(LegoGameState::e_unk44, FALSE, 0);
|
||||
m_racecar->SpawnPlayer(LegoGameState::e_racecarSpawn, FALSE, 0);
|
||||
}
|
||||
else {
|
||||
isle->PlaceActor(m_racecar, m_racecarPlane.GetName(), 0, 0.5f, 1, 0.5f);
|
||||
|
Reference in New Issue
Block a user