• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[JASS] Cine filters for player only (desyncs)

Status
Not open for further replies.
Level 29
Joined
Feb 2, 2006
Messages
1,691
I have played around a bit with cine filters for players only using GetLocalPlayer() and it led to desyncs in the game.
Is there some documentation which functions are really safe for players only?

We have these natives:

Code:
native SetCineFilterTexture             takes string filename returns nothing
native SetCineFilterBlendMode           takes blendmode whichMode returns nothing
native SetCineFilterTexMapFlags         takes texmapflags whichFlags returns nothing
native SetCineFilterStartUV             takes real minu, real minv, real maxu, real maxv returns nothing
native SetCineFilterEndUV               takes real minu, real minv, real maxu, real maxv returns nothing
native SetCineFilterStartColor          takes integer red, integer green, integer blue, integer alpha returns nothing
native SetCineFilterEndColor            takes integer red, integer green, integer blue, integer alpha returns nothing
native SetCineFilterDuration            takes real duration returns nothing
native DisplayCineFilter                takes boolean flag returns nothing
native IsCineFilterDisplayed            takes nothing returns boolean

and then there are the BJs:

Code:
CinematicFadeCommonBJ
CinematicFadeBJ
CinematicFilterGenericBJ

I would have thought that the first one CinematicFadeCommonBJ should be safe for players only but the second one CinematicFadeBJ is not since it uses a timer etc. and CinematicFilterGenericBJ isn't safe either because it uses AbortCinematicFadeBJ which destroys a timer. Is this correct or can I only use DisplayCineFilter in a GetLocalPlayer block?
 
As I have understood, you can do something like this:
vJASS:
local real trans0 = 0.00
local real trans1 = 0.00
if GetLocalPlayer() == <Your player> then
    set trans0 = 100.00
    set trans1 = 100.00
endif
call CinematicFilterGenericBJ( duration, bmode, tex, red0, green0, blue0, trans0, red1, green1, blue1, trans1 )
So all players will have the filter but only some of them will see it.
 
Status
Not open for further replies.
Back
Top