mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-09 12:23:53 +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));
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
float Mob::GetReciprocalHeading(Mob* target) {
|
||||
float Result = 0;
|
||||
|
||||
@ -2290,7 +2290,7 @@ float Mob::GetReciprocalHeading(Mob* target) {
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
*/
|
||||
bool Mob::PlotPositionAroundTarget(Mob* target, float &x_dest, float &y_dest, float &z_dest, bool lookForAftArc) {
|
||||
bool Result = false;
|
||||
|
||||
@ -2298,7 +2298,7 @@ bool Mob::PlotPositionAroundTarget(Mob* target, float &x_dest, float &y_dest, fl
|
||||
float look_heading = 0;
|
||||
|
||||
if(lookForAftArc)
|
||||
look_heading = GetReciprocalHeading(target);
|
||||
look_heading = GetReciprocalHeading(target->GetPosition());
|
||||
else
|
||||
look_heading = target->GetHeading();
|
||||
|
||||
|
||||
@ -511,10 +511,6 @@ public:
|
||||
void ShowStats(Client* client);
|
||||
void ShowBuffs(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 lookForAftArc = true);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user