HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to make Flashbang spell?

07-19-2008, 11:35 AM#1
Restor
This spell is like flashbang in CS, casting unit throw spell to the casted unit and the owner of casted unit will have whole screen in white color. I tried to make it with cinematic->fade filter but i didnt find something what will affect ONLY the owner of that unit.
07-19-2008, 11:40 AM#2
MaD[Lion]
yes u can do tat using local player
07-19-2008, 01:32 PM#3
Restor
i dont know what you mean, can you write it down exactly how make a triger like this (just the fade filter to owner of target, everything else is done)
07-19-2008, 01:56 PM#4
darkwulfv
Collapse JASS:
//other stuff
if GetLocalPlayer() == GetOwningPlayer(GetSpellTargetUnit()) then
  call WhateverActionAppliesFadeFilters(...)
endif
//rest of stuff

Understand?
07-19-2008, 02:04 PM#5
MaD[Lion]
i think tat cause dc, at least last time i tested
07-19-2008, 02:22 PM#6
darkwulfv
Why would it? It's the exact same thing you said to use.

Quote:
Originally Posted by You
yes u can do tat using local player
Quote:
Originally Posted by Me
Collapse JASS:
if GetLocalPlayer() == GetOwningPlayer(GetSpellTargetUnit()) then
  call WhateverActionAppliesFadeFilters(...)
endif

So, why would you say it DC's if that's what you told him to use? Unless Fade Filters require syncing, this should be fine. And I'm almost 100% sure they don't, because I've seen fade filters (such as screen splats) applied to single players when attacked by enemies, and so on.
07-19-2008, 04:42 PM#7
Fireeye
I've tried that once too and it caused a desync.
Don't know if this will work without desync, need to be tested.
Collapse JASS:
local string s = ""
if GetLocalPlayer() == YourPlayer then
    set s = "WhatEverPath"
endif
call CinematicFilterGenericBJ(<Duration>,<Blend Mode>,s,<red1>,<green1>,<blue1>,<alpha1>,<red2>,<green2>,<blue2>,<alpha2>)
07-19-2008, 04:57 PM#8
darkwulfv
I don't think that would do anything... maybe...
07-19-2008, 07:41 PM#9
TEC_Ghost
Quote:
Originally Posted by darkwulfv
I don't think that would do anything... maybe...

It should work, using the same method as Trackables in multiplayer. It shows the fade filter for everyone and if its local player it shows the White fade.
07-19-2008, 08:00 PM#10
darkwulfv
Oh, well all right then. I've never had to do that before. Guess I learned something new today :D
07-20-2008, 10:16 AM#11
Tide-Arc Ephemera
Soul Chess does it... so I don't see how it could desync.