mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-12 09:52:34 +00:00
Switched to position based GetReciprocalHeading instead of Mob::GetReciprocalHeading
This commit is contained in:
parent
cc802f2e74
commit
53862713f9
@ -2273,7 +2273,7 @@ bool Mob::CanThisClassBlock(void) const
|
|||||||
return(CastToClient()->HasSkill(SkillBlock));
|
return(CastToClient()->HasSkill(SkillBlock));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
float Mob::GetReciprocalHeading(Mob* target) {
|
float Mob::GetReciprocalHeading(Mob* target) {
|
||||||
float Result = 0;
|
float Result = 0;
|
||||||
|
|
||||||
@ -2290,7 +2290,7 @@ float Mob::GetReciprocalHeading(Mob* target) {
|
|||||||
|
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
bool Mob::PlotPositionAroundTarget(Mob* target, float &x_dest, float &y_dest, float &z_dest, bool lookForAftArc) {
|
bool Mob::PlotPositionAroundTarget(Mob* target, float &x_dest, float &y_dest, float &z_dest, bool lookForAftArc) {
|
||||||
bool Result = false;
|
bool Result = false;
|
||||||
|
|
||||||
@ -2298,7 +2298,7 @@ bool Mob::PlotPositionAroundTarget(Mob* target, float &x_dest, float &y_dest, fl
|
|||||||
float look_heading = 0;
|
float look_heading = 0;
|
||||||
|
|
||||||
if(lookForAftArc)
|
if(lookForAftArc)
|
||||||
look_heading = GetReciprocalHeading(target);
|
look_heading = GetReciprocalHeading(target->GetPosition());
|
||||||
else
|
else
|
||||||
look_heading = target->GetHeading();
|
look_heading = target->GetHeading();
|
||||||
|
|
||||||
|
|||||||
@ -511,10 +511,6 @@ public:
|
|||||||
void ShowStats(Client* client);
|
void ShowStats(Client* client);
|
||||||
void ShowBuffs(Client* client);
|
void ShowBuffs(Client* client);
|
||||||
void ShowBuffList(Client* client);
|
void ShowBuffList(Client* client);
|
||||||
float DistNoRoot(const Mob &) const;
|
|
||||||
float DistNoRootNoZ(float x, float y) const;
|
|
||||||
float DistNoRootNoZ(const Mob &) const;
|
|
||||||
static float GetReciprocalHeading(Mob* target);
|
|
||||||
bool PlotPositionAroundTarget(Mob* target, float &x_dest, float &y_dest, float &z_dest,
|
bool PlotPositionAroundTarget(Mob* target, float &x_dest, float &y_dest, float &z_dest,
|
||||||
bool lookForAftArc = true);
|
bool lookForAftArc = true);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user