Added facing check to auto attack LoS code

The Mob::InFrontMob check uses 56 degrees which is where the
client will generate the "You cannon see your target." message.
There were still a few weird angles that I was able to still
attack, but in like 99% of the cases it should work ...
This commit is contained in:
Michael Cook (mackal)
2013-12-20 17:47:28 -05:00
parent 9fff694382
commit 5ac23a2f8f
6 changed files with 60 additions and 37 deletions
+2
View File
@@ -284,11 +284,13 @@ Client::Client(EQStreamInterface* ieqs)
aa_los_me.x = 0;
aa_los_me.y = 0;
aa_los_me.z = 0;
aa_los_me_heading = 0;
aa_los_them.x = 0;
aa_los_them.y = 0;
aa_los_them.z = 0;
aa_los_them_mob = nullptr;
los_status = false;
los_status_facing = false;
qGlobals = nullptr;
HideCorpseMode = HideCorpseNone;
PendingGuildInvitation = false;