HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[Question] Water War's Fog

09-04-2007, 07:48 AM#1
Tide-Arc Ephemera
I can use...
Trigger:
Environment - Set fog to style Linear, z-start 1000.00, z-end 8000.00, density 0.00 and color (100.00%, 100.00%, 100.00%)
To mess around with the depth of the global fog.

I can use...
Trigger:
Cinematic - Fade out and back in over 2.00 seconds using texture White Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
Cinematic - Apply a filter over 2.00 seconds using Normal blending on texture White Mask, starting with color (100.00%, 100.00%, 100.00%) and 100.00% transparency and ending with color (0.00%, 0.00%, 0.00%) and 0.00% transparency
To mess around with all player's cameras.

In Water Wars submerged, they have a method of making people in the submerged zone, only, see the bluish fog.

Does anybody know how they make only certain areas/players have terrain fog/camera filters in 'Water Wars - Submerged'?

I need this because I'm making a map with two parallel worlds.
09-04-2007, 08:05 AM#2
Ammorth
I believe you can use GetLocalPlayer() with these functions without causing a desync to make the effects player only.
09-04-2007, 08:20 AM#3
Toink
Insert this to your code..

Collapse JASS:
...
    if GetLocalPlayer() == <PlayerYouWant> then
        <Create fade filters, etc,.> 
        // Do anything you want for the player here
    endif
...

Any fade filters that you add inside the if endif will only be shown to the player you want(GetLocalPlayer() == <PlayerYouWant>) This is useful when you need to turn on sounds for a specific player, display text, etc,. Creating units inside the if endif block will cause server splits for obvious reasons.
09-04-2007, 08:44 AM#4
Tide-Arc Ephemera
So GetLocalPlayer is acceptable for things like interface?
09-04-2007, 08:47 AM#5
Toink
Yes, it is fine with interface stuff like sounds and fade filters. Do not create objects like units, items or anything like that because if you do, it only creates that object for that player and other players won't be able to see the object, causing a server split.
09-04-2007, 08:48 AM#6
Tide-Arc Ephemera
So desu ka... anyway, +Rep!

You learn something new every day.

EDIT! Hehe... Toink I gave you a little rep recently, so if you don't get the rep within two weeks, PM me.
09-04-2007, 08:56 AM#7
Toink
I dont do it for the rep :p