|
|
|
@ -85,14 +85,14 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(1, rank);
|
|
|
|
|
obj->SetObjectParent(1, 0);
|
|
|
|
|
modelManager->AddModelReference("portico2.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(1, Math::Vector(0.0f, 67.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(1, glm::vec3(0.0f, 67.0f, 0.0f));
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
|
engine->SetObjectType(rank, Gfx::ENG_OBJTYPE_DESCENDANT);
|
|
|
|
|
obj->SetObjectRank(2, rank);
|
|
|
|
|
obj->SetObjectParent(2, 1);
|
|
|
|
|
modelManager->AddModelReference("portico3.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(2, Math::Vector(0.0f, 0.0f, -33.0f));
|
|
|
|
|
obj->SetPartPosition(2, glm::vec3(0.0f, 0.0f, -33.0f));
|
|
|
|
|
obj->SetPartRotationY(2, 45.0f*Math::PI/180.0f);
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
@ -100,7 +100,7 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(3, rank);
|
|
|
|
|
obj->SetObjectParent(3, 2);
|
|
|
|
|
modelManager->AddModelReference("portico4.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(3, Math::Vector(50.0f, 0.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(3, glm::vec3(50.0f, 0.0f, 0.0f));
|
|
|
|
|
obj->SetPartRotationY(3, -60.0f*Math::PI/180.0f);
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
@ -108,7 +108,7 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(4, rank);
|
|
|
|
|
obj->SetObjectParent(4, 3);
|
|
|
|
|
modelManager->AddModelReference("portico5.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(4, Math::Vector(35.0f, 0.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(4, glm::vec3(35.0f, 0.0f, 0.0f));
|
|
|
|
|
obj->SetPartRotationY(4, -55.0f*Math::PI/180.0f);
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
@ -116,7 +116,7 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(5, rank);
|
|
|
|
|
obj->SetObjectParent(5, 1);
|
|
|
|
|
modelManager->AddModelReference("portico3.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(5, Math::Vector(0.0f, 0.0f, 33.0f));
|
|
|
|
|
obj->SetPartPosition(5, glm::vec3(0.0f, 0.0f, 33.0f));
|
|
|
|
|
obj->SetPartRotationY(5, -45.0f*Math::PI/180.0f);
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
@ -124,7 +124,7 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(6, rank);
|
|
|
|
|
obj->SetObjectParent(6, 5);
|
|
|
|
|
modelManager->AddModelReference("portico4.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(6, Math::Vector(50.0f, 0.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(6, glm::vec3(50.0f, 0.0f, 0.0f));
|
|
|
|
|
obj->SetPartRotationY(6, 60.0f*Math::PI/180.0f);
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
@ -132,7 +132,7 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(7, rank);
|
|
|
|
|
obj->SetObjectParent(7, 6);
|
|
|
|
|
modelManager->AddModelReference("portico5.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(7, Math::Vector(35.0f, 0.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(7, glm::vec3(35.0f, 0.0f, 0.0f));
|
|
|
|
|
obj->SetPartRotationY(7, 55.0f*Math::PI/180.0f);
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
@ -140,7 +140,7 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(8, rank);
|
|
|
|
|
obj->SetObjectParent(8, 0);
|
|
|
|
|
modelManager->AddModelReference("portico6.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(8, Math::Vector(-35.0f, 50.0f, -35.0f));
|
|
|
|
|
obj->SetPartPosition(8, glm::vec3(-35.0f, 50.0f, -35.0f));
|
|
|
|
|
obj->SetPartRotationY(8, -Math::PI/2.0f);
|
|
|
|
|
obj->SetPartScale(8, 2.0f);
|
|
|
|
|
|
|
|
|
@ -149,14 +149,14 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(9, rank);
|
|
|
|
|
obj->SetObjectParent(9, 8);
|
|
|
|
|
modelManager->AddModelReference("portico7.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(9, Math::Vector(0.0f, 4.5f, 1.9f));
|
|
|
|
|
obj->SetPartPosition(9, glm::vec3(0.0f, 4.5f, 1.9f));
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
|
engine->SetObjectType(rank, Gfx::ENG_OBJTYPE_DESCENDANT);
|
|
|
|
|
obj->SetObjectRank(10, rank);
|
|
|
|
|
obj->SetObjectParent(10, 0);
|
|
|
|
|
modelManager->AddModelReference("portico6.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(10, Math::Vector(-35.0f, 50.0f, 35.0f));
|
|
|
|
|
obj->SetPartPosition(10, glm::vec3(-35.0f, 50.0f, 35.0f));
|
|
|
|
|
obj->SetPartRotationY(10, -Math::PI/2.0f);
|
|
|
|
|
obj->SetPartScale(10, 2.0f);
|
|
|
|
|
|
|
|
|
@ -165,20 +165,20 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(11, rank);
|
|
|
|
|
obj->SetObjectParent(11, 10);
|
|
|
|
|
modelManager->AddModelReference("portico7.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(11, Math::Vector(0.0f, 4.5f, 1.9f));
|
|
|
|
|
obj->SetPartPosition(11, glm::vec3(0.0f, 4.5f, 1.9f));
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 28.0f, 0.0f), 45.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 27.0f, 10.0f, -42.0f), 15.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 10.0f, -42.0f), 15.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-27.0f, 10.0f, -42.0f), 15.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 27.0f, 10.0f, 42.0f), 15.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 10.0f, 42.0f), 15.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-27.0f, 10.0f, 42.0f), 15.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-32.0f, 45.0f, -32.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-32.0f, 45.0f, 32.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 32.0f, 45.0f, -32.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 32.0f, 45.0f, 32.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(Math::Vector(0.0f, 35.0f, 0.0f), 50.0f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 28.0f, 0.0f), 45.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 27.0f, 10.0f, -42.0f), 15.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 10.0f, -42.0f), 15.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-27.0f, 10.0f, -42.0f), 15.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 27.0f, 10.0f, 42.0f), 15.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 10.0f, 42.0f), 15.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-27.0f, 10.0f, 42.0f), 15.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-32.0f, 45.0f, -32.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-32.0f, 45.0f, 32.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 32.0f, 45.0f, -32.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 32.0f, 45.0f, 32.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(glm::vec3(0.0f, 35.0f, 0.0f), 50.0f));
|
|
|
|
|
|
|
|
|
|
obj->CreateShadowCircle(50.0f, 1.0f);
|
|
|
|
|
}
|
|
|
|
@ -198,7 +198,7 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectParent(1+i, 0);
|
|
|
|
|
modelManager->AddModelReference("base2.mod", false, rank, params.team);
|
|
|
|
|
glm::vec2 p = Math::RotatePoint(-Math::PI/4.0f*i, 27.8f);
|
|
|
|
|
obj->SetPartPosition(1+i, Math::Vector(p.x, 30.0f, p.y));
|
|
|
|
|
obj->SetPartPosition(1+i, glm::vec3(p.x, 30.0f, p.y));
|
|
|
|
|
obj->SetPartRotationY(1+i, Math::PI/4.0f*i);
|
|
|
|
|
obj->SetPartRotationZ(1+i, Math::PI/2.0f);
|
|
|
|
|
|
|
|
|
@ -207,14 +207,14 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(10+i, rank);
|
|
|
|
|
obj->SetObjectParent(10+i, 1+i);
|
|
|
|
|
modelManager->AddModelReference("base4.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(10+i, Math::Vector(23.5f, 0.0f, 7.0f));
|
|
|
|
|
obj->SetPartPosition(10+i, glm::vec3(23.5f, 0.0f, 7.0f));
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
|
engine->SetObjectType(rank, Gfx::ENG_OBJTYPE_DESCENDANT);
|
|
|
|
|
obj->SetObjectRank(18+i, rank);
|
|
|
|
|
obj->SetObjectParent(18+i, 1+i);
|
|
|
|
|
modelManager->AddModelReference("base4.mod", true, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(18+i, Math::Vector(23.5f, 0.0f, -7.0f));
|
|
|
|
|
obj->SetPartPosition(18+i, glm::vec3(23.5f, 0.0f, -7.0f));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
@ -223,25 +223,25 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectParent(9, 0);
|
|
|
|
|
modelManager->AddModelReference("base3.mod", false, rank, params.team); // central pillar
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 33.0f, 0.0f), 2.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 39.0f, 0.0f), 2.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 45.0f, 0.0f), 2.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 51.0f, 0.0f), 2.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 57.0f, 0.0f), 2.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 63.0f, 0.0f), 2.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 69.0f, 0.0f), 2.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 82.0f, 0.0f), 8.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 18.0f, 94.0f, 0.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-18.0f, 94.0f, 0.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 94.0f, 18.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 94.0f, -18.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 13.0f, 94.0f, 13.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-13.0f, 94.0f, 13.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 13.0f, 94.0f, -13.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-13.0f, 94.0f, -13.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f,104.0f, 0.0f), 14.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 33.0f, 0.0f), 2.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 39.0f, 0.0f), 2.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 45.0f, 0.0f), 2.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 51.0f, 0.0f), 2.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 57.0f, 0.0f), 2.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 63.0f, 0.0f), 2.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 69.0f, 0.0f), 2.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 82.0f, 0.0f), 8.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 18.0f, 94.0f, 0.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-18.0f, 94.0f, 0.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 94.0f, 18.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 94.0f, -18.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 13.0f, 94.0f, 13.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-13.0f, 94.0f, 13.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 13.0f, 94.0f, -13.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-13.0f, 94.0f, -13.0f), 10.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f,104.0f, 0.0f), 14.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(Math::Vector(0.0f, 45.0f, 0.0f), 10.0f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(glm::vec3(0.0f, 45.0f, 0.0f), 10.0f));
|
|
|
|
|
|
|
|
|
|
obj->CreateShadowCircle(60.0f, 1.0f);
|
|
|
|
|
|
|
|
|
@ -261,12 +261,12 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectParent(1, 0);
|
|
|
|
|
modelManager->AddModelReference("derrick2.mod", false, rank, params.team);
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 0.0f, 0.0f), 6.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 10.0f, 0.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 17.0f, 0.0f), 6.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 26.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(7.0f, 17.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(Math::Vector(0.0f, 10.0f, 0.0f), 10.0f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 0.0f, 0.0f), 6.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 10.0f, 0.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 17.0f, 0.0f), 6.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 26.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(7.0f, 17.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(glm::vec3(0.0f, 10.0f, 0.0f), 10.0f));
|
|
|
|
|
|
|
|
|
|
obj->CreateShadowCircle(10.0f, 0.4f);
|
|
|
|
|
}
|
|
|
|
@ -283,22 +283,22 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(1, rank);
|
|
|
|
|
obj->SetObjectParent(1, 0);
|
|
|
|
|
modelManager->AddModelReference("search2.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(1, Math::Vector(0.0f, 13.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(1, glm::vec3(0.0f, 13.0f, 0.0f));
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
|
engine->SetObjectType(rank, Gfx::ENG_OBJTYPE_DESCENDANT);
|
|
|
|
|
obj->SetObjectRank(2, rank);
|
|
|
|
|
obj->SetObjectParent(2, 1);
|
|
|
|
|
modelManager->AddModelReference("search3.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(2, Math::Vector(0.0f, 4.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(2, glm::vec3(0.0f, 4.0f, 0.0f));
|
|
|
|
|
obj->SetPartRotationZ(2, 35.0f*Math::PI/180.0f);
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 0.0f, 0.0f), 9.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 6.0f, 0.0f), 9.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 14.0f, 0.0f), 7.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(Math::Vector(0.0f, 8.0f, 0.0f), 12.0f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 0.0f, 0.0f), 9.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 6.0f, 0.0f), 9.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 14.0f, 0.0f), 7.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(glm::vec3(0.0f, 8.0f, 0.0f), 12.0f));
|
|
|
|
|
|
|
|
|
|
obj->SetPowerPosition(Math::Vector(7.5f, 3.0f, 0.0f));
|
|
|
|
|
obj->SetPowerPosition(glm::vec3(7.5f, 3.0f, 0.0f));
|
|
|
|
|
|
|
|
|
|
obj->CreateShadowCircle(12.0f, 1.0f);
|
|
|
|
|
}
|
|
|
|
@ -315,14 +315,14 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(1, rank);
|
|
|
|
|
obj->SetObjectParent(1, 0);
|
|
|
|
|
modelManager->AddModelReference("radar2.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(1, Math::Vector(0.0f, 5.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(1, glm::vec3(0.0f, 5.0f, 0.0f));
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
|
engine->SetObjectType(rank, Gfx::ENG_OBJTYPE_DESCENDANT);
|
|
|
|
|
obj->SetObjectRank(2, rank);
|
|
|
|
|
obj->SetObjectParent(2, 0);
|
|
|
|
|
modelManager->AddModelReference("radar3.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(2, Math::Vector(0.0f, 11.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(2, glm::vec3(0.0f, 11.0f, 0.0f));
|
|
|
|
|
obj->SetPartRotationY(2, -Math::PI/2.0f);
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
@ -330,11 +330,11 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(3, rank);
|
|
|
|
|
obj->SetObjectParent(3, 2);
|
|
|
|
|
modelManager->AddModelReference("radar4.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(3, Math::Vector(0.0f, 4.5f, 1.9f));
|
|
|
|
|
obj->SetPartPosition(3, glm::vec3(0.0f, 4.5f, 1.9f));
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 3.0f, 0.0f), 6.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 11.0f, 0.0f), 6.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(Math::Vector(0.0f, 7.0f, 0.0f), 7.0f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 3.0f, 0.0f), 6.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 11.0f, 0.0f), 6.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(glm::vec3(0.0f, 7.0f, 0.0f), 7.0f));
|
|
|
|
|
|
|
|
|
|
obj->CreateShadowCircle(8.0f, 1.0f);
|
|
|
|
|
}
|
|
|
|
@ -346,12 +346,12 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetRotationY(params.angle);
|
|
|
|
|
obj->SetFloorHeight(0.0f);
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-2.0f, 13.0f, 0.0f), 6.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-7.0f, 3.0f, 0.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 1.0f, 0.0f), 1.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(Math::Vector(-7.0f, 5.0f, 0.0f), 5.0f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-2.0f, 13.0f, 0.0f), 6.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-7.0f, 3.0f, 0.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 1.0f, 0.0f), 1.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(glm::vec3(-7.0f, 5.0f, 0.0f), 5.0f));
|
|
|
|
|
|
|
|
|
|
obj->SetPowerPosition(Math::Vector(0.0f, 3.0f, 0.0f));
|
|
|
|
|
obj->SetPowerPosition(glm::vec3(0.0f, 3.0f, 0.0f));
|
|
|
|
|
obj->SetEnergyLevel(params.power); // initializes the energy level
|
|
|
|
|
|
|
|
|
|
obj->CreateShadowCircle(6.0f, 0.5f);
|
|
|
|
@ -369,7 +369,7 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(1, rank);
|
|
|
|
|
obj->SetObjectParent(1, 0);
|
|
|
|
|
modelManager->AddModelReference("labo2.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(1, Math::Vector(-9.0f, 3.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(1, glm::vec3(-9.0f, 3.0f, 0.0f));
|
|
|
|
|
obj->SetPartRotationZ(1, Math::PI/2.0f);
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
@ -377,14 +377,14 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(2, rank);
|
|
|
|
|
obj->SetObjectParent(2, 1);
|
|
|
|
|
modelManager->AddModelReference("labo3.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(2, Math::Vector(9.0f, -1.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(2, glm::vec3(9.0f, -1.0f, 0.0f));
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
|
engine->SetObjectType(rank, Gfx::ENG_OBJTYPE_DESCENDANT);
|
|
|
|
|
obj->SetObjectRank(3, rank);
|
|
|
|
|
obj->SetObjectParent(3, 2);
|
|
|
|
|
modelManager->AddModelReference("labo4.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(3, Math::Vector(0.0f, 0.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(3, glm::vec3(0.0f, 0.0f, 0.0f));
|
|
|
|
|
obj->SetPartRotationZ(3, 80.0f*Math::PI/180.0f);
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
@ -392,7 +392,7 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(4, rank);
|
|
|
|
|
obj->SetObjectParent(4, 2);
|
|
|
|
|
modelManager->AddModelReference("labo4.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(4, Math::Vector(0.0f, 0.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(4, glm::vec3(0.0f, 0.0f, 0.0f));
|
|
|
|
|
obj->SetPartRotationZ(4, 80.0f*Math::PI/180.0f);
|
|
|
|
|
obj->SetPartRotationY(4, Math::PI*2.0f/3.0f);
|
|
|
|
|
|
|
|
|
@ -401,18 +401,18 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(5, rank);
|
|
|
|
|
obj->SetObjectParent(5, 2);
|
|
|
|
|
modelManager->AddModelReference("labo4.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(5, Math::Vector(0.0f, 0.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(5, glm::vec3(0.0f, 0.0f, 0.0f));
|
|
|
|
|
obj->SetPartRotationZ(5, 80.0f*Math::PI/180.0f);
|
|
|
|
|
obj->SetPartRotationY(5, -Math::PI*2.0f/3.0f);
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 1.0f, 0.0f), 1.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 11.0f, 0.0f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-10.0f, 10.0f, 0.0f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-12.0f, 3.0f, 3.0f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-12.0f, 3.0f, -3.0f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(Math::Vector(-10.0f, 5.0f, 0.0f), 7.0f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 1.0f, 0.0f), 1.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 11.0f, 0.0f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-10.0f, 10.0f, 0.0f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-12.0f, 3.0f, 3.0f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-12.0f, 3.0f, -3.0f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(glm::vec3(-10.0f, 5.0f, 0.0f), 7.0f));
|
|
|
|
|
|
|
|
|
|
obj->SetPowerPosition(Math::Vector(0.0f, 3.0f, 0.0f));
|
|
|
|
|
obj->SetPowerPosition(glm::vec3(0.0f, 3.0f, 0.0f));
|
|
|
|
|
|
|
|
|
|
obj->CreateShadowCircle(7.0f, 0.5f);
|
|
|
|
|
}
|
|
|
|
@ -431,7 +431,7 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(1+i, rank);
|
|
|
|
|
obj->SetObjectParent(1+i, 0);
|
|
|
|
|
modelManager->AddModelReference("factory2.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(1+i, Math::Vector(10.0f, 2.0f*i, 10.0f));
|
|
|
|
|
obj->SetPartPosition(1+i, glm::vec3(10.0f, 2.0f*i, 10.0f));
|
|
|
|
|
obj->SetPartRotationZ(1+i, Math::PI/2.0f);
|
|
|
|
|
obj->SetPartScaleZ(1+i, 0.30f);
|
|
|
|
|
|
|
|
|
@ -440,7 +440,7 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(10+i, rank);
|
|
|
|
|
obj->SetObjectParent(10+i, 0);
|
|
|
|
|
modelManager->AddModelReference("factory2.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(10+i, Math::Vector(10.0f, 2.0f*i, -10.0f));
|
|
|
|
|
obj->SetPartPosition(10+i, glm::vec3(10.0f, 2.0f*i, -10.0f));
|
|
|
|
|
obj->SetPartRotationZ(10+i, -Math::PI/2.0f);
|
|
|
|
|
obj->SetPartRotationY(10+i, Math::PI);
|
|
|
|
|
obj->SetPartScaleZ(10+i, 0.30f);
|
|
|
|
@ -449,27 +449,27 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
for (int i=0 ; i<2 ; i++ )
|
|
|
|
|
{
|
|
|
|
|
float s = static_cast<float>(i*2-1);
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-10.0f, 2.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( -3.0f, 2.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 3.0f, 2.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 10.0f, 2.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-10.0f, 9.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( -3.0f, 9.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 3.0f, 9.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 10.0f, 9.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-10.0f, 16.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( -3.0f, 16.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 3.0f, 16.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 10.0f, 16.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-10.0f, 16.0f, 4.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( -3.0f, 16.0f, 4.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 3.0f, 16.0f, 4.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 10.0f, 16.0f, 4.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-10.0f, 2.0f, 4.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-10.0f, 9.0f, 4.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-10.0f, 2.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( -3.0f, 2.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 3.0f, 2.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 10.0f, 2.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-10.0f, 9.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( -3.0f, 9.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 3.0f, 9.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 10.0f, 9.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-10.0f, 16.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( -3.0f, 16.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 3.0f, 16.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 10.0f, 16.0f, 11.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-10.0f, 16.0f, 4.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( -3.0f, 16.0f, 4.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 3.0f, 16.0f, 4.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 10.0f, 16.0f, 4.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-10.0f, 2.0f, 4.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-10.0f, 9.0f, 4.0f*s), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
}
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-10.0f, 21.0f, -4.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(Math::Vector(0.0f, 10.0f, 0.0f), 18.0f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-10.0f, 21.0f, -4.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(glm::vec3(0.0f, 10.0f, 0.0f), 18.0f));
|
|
|
|
|
|
|
|
|
|
obj->CreateShadowCircle(24.0f, 0.3f);
|
|
|
|
|
}
|
|
|
|
@ -486,16 +486,16 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(1, rank);
|
|
|
|
|
obj->SetObjectParent(1, 0);
|
|
|
|
|
modelManager->AddModelReference("repair2.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(1, Math::Vector(-11.0f, 13.5f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(1, glm::vec3(-11.0f, 13.5f, 0.0f));
|
|
|
|
|
obj->SetPartRotationZ(1, Math::PI/2.0f);
|
|
|
|
|
|
|
|
|
|
engine->GetTerrain()->AddBuildingLevel(params.pos, 7.0f, 9.0f, 1.0f, 0.5f);
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-11.0f, 0.0f, 4.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-11.0f, 0.0f, 0.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-11.0f, 0.0f, -4.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-11.0f, 10.0f, 0.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(Math::Vector(-11.0f, 13.0f, 0.0f), 15.0f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-11.0f, 0.0f, 4.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-11.0f, 0.0f, 0.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-11.0f, 0.0f, -4.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-11.0f, 10.0f, 0.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(glm::vec3(-11.0f, 13.0f, 0.0f), 15.0f));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( params.type == OBJECT_DESTROYER )
|
|
|
|
@ -510,14 +510,14 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(1, rank);
|
|
|
|
|
obj->SetObjectParent(1, 0);
|
|
|
|
|
modelManager->AddModelReference("destroy2.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(1, Math::Vector(0.0f, 0.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(1, glm::vec3(0.0f, 0.0f, 0.0f));
|
|
|
|
|
|
|
|
|
|
engine->GetTerrain()->AddBuildingLevel(params.pos, 7.0f, 9.0f, 1.0f, 0.5f);
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-3.5f, 0.0f, -13.5f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 3.5f, 0.0f, -13.5f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-3.5f, 0.0f, 13.5f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 3.5f, 0.0f, 13.5f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-3.5f, 0.0f, -13.5f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 3.5f, 0.0f, -13.5f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-3.5f, 0.0f, 13.5f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 3.5f, 0.0f, 13.5f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
|
|
|
|
|
obj->CreateShadowCircle(19.0f, 1.0f);
|
|
|
|
|
}
|
|
|
|
@ -531,9 +531,9 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
|
|
|
|
|
engine->GetTerrain()->AddBuildingLevel(params.pos, 7.0f, 9.0f, 1.0f, 0.5f);
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-15.0f, 2.0f, 0.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-15.0f, 6.0f, 0.0f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(Math::Vector(-15.0f, 5.0f, 0.0f), 6.0f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-15.0f, 2.0f, 0.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-15.0f, 6.0f, 0.0f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(glm::vec3(-15.0f, 5.0f, 0.0f), 6.0f));
|
|
|
|
|
|
|
|
|
|
obj->SetEnergyLevel(params.power);
|
|
|
|
|
}
|
|
|
|
@ -550,14 +550,14 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(1, rank);
|
|
|
|
|
obj->SetObjectParent(1, 0);
|
|
|
|
|
modelManager->AddModelReference("convert2.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(1, Math::Vector(0.0f, 14.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(1, glm::vec3(0.0f, 14.0f, 0.0f));
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
|
engine->SetObjectType(rank, Gfx::ENG_OBJTYPE_DESCENDANT);
|
|
|
|
|
obj->SetObjectRank(2, rank);
|
|
|
|
|
obj->SetObjectParent(2, 0);
|
|
|
|
|
modelManager->AddModelReference("convert3.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(2, Math::Vector(0.0f, 11.5f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(2, glm::vec3(0.0f, 11.5f, 0.0f));
|
|
|
|
|
obj->SetPartRotationX(2, -Math::PI*0.35f);
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
@ -565,17 +565,17 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(3, rank);
|
|
|
|
|
obj->SetObjectParent(3, 0);
|
|
|
|
|
modelManager->AddModelReference("convert3.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(3, Math::Vector(0.0f, 11.5f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(3, glm::vec3(0.0f, 11.5f, 0.0f));
|
|
|
|
|
obj->SetPartRotationY(3, Math::PI);
|
|
|
|
|
obj->SetPartRotationX(3, -Math::PI*0.35f);
|
|
|
|
|
|
|
|
|
|
engine->GetTerrain()->AddBuildingLevel(params.pos, 7.0f, 9.0f, 1.0f, 0.5f);
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-10.0f, 2.0f, 4.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-10.0f, 2.0f, -4.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-10.0f, 9.0f, 0.0f), 6.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 14.0f, 0.0f), 1.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(Math::Vector(-3.0f, 8.0f, 0.0f), 14.0f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-10.0f, 2.0f, 4.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-10.0f, 2.0f, -4.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-10.0f, 9.0f, 0.0f), 6.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 14.0f, 0.0f), 1.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(glm::vec3(-3.0f, 8.0f, 0.0f), 14.0f));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( params.type == OBJECT_TOWER )
|
|
|
|
@ -590,7 +590,7 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(1, rank);
|
|
|
|
|
obj->SetObjectParent(1, 0);
|
|
|
|
|
modelManager->AddModelReference("roller2c.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(1, Math::Vector(0.0f, 20.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(1, glm::vec3(0.0f, 20.0f, 0.0f));
|
|
|
|
|
obj->SetPartRotationZ(1, Math::PI/2.0f);
|
|
|
|
|
|
|
|
|
|
rank = engine->CreateObject();
|
|
|
|
@ -598,16 +598,16 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(2, rank);
|
|
|
|
|
obj->SetObjectParent(2, 1);
|
|
|
|
|
modelManager->AddModelReference("roller3c.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(2, Math::Vector(4.5f, 0.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(2, glm::vec3(4.5f, 0.0f, 0.0f));
|
|
|
|
|
obj->SetPartRotationZ(2, 0.0f);
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 0.0f, 0.0f), 6.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 8.0f, 0.0f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 15.0f, 0.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 24.0f, 0.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(Math::Vector(0.0f, 5.0f, 0.0f), 7.0f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 0.0f, 0.0f), 6.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 8.0f, 0.0f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 15.0f, 0.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 24.0f, 0.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(glm::vec3(0.0f, 5.0f, 0.0f), 7.0f));
|
|
|
|
|
|
|
|
|
|
obj->SetPowerPosition(Math::Vector(5.0f, 3.0f, 0.0f));
|
|
|
|
|
obj->SetPowerPosition(glm::vec3(5.0f, 3.0f, 0.0f));
|
|
|
|
|
|
|
|
|
|
obj->CreateShadowCircle(6.0f, 1.0f);
|
|
|
|
|
}
|
|
|
|
@ -624,15 +624,15 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(1, rank);
|
|
|
|
|
obj->SetObjectParent(1, 0);
|
|
|
|
|
modelManager->AddModelReference("nuclear2.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(1, Math::Vector(20.0f, 10.0f, 0.0f));
|
|
|
|
|
obj->SetPartPosition(1, glm::vec3(20.0f, 10.0f, 0.0f));
|
|
|
|
|
obj->SetPartRotationZ(1, 135.0f*Math::PI/180.0f);
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 0.0f, 0.0f), 19.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 24.0f, 0.0f), 15.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(22.0f, 1.0f, 0.0f), 1.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(Math::Vector(0.0f, 17.0f, 0.0f), 26.0f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 0.0f, 0.0f), 19.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 24.0f, 0.0f), 15.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(22.0f, 1.0f, 0.0f), 1.5f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(glm::vec3(0.0f, 17.0f, 0.0f), 26.0f));
|
|
|
|
|
|
|
|
|
|
obj->SetPowerPosition(Math::Vector(22.0f, 3.0f, 0.0f));
|
|
|
|
|
obj->SetPowerPosition(glm::vec3(22.0f, 3.0f, 0.0f));
|
|
|
|
|
|
|
|
|
|
obj->CreateShadowCircle(21.0f, 1.0f);
|
|
|
|
|
}
|
|
|
|
@ -646,17 +646,17 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
|
|
|
|
|
engine->GetTerrain()->AddBuildingLevel(params.pos, 16.0f, 18.0f, 1.0f, 0.5f);
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 13.0f, 3.0f, 13.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 11.0f, 15.0f, 11.0f), 2.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-13.0f, 3.0f, 13.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-11.0f, 15.0f, -11.0f), 2.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 13.0f, 3.0f, -13.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 11.0f, 15.0f, -11.0f), 2.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-13.0f, 3.0f, -13.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-11.0f, 15.0f, -11.0f), 2.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 26.0f, 0.0f), 9.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 54.0f, 0.0f), 14.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(Math::Vector(0.0f, 10.0f, 0.0f), 20.0f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 13.0f, 3.0f, 13.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 11.0f, 15.0f, 11.0f), 2.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-13.0f, 3.0f, 13.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-11.0f, 15.0f, -11.0f), 2.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 13.0f, 3.0f, -13.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 11.0f, 15.0f, -11.0f), 2.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-13.0f, 3.0f, -13.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-11.0f, 15.0f, -11.0f), 2.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 26.0f, 0.0f), 9.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 54.0f, 0.0f), 14.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(glm::vec3(0.0f, 10.0f, 0.0f), 20.0f));
|
|
|
|
|
|
|
|
|
|
obj->CreateShadowCircle(21.0f, 1.0f);
|
|
|
|
|
}
|
|
|
|
@ -684,8 +684,8 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
|
|
|
|
|
engine->GetTerrain()->AddBuildingLevel(params.pos, 18.0f, 20.0f, 1.0f, 0.5f);
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 1.0f, 0.0f), 13.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(Math::Vector(0.0f, 1.0f, 0.0f), 13.0f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 1.0f, 0.0f), 13.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->SetCameraCollisionSphere(Math::Sphere(glm::vec3(0.0f, 1.0f, 0.0f), 13.0f));
|
|
|
|
|
|
|
|
|
|
obj->CreateShadowCircle(23.0f, 1.0f);
|
|
|
|
|
}
|
|
|
|
@ -702,7 +702,7 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(1, rank);
|
|
|
|
|
obj->SetObjectParent(1, 0);
|
|
|
|
|
modelManager->AddModelReference("huston2.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(1, Math::Vector(0.0f, 39.0f, 30.0f));
|
|
|
|
|
obj->SetPartPosition(1, glm::vec3(0.0f, 39.0f, 30.0f));
|
|
|
|
|
obj->SetPartRotationY(1, -Math::PI/2.0f);
|
|
|
|
|
obj->SetPartScale(1, 3.0f);
|
|
|
|
|
|
|
|
|
@ -711,24 +711,24 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetObjectRank(2, rank);
|
|
|
|
|
obj->SetObjectParent(2, 1);
|
|
|
|
|
modelManager->AddModelReference("huston3.mod", false, rank, params.team);
|
|
|
|
|
obj->SetPartPosition(2, Math::Vector(0.0f, 4.5f, 1.9f));
|
|
|
|
|
obj->SetPartPosition(2, glm::vec3(0.0f, 4.5f, 1.9f));
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 15.0f, 6.0f, -53.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-15.0f, 6.0f, -53.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 15.0f, 6.0f, -26.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-15.0f, 6.0f, -26.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 15.0f, 6.0f, 0.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-15.0f, 6.0f, 0.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 15.0f, 6.0f, 26.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-15.0f, 6.0f, 26.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 15.0f, 6.0f, 53.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-15.0f, 6.0f, 53.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 27.0f, 30.0f), 12.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 45.0f, 30.0f), 14.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 26.0f, 4.0f, -61.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-26.0f, 4.0f, -61.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 26.0f, 4.0f, 61.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-26.0f, 4.0f, 61.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 15.0f, 6.0f, -53.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-15.0f, 6.0f, -53.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 15.0f, 6.0f, -26.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-15.0f, 6.0f, -26.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 15.0f, 6.0f, 0.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-15.0f, 6.0f, 0.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 15.0f, 6.0f, 26.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-15.0f, 6.0f, 26.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 15.0f, 6.0f, 53.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-15.0f, 6.0f, 53.0f), 16.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 27.0f, 30.0f), 12.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 45.0f, 30.0f), 14.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 26.0f, 4.0f, -61.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-26.0f, 4.0f, -61.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 26.0f, 4.0f, 61.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-26.0f, 4.0f, 61.0f), 5.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( params.type == OBJECT_TARGET1 )
|
|
|
|
@ -739,23 +739,23 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
obj->SetScale(1.5f);
|
|
|
|
|
obj->SetFloorHeight(0.0f);
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 50.0f+14.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( -7.0f, 50.0f+12.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 7.0f, 50.0f+12.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-12.0f, 50.0f+ 7.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 12.0f, 50.0f+ 7.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-14.0f, 50.0f+ 0.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 14.0f, 50.0f+ 0.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(-12.0f, 50.0f- 7.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 12.0f, 50.0f- 7.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( -7.0f, 50.0f-12.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 7.0f, 50.0f-12.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector( 0.0f, 50.0f-14.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 50.0f+14.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( -7.0f, 50.0f+12.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 7.0f, 50.0f+12.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-12.0f, 50.0f+ 7.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 12.0f, 50.0f+ 7.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-14.0f, 50.0f+ 0.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 14.0f, 50.0f+ 0.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(-12.0f, 50.0f- 7.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 12.0f, 50.0f- 7.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( -7.0f, 50.0f-12.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 7.0f, 50.0f-12.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3( 0.0f, 50.0f-14.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 30.0f, 0.0f), 2.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 24.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 16.0f, 0.0f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(Math::Vector(0.0f, 4.0f, 0.0f), 8.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 30.0f, 0.0f), 2.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 24.0f, 0.0f), 3.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 16.0f, 0.0f), 4.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
obj->AddCrashSphere(CrashSphere(glm::vec3(0.0f, 4.0f, 0.0f), 8.0f, SOUND_BOUMm, 0.45f));
|
|
|
|
|
|
|
|
|
|
obj->CreateShadowCircle(15.0f, 1.0f);
|
|
|
|
|
}
|
|
|
|
@ -802,7 +802,7 @@ std::unique_ptr<CBaseBuilding> CBaseBuilding::Create(
|
|
|
|
|
engine->GetTerrain()->AddBuildingLevel(params.pos, 7.0f, 9.0f, 1.0f, 0.5f);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Math::Vector pos = obj->GetPosition();
|
|
|
|
|
glm::vec3 pos = obj->GetPosition();
|
|
|
|
|
pos.y += height;
|
|
|
|
|
obj->SetPosition(pos); // to display the shadows immediately
|
|
|
|
|
|
|
|
|
|