diff options
author | Keader <keader.android@gmail.com> | 2020-02-06 18:09:17 -0300 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-12-21 01:19:38 +0100 |
commit | e453c632e63c2f4b6c98812c4aba4ba67645a34b (patch) | |
tree | 409ce6818fbf9ca9cf189a1411cba0cf4bd176ff | |
parent | 6433ed6014d199ffe381f5fbc5ee5ec5b85da962 (diff) |
Game/Battlegrounds: Fixed Position and Rotation of Alterac Valley Gates
(cherry picked from commit ddd1a3c1efb05fbe7801cf63619f841916e648b6)
-rw-r--r-- | src/server/game/Battlegrounds/Zones/BattlegroundAV.cpp | 4 | ||||
-rw-r--r-- | src/server/game/Battlegrounds/Zones/BattlegroundAV.h | 11 |
2 files changed, 11 insertions, 4 deletions
diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundAV.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundAV.cpp index eab5eada052..a87c398e8aa 100644 --- a/src/server/game/Battlegrounds/Zones/BattlegroundAV.cpp +++ b/src/server/game/Battlegrounds/Zones/BattlegroundAV.cpp @@ -1137,9 +1137,9 @@ bool BattlegroundAV::SetupBattleground() { // Create starting objects if (// alliance gates - !AddObject(BG_AV_OBJECT_DOOR_A, BG_AV_OBJECTID_GATE_A, BG_AV_DoorPositons[0], 0, 0, std::sin(BG_AV_DoorPositons[0].GetOrientation()/2), std::cos(BG_AV_DoorPositons[0].GetOrientation()/2), RESPAWN_IMMEDIATELY) + !AddObject(BG_AV_OBJECT_DOOR_A, BG_AV_OBJECTID_GATE_A, BG_AV_DoorPositons[0], BG_AV_DoorRotation[0].x, BG_AV_DoorRotation[0].y, BG_AV_DoorRotation[0].z, BG_AV_DoorRotation[0].w, RESPAWN_IMMEDIATELY) // horde gates - || !AddObject(BG_AV_OBJECT_DOOR_H, BG_AV_OBJECTID_GATE_H, BG_AV_DoorPositons[1], 0, 0, std::sin(BG_AV_DoorPositons[1].GetOrientation()/2), std::cos(BG_AV_DoorPositons[1].GetOrientation()/2), RESPAWN_IMMEDIATELY)) + || !AddObject(BG_AV_OBJECT_DOOR_H, BG_AV_OBJECTID_GATE_H, BG_AV_DoorPositons[1], BG_AV_DoorRotation[1].x, BG_AV_DoorRotation[1].y, BG_AV_DoorRotation[1].z, BG_AV_DoorRotation[1].w, RESPAWN_IMMEDIATELY)) { TC_LOG_ERROR("sql.sql", "BatteGroundAV: Failed to spawn some object Battleground not created!1"); return false; diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundAV.h b/src/server/game/Battlegrounds/Zones/BattlegroundAV.h index cbc1bdb30d0..e6920e5d533 100644 --- a/src/server/game/Battlegrounds/Zones/BattlegroundAV.h +++ b/src/server/game/Battlegrounds/Zones/BattlegroundAV.h @@ -21,6 +21,7 @@ #include "Battleground.h" #include "BattlegroundScore.h" #include "Object.h" +#include "QuaternionData.h" #define BG_AV_CAPTIME 240000 //4:00 #define BG_AV_SNOWFALL_FIRSTCAP 300000 //5:00 but i also have seen 4:05 @@ -542,8 +543,14 @@ Position const BG_AV_ObjectPos[AV_OPLACE_MAX] = Position const BG_AV_DoorPositons[2] = { - {780.487f, -493.024f, 99.9553f, 3.0976f}, //alliance - {-1375.193f, -538.981f, 55.2824f, 0.72178f} //horde + {794.64310f, -493.4745f, 99.77789f, -0.122173f}, //alliance + {-1382.057f, -545.9169f, 54.90467f, 0.7679439f} //horde +}; + +QuaternionData const BG_AV_DoorRotation[2] = +{ + {0.0f, 0.0f, -0.06104851f, 0.9981348f}, //alliance + {0.0f, 0.0f, 0.374606100f, 0.9271840f} //horde }; //creaturestuff starts here |