Will this Desync?

J

JM24

Guest
I was searching the forums for an individual fade filter and found this:
Will it cause sync errors?

Custom script: call SetCameraFieldForPlayer( GetOwningPlayer(GetSpellAbilityUnit()), CAMERA_FIELD_ANGLE_OF_ATTACK, 290.00, 0 )
Custom script: call CinematicFilterGenericForPlayer( GetOwningPlayer(GetSpellAbilityUnit()), 1.0, BLEND_MODE_BLEND, "AirStrike.blp", 100.0, 0.0, 0.0, 25.0, 100.0, 0.0, 0.0, 25.0 )
 
J

JM24

Guest
I searched the forums for this code but I don't actually know JASS. If it causes desyncs, can somebody please post the fixed version?
 
J

JM24

Guest
Sorry guys. I posted this a few days ago, but didn't find the answer I recieved to be particularily helpful. Here it is again (Please keep in mind my map is too big to host right now, so I can't test whatever you suggest).

I was searching the forums for an individual fade filter and found this:
Will it cause sync errors?

Code:
Custom script: call SetCameraFieldForPlayer( GetOwningPlayer(GetSpellAbilityUnit()), CAMERA_FIELD_ANGLE_OF_ATTACK, 290.00, 0 )
Custom script: call CinematicFilterGenericForPlayer( GetOwningPlayer(GetSpellAbilityUnit()), 1.0, BLEND_MODE_BLEND, "AirStrike.blp", 100.0, 0.0, 0.0, 25.0, 100.0, 0.0, 0.0, 25.0 )

Once again, I can't test any theories, so please either post something your 100% sure of or test it on a different map before posting.

Thanks.
 
J

JM24

Guest
True, I could test it on another map, but playing a solo custom map wouldn't help me test for desyncs.
 
J

JM24

Guest
Ok, this is exactly as I have it right now.

Map Header:

Code:
function CinematicFilterGenericForPlayer takes player whichPlayer, real duration, blendmode bmode, string tex, real red0, real green0, real blue0, real trans0, real red1, real green1, real blue1, real trans1 returns nothing
    if ( GetLocalPlayer() == whichPlayer ) then
        call SetCineFilterTexture(tex)
        call SetCineFilterBlendMode(bmode)
        call SetCineFilterTexMapFlags(TEXMAP_FLAG_NONE)
        call SetCineFilterStartUV(0, 0, 1, 1)
        call SetCineFilterEndUV(0, 0, 1, 1)
        call SetCineFilterStartColor(PercentTo255(red0), PercentTo255(green0), PercentTo255(blue0), PercentTo255(100-trans0))
        call SetCineFilterEndColor(PercentTo255(red1), PercentTo255(green1), PercentTo255(blue1), PercentTo255(100-trans1))
        call SetCineFilterDuration(duration)
        call DisplayCineFilter(true)
    endif
endfunction

Trigger:
Code:
Air Strike
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Air Strike 
    Actions
        Custom script:   call SetCameraFieldForPlayer( GetOwningPlayer(GetSpellAbilityUnit()), CAMERA_FIELD_ANGLE_OF_ATTACK, 290.00, 0 )
        Custom script:   call CinematicFilterGenericForPlayer( GetOwningPlayer(GetSpellAbilityUnit()), 1.0, BLEND_MODE_BLEND, "AirStrike.blp",  100.0, 0.0, 0.0, 25.0, 100.0, 0.0, 0.0, 25.0 )

That's everything I have.
 
J

JM24

Guest
Thanks a ton. Sorry it took me so long to get this part of the code onto the site. I completely forgot to put it in the first post :p.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top