HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Line of sight blockers

10-17-2009, 11:51 PM#1
GaDDeN
I'm making a spell that creates a vision-blocking line. I've been experimenting with different line of sight blockers and buildings with occluder height, but they all have a huge flaw:

Units standing near them can sometimes see right through.

Whats up with that? Extremly crappy vision system by blizzard?

The best result I could get (without creating multiple "layers" of sight blockers) was that units very rarely saw a short distance behind the blockers. But that still ruins the effect completely.
10-20-2009, 02:14 AM#2
cosmicat
Unless there's some reason not to, I suggest pathing blockers "inside" the vision blockers so that users can't stand "near" them.
10-20-2009, 12:28 PM#3
GaDDeN
The vision-blockers are currently also pathing-blockers (2x2 pathing map), but standing next to these allows you to see through.

I guess I could try making the pathing blockers even larger than the vision blockers, but that also causes the line to be ALOT thicker (I guess I have to use a 4v4 pathing map for the pathing blockers) than intended =(

Hmm Ill try using pathing blocking units as well as vision blockers, that way I should be able to get a slightly higher pathing block without using the 4x4 pathing map. Ill get back when I've tried it.
10-20-2009, 01:03 PM#4
Rising_Dusk
Think about the things in standard WC3 that block vision - they also block pathing. The two are pretty seriously intertwined in WC3, so if you want to block one, you really ought to block the other. If you do that, units can't walk directly on it, resulting in them not seeing through it.

It's an unfortunate suck with WC3. You could always try spawning a bunch of trees in a line. Those work pretty well for blocking vision and have the right pathing. You could remove their model using a custom destruct in the OE and see if it still achieves the same effect you want. (It actually might)
10-20-2009, 03:34 PM#5
GaDDeN
No no, I guess I was unclear. The line DOES also block pathing, otherwise the seeing-through part would really just be a question of how close you were.

My problem is that a pathing blocker with the same size as the vision blocker (for example, a tree) allows units to see through if they stand next to it.

edit: Currently using a very large pathing blocker (4x4) with a vision blocker ontop (without pathing map). I haven't been able to see through it so far, but then again the line is alot thicker than I wanted (pathing-wise)...