mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-29 04:28:00 +00:00
Updated Bot AI to make use of neglected commands/features
This commit is contained in:
+31
-4
@@ -1493,17 +1493,23 @@ void Mob::SendHPUpdate(bool skip_self /*= false*/, bool force_update_all /*= fal
|
||||
}
|
||||
}
|
||||
|
||||
void Mob::StopMoving() {
|
||||
void Mob::StopMoving()
|
||||
{
|
||||
StopNavigation();
|
||||
if (moved)
|
||||
|
||||
if (moved) {
|
||||
moved = false;
|
||||
}
|
||||
}
|
||||
|
||||
void Mob::StopMoving(float new_heading) {
|
||||
void Mob::StopMoving(float new_heading)
|
||||
{
|
||||
StopNavigation();
|
||||
RotateTo(new_heading);
|
||||
if (moved)
|
||||
|
||||
if (moved) {
|
||||
moved = false;
|
||||
}
|
||||
}
|
||||
|
||||
void Mob::SentPositionPacket(float dx, float dy, float dz, float dh, int anim, bool send_to_self)
|
||||
@@ -2684,6 +2690,27 @@ bool Mob::PlotPositionAroundTarget(Mob* target, float &x_dest, float &y_dest, fl
|
||||
return Result;
|
||||
}
|
||||
|
||||
bool Mob::PlotPositionOnArcInFrontOfTarget(Mob* target, float& x_dest, float& y_dest, float& z_dest, float distance, float min_deg, float max_deg)
|
||||
{
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Mob::PlotPositionOnArcBehindTarget(Mob* target, float& x_dest, float& y_dest, float& z_dest, float distance)
|
||||
{
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Mob::PlotPositionBehindMeFacingTarget(Mob* target, float& x_dest, float& y_dest, float& z_dest, float min_dist, float max_dist)
|
||||
{
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Mob::HateSummon() {
|
||||
// check if mob has ability to summon
|
||||
// 97% is the offical % that summoning starts on live, not 94
|
||||
|
||||
Reference in New Issue
Block a user