aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-02-28 21:10:05 +0100
committerShauren <shauren.trinity@gmail.com>2024-02-28 21:10:05 +0100
commit59f92412d0f2172772155591ee7fa98a54dab06a (patch)
treed88084ba103c24e3eb227138481510d1d0f47ddb /src/server/scripts
parent20b29c5ff56c605d52fb6e391c28daea26ab719a (diff)
Core/Movement: MoveRotate improvements
* Allow overriding rotation speed * Allow limiting rotation using total rotation angle instead of duration
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/BrokenIsles/zone_mardum.cpp2
-rw-r--r--src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_lurker_below.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/BrokenIsles/zone_mardum.cpp b/src/server/scripts/BrokenIsles/zone_mardum.cpp
index fb88ff8bf2c..66a862bf8ee 100644
--- a/src/server/scripts/BrokenIsles/zone_mardum.cpp
+++ b/src/server/scripts/BrokenIsles/zone_mardum.cpp
@@ -1126,7 +1126,7 @@ struct npc_baleful_beaming_eye : public ScriptedAI
me->SetDisplayId(DISPLAYID_BALEFUL_EYE, true);
DoCastSelf(SPELL_BALEFUL_BEAMING_EYE_CREATE_AT);
// ToDo: rotation isn't changing orientation, turnspeed should be random
- me->GetMotionMaster()->MoveRotate(0, 10000, RAND(ROTATE_DIRECTION_LEFT, ROTATE_DIRECTION_RIGHT));
+ me->GetMotionMaster()->MoveRotate(0, RAND(ROTATE_DIRECTION_LEFT, ROTATE_DIRECTION_RIGHT), 10s);
}
};
diff --git a/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_lurker_below.cpp b/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_lurker_below.cpp
index a89ec5c1ec0..f645ab15b64 100644
--- a/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_lurker_below.cpp
+++ b/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_lurker_below.cpp
@@ -227,7 +227,7 @@ struct boss_the_lurker_below : public BossAI
{
Talk(EMOTE_SPOUT);
me->SetReactState(REACT_PASSIVE);
- me->GetMotionMaster()->MoveRotate(0, 20000, urand(0, 1) ? ROTATE_DIRECTION_LEFT : ROTATE_DIRECTION_RIGHT);
+ me->GetMotionMaster()->MoveRotate(0, urand(0, 1) ? ROTATE_DIRECTION_LEFT : ROTATE_DIRECTION_RIGHT, 20s, float(M_PI) / 7.0f);
SpoutTimer = 45000;
WhirlTimer = 20000; // whirl directly after spout
RotTimer = 20000;