mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-04 18:46:37 +00:00
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:
@@ -1200,6 +1200,8 @@ protected:
|
||||
VERTEX aa_los_them;
|
||||
Mob *aa_los_them_mob;
|
||||
bool los_status;
|
||||
float aa_los_me_heading;
|
||||
bool los_status_facing;
|
||||
QGlobalCache *qGlobals;
|
||||
|
||||
/** Adventure Variables **/
|
||||
|
||||
Reference in New Issue
Block a user