Jump to content

Turn off shader


bwins95

Recommended Posts

I've gotten back to work on my glowing items mod and I'm almost done with it. the only problem I'm having is turning off the shader when I remove the glasses that turn the shaders on when they are put on.

scn aaaaGlowingItems

ref    rCurrentRef

Begin OnEquip player
    set bscan1 to 1
End

Begin GameMode

    if bscan1
        set bscan1 to 0

        set rCurrentRef to GetFirstRef 31 1 0
        Label 2
        if rCurrentRef
            if aaaaGlowingItemssCaps == 1
                if aaaaGlowingItemssCapsGreen == 1
                    rCurrentRef.PlayMagicShaderVisuals  aaaaGlowingItemsShaderGreen
                elseif aaaaGlowingItemssCapsRed == 1
                    rCurrentRef.PlayMagicShaderVisuals  aaaaGlowingItemsShaderRed
                elseif aaaaGlowingItemssCapsBlue == 1
                    rCurrentRef.PlayMagicShaderVisuals  aaaaGlowingItemsShaderBlue
                elseif aaaaGlowingItemssCapsWhite == 1
                    rCurrentRef.PlayMagicShaderVisuals  aaaaGlowingItemsShaderWhite
                elseif aaaaGlowingItemssCapsYellow == 1
                    rCurrentRef.PlayMagicShaderVisuals  aaaaGlowingItemsShaderYellow
                elseif aaaaGlowingItemssCapsPink == 1
                    rCurrentRef.PlayMagicShaderVisuals  aaaaGlowingItemsShaderPink
                elseif aaaaGlowingItemssCapsPurple == 1
                    rCurrentRef.PlayMagicShaderVisuals  aaaaGlowingItemsShaderPurple
                elseif aaaaGlowingItemssCaps == 0
                endif
                set rCurrentRef to Pencil01
                set rCurrentRef to GetNextRef
                Goto 2
            endif
        endif

    endif
End

I know that stopmagicshadervisuals can stop it, but I can't figure out how to get it to work with the removal of the glasses.

Edited by bwins95
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...