Line of sight seems broken a bit

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

Ralindal
a hill giant
a hill giant
Posts: 153
Joined: Thu Jul 26, 2007 4:51 pm

Line of sight seems broken a bit

Post by Ralindal » Mon Mar 28, 2016 12:57 am

I use this code:

LineOfSight(GetCharInfo()->pSpawn, target)

I think this is bugging since the last or last couple of patches. I notice the following:

In a room with several mobs hidden behind walls in other rooms, LineOfSight will return FALSE when "idle". However, after killing one of the mobs, and without the character having moved (or the other mobs in the rooms having moved), LineOfSight will return TRUE for a few seconds, long enough for my char to try casting on them. After the first cast failure (CANNOT_SEE) it stops casting on the invisible mobs.

If I pull another mob (without the toon involved moving) and killing it, the same thing happens again -- LineOfSight returns TRUE for a bit, then returns to normal again.

I seen this happen in multiple places, and its pretty obvious because I use that toon to randomly cast on mobs that are nearby and in line of sight. This has been working fine for a long time, but broke recently -- noticable by the toon trying to cast on mobs that it cannot see which it didn't before (and only does once or twice before LineOfSight returns to its senses again).

Ralindal
a hill giant
a hill giant
Posts: 153
Joined: Thu Jul 26, 2007 4:51 pm

Re: Line of sight seems broken a bit

Post by Ralindal » Mon Mar 28, 2016 1:01 am

This always happens after a fight finishes (ie, extended target was cleared). Never when idle, no matter how long I wait.

Environment was controlled (inside a task). No mobs were moving around.

EDIT: It just also triggered after looting a corpse a couple of minutes after a fight. Perhaps triggered then by spawns getting added/removed from the zone somehow.

Wink-
a ghoul
a ghoul
Posts: 122
Joined: Tue Apr 27, 2004 2:41 pm

Re: Line of sight seems broken a bit

Post by Wink- » Fri May 20, 2016 10:45 am

Does this happen on mobs inside of 200 feet? I know the reliability of LoS outside of 200 ft is meh as the spawns are not updated as frequently.

Ralindal
a hill giant
a hill giant
Posts: 153
Joined: Thu Jul 26, 2007 4:51 pm

Re: Line of sight seems broken a bit

Post by Ralindal » Thu May 26, 2016 2:19 pm

Nope, happens to mobs in casting range.

Ralindal
a hill giant
a hill giant
Posts: 153
Joined: Thu Jul 26, 2007 4:51 pm

Re: Line of sight seems broken a bit

Post by Ralindal » Thu May 26, 2016 2:21 pm

The LOS flag doesn't seem to work right for some reason because it fails instantly (ie, the client still knows that it is not in line of sight) -- it is not going to the server (you can see this because the spell starts casting, then stops with a message).

User avatar
warlock45
a grimling bloodguard
a grimling bloodguard
Posts: 881
Joined: Sat Oct 06, 2007 8:32 pm

Re: Line of sight seems broken a bit

Post by warlock45 » Thu May 26, 2016 2:52 pm

aye, I have had time when manually using a toon when spells will seem to cast, get a delay, and then the "can not see" message. I think the client/EQ is more to blame then the TLO.

There are also some odd geometry issues now and agian. Like where you can't cast on a mob unless you can see it's feet (annoying) but other places you can cast through walls with no issue (like the anniv task Capt Jack gives, can cast on anything in the tree houses from the ground anyplace, and through most of the huts) other times my toons can manage to cast on something in another room if they stand just right.