Need help with a macro you are writing? Ask here!
Moderator: MacroQuest Developers
-
Fippy
- a snow griffon

- Posts: 499
- Joined: Tue Jul 16, 2002 10:42 am
Post
by Fippy » Fri Jul 09, 2004 4:33 pm
I have been playing around with the LOS object and have been getting rather inconsistant results. It seems some textures are invisible to it. Running around shadoheaven seemed ok but when running around feerot and oggok it seems most of the textures are not blocking the los check.
I just did a small looping macro to test it so feel free to try it put in some other places.
Code: Select all
#turbo 10
Sub Main
:Reloop
/doevents
/delay 1s
/echo ${LineOfSight[${Me.Y},${Me.X},${Me.Z}:${Math.Calc[${Me.Y}+${Math.Calc[${Math.Cos[${Me.Heading.DegreesCCW}]}*40]}]},${Math.Calc[${Me.X}+${Math.Calc[${Math.Sin[${Me.Heading.DegreesCCW}]}*40]}]},${Math.Calc[${Me.Z}+2]}]}
/goto :Reloop
/return
Fippy
This is my girl. But Rizwank had her first :-)
[img]http://www.btinternet.com/~artanor/images/fairy_bounce09.gif[/img]
-
Lax
- We're not worthy!

- Posts: 3524
- Joined: Thu Oct 17, 2002 1:01 pm
- Location: ISBoxer
-
Contact:
Post
by Lax » Fri Jul 09, 2004 4:40 pm
All I can tell you is this isnt our own line of sight function, it's the same exact function used by EQ to test if you can see a mob to cast a spell on it etc etc. I didn't write it, I call EQ's.
So, if some textures are invisible to it, it has nothing to do with MQ and everything to do with EQ's design.
You can probably use this to your advantage.
-
wassup
- Official Guardian and Writer of TFM

- Posts: 1487
- Joined: Sat Oct 26, 2002 5:15 pm
Post
by wassup » Fri Jul 09, 2004 4:54 pm
Fippy wrote:I have been playing around with the LOS object and have been getting rather inconsistant results. It seems some textures are invisible to it. Running around shadoheaven seemed ok but when running around feerot and oggok it seems most of the textures are not blocking the los check.
I just did a small looping macro to test it so feel free to try it put in some other places.
Code: Select all
#turbo 10
Sub Main
:Reloop
/doevents
/delay 1s
/echo ${LineOfSight[${Me.Y},${Me.X},${Me.Z}:${Math.Calc[${Me.Y}+${Math.Calc[${Math.Cos[${Me.Heading.DegreesCCW}]}*40]}]},${Math.Calc[${Me.X}+${Math.Calc[${Math.Sin[${Me.Heading.DegreesCCW}]}*40]}]},${Math.Calc[${Me.Z}+2]}]}
/goto :Reloop
/return
Yeah, some zones don't block LoS with objects/terrain, and some do.
Quite a bit of raid level content involves taking advantage of certain aspects of the zone.
Ever wonder why you can heal someone through a wall but sometimes you can't cast a spell at a mob through the same wall?
-
Virtuoso65
- a hill giant

- Posts: 150
- Joined: Wed Oct 15, 2003 2:29 pm
Post
by Virtuoso65 » Fri Jul 09, 2004 7:16 pm
This LOS function makes the same check for when spells are being cast. In old world zones you can often times cast through solid objects like trees and buildings. This isnt so in most expansions past SoL when they first started upgrading the graphics engine.
On that note, heal spells do not require LOS where detramental spells do.