Jump to content

Overlaying a GIF or image over the screen


ethanwdp

Recommended Posts

So I've been working on a little secret for my mod:

ISUICheatMenu.IsUp = 0
ISUICheatMenu.IsDown = 0
ISUICheatMenu.IsUpUp = 0
ISUICheatMenu.IsDownDown = 0
ISUICheatMenu.IsLeft = 0
ISUICheatMenu.IsRight = 0
ISUICheatMenu.IsLeftRight = 0
ISUICheatMenu.IsB = 0
ISUICheatMenu.IsA = 0
ISUICheatMenu.IsBA = 0
ISUICheatMenu.IsCodeSuccess = 0

ISUICheatMenu.NoSecretsHere = function(_keyPressed)
    if _keyPressed == 200 then
        ISUICheatMenu.IsUp = ISUICheatMenu.IsUp + 1
        if ISUICheatMenu.IsUp > 2 then
            ISUICheatMenu.IsUp = 0
        end
    end
    
    if _keyPressed == 208 then
        ISUICheatMenu.IsDown = ISUICheatMenu.IsDown + 1
        if ISUICheatMenu.IsDown > 2 then
            ISUICheatMenu.IsDown = 0
        end
    end
    
    if _keyPressed == 203 then
        ISUICheatMenu.IsLeft = ISUICheatMenu.IsLeft + 1
        if ISUICheatMenu.IsLeft > 1 then
            ISUICheatMenu.IsLeft = 0
        end
    end
    
    if _keyPressed == 205 then
        ISUICheatMenu.IsRight = ISUICheatMenu.IsRight + 1
        if ISUICheatMenu.IsRight > 1 then
            ISUICheatMenu.IsRight = 0
        end
    end
    
    if _keyPressed == 48 then
        ISUICheatMenu.IsB = ISUICheatMenu.IsB + 1
        if ISUICheatMenu.IsB > 1 then
            ISUICheatMenu.IsB = 0
        end
    end
    
    if _keyPressed == 30 then
        ISUICheatMenu.IsA = ISUICheatMenu.IsA + 1
        if ISUICheatMenu.IsA > 1 then
            ISUICheatMenu.IsA = 0
        end
    end
    
    if ISUICheatMenu.IsUp == 2 and ISUICheatMenu.IsDown <= 0 then
        ISUICheatMenu.IsUpUp = 1
    end
    
    if ISUICheatMenu.IsUpUp == 1 and ISUICheatMenu.IsDown == 2 then
        ISUICheatMenu.IsDownDown = 1
    end
    
    if ISUICheatMenu.IsRight == 1 and ISUICheatMenu.IsLeft == 0 then
        ISUICheatMenu.IsRight = 0
    end
    
    if ISUICheatMenu.IsLeftRight < 2 or ISUICheatMenu.IsA == 1 and ISUICheatMenu.IsB == 0 then
        ISUICheatMenu.IsA = 0
        ISUICheatMenu.IsB = 0
    end
    
    if ISUICheatMenu.IsLeftRight == 2 and ISUICheatMenu.IsB == 1 and ISUICheatMenu.IsA == 1 then
        ISUICheatMenu.IsBA = 1
        ISUICheatMenu.IsB = 0
        ISUICheatMenu.IsA = 0
    end
    
    if ISUICheatMenu.IsUpUp == 1 and ISUICheatMenu.IsDownDown == 1 and ISUICheatMenu.IsLeft == 1 and ISUICheatMenu.IsRight == 1 then
        ISUICheatMenu.IsLeftRight = ISUICheatMenu.IsLeftRight + 1
        ISUICheatMenu.IsLeft = 0
        ISUICheatMenu.IsRight = 0
    end
    
    if ISUICheatMenu.IsUpUp == 1 and ISUICheatMenu.IsDownDown == 1 and ISUICheatMenu.IsLeftRight == 2 and ISUICheatMenu.IsBA == 1 then
        ISUICheatMenu.IsUpUp = 0
        ISUICheatMenu.IsDownDown = 0
        ISUICheatMenu.IsLeftRight = 0
        ISUICheatMenu.IsCodeSuccess = 1
    end
    
    if ISUICheatMenu.IsCodeSuccess == 1 then
        ISUICheatMenu.IsCodeSuccess = 0
        ISUICheatMenu.MLGmode()
    end
end



ISUICheatMenu.MLGmode = function()
    getSoundManager():PlaySound("MLG", false, 1);
    if ISUICheatMenu.ToggleAllStats == false then
        ISUICheatMenu.AllStatsToggle()
    end
    ISUICheatMenu.DoMaxAllSkills()
    getPlayer():setGhostMode(true)
    ISUICheatMenu.IsAmmo = true
    ISUICheatMenu.IsGod = true
    for i = 1,10 do
        getPlayer():Say("MLG MODE ACTIVATED")
    end
    getSoundManager():PlaySound("MLGsong", true, 1);
end

(I know the implementation is a bit clumsy, because of my "Make it work, and then make it efficient" modding style)

 

So the MLG horns play, and an MLG remix of Turn Down for What starts playing. Oh, and it also enables most of the cheats.

Problem is, I also want to have an overlay of Mountain Dew cans and a green haze over it. Is there a way to accomplish that?

Link to comment
Share on other sites

So I've been working on a little secret for my mod:

ISUICheatMenu.IsUp = 0

ISUICheatMenu.IsDown = 0

ISUICheatMenu.IsUpUp = 0

ISUICheatMenu.IsDownDown = 0

ISUICheatMenu.IsLeft = 0

ISUICheatMenu.IsRight = 0

ISUICheatMenu.IsLeftRight = 0

ISUICheatMenu.IsB = 0

ISUICheatMenu.IsA = 0

ISUICheatMenu.IsBA = 0

ISUICheatMenu.IsCodeSuccess = 0

ISUICheatMenu.NoSecretsHere = function(_keyPressed)

    if _keyPressed == 200 then

        ISUICheatMenu.IsUp = ISUICheatMenu.IsUp + 1

        if ISUICheatMenu.IsUp > 2 then

            ISUICheatMenu.IsUp = 0

        end

    end

    

    if _keyPressed == 208 then

        ISUICheatMenu.IsDown = ISUICheatMenu.IsDown + 1

        if ISUICheatMenu.IsDown > 2 then

            ISUICheatMenu.IsDown = 0

        end

    end

    

    if _keyPressed == 203 then

        ISUICheatMenu.IsLeft = ISUICheatMenu.IsLeft + 1

        if ISUICheatMenu.IsLeft > 1 then

            ISUICheatMenu.IsLeft = 0

        end

    end

    

    if _keyPressed == 205 then

        ISUICheatMenu.IsRight = ISUICheatMenu.IsRight + 1

        if ISUICheatMenu.IsRight > 1 then

            ISUICheatMenu.IsRight = 0

        end

    end

    

    if _keyPressed == 48 then

        ISUICheatMenu.IsB = ISUICheatMenu.IsB + 1

        if ISUICheatMenu.IsB > 1 then

            ISUICheatMenu.IsB = 0

        end

    end

    

    if _keyPressed == 30 then

        ISUICheatMenu.IsA = ISUICheatMenu.IsA + 1

        if ISUICheatMenu.IsA > 1 then

            ISUICheatMenu.IsA = 0

        end

    end

    

    if ISUICheatMenu.IsUp == 2 and ISUICheatMenu.IsDown <= 0 then

        ISUICheatMenu.IsUpUp = 1

    end

    

    if ISUICheatMenu.IsUpUp == 1 and ISUICheatMenu.IsDown == 2 then

        ISUICheatMenu.IsDownDown = 1

    end

    

    if ISUICheatMenu.IsRight == 1 and ISUICheatMenu.IsLeft == 0 then

        ISUICheatMenu.IsRight = 0

    end

    

    if ISUICheatMenu.IsLeftRight < 2 or ISUICheatMenu.IsA == 1 and ISUICheatMenu.IsB == 0 then

        ISUICheatMenu.IsA = 0

        ISUICheatMenu.IsB = 0

    end

    

    if ISUICheatMenu.IsLeftRight == 2 and ISUICheatMenu.IsB == 1 and ISUICheatMenu.IsA == 1 then

        ISUICheatMenu.IsBA = 1

        ISUICheatMenu.IsB = 0

        ISUICheatMenu.IsA = 0

    end

    

    if ISUICheatMenu.IsUpUp == 1 and ISUICheatMenu.IsDownDown == 1 and ISUICheatMenu.IsLeft == 1 and ISUICheatMenu.IsRight == 1 then

        ISUICheatMenu.IsLeftRight = ISUICheatMenu.IsLeftRight + 1

        ISUICheatMenu.IsLeft = 0

        ISUICheatMenu.IsRight = 0

    end

    

    if ISUICheatMenu.IsUpUp == 1 and ISUICheatMenu.IsDownDown == 1 and ISUICheatMenu.IsLeftRight == 2 and ISUICheatMenu.IsBA == 1 then

        ISUICheatMenu.IsUpUp = 0

        ISUICheatMenu.IsDownDown = 0

        ISUICheatMenu.IsLeftRight = 0

        ISUICheatMenu.IsCodeSuccess = 1

    end

    

    if ISUICheatMenu.IsCodeSuccess == 1 then

        ISUICheatMenu.IsCodeSuccess = 0

        ISUICheatMenu.MLGmode()

    end

end

ISUICheatMenu.MLGmode = function()

    getSoundManager():PlaySound("MLG", false, 1);

    if ISUICheatMenu.ToggleAllStats == false then

        ISUICheatMenu.AllStatsToggle()

    end

    ISUICheatMenu.DoMaxAllSkills()

    getPlayer():setGhostMode(true)

    ISUICheatMenu.IsAmmo = true

    ISUICheatMenu.IsGod = true

    for i = 1,10 do

        getPlayer():Say("MLG MODE ACTIVATED")

    end

    getSoundManager():PlaySound("MLGsong", true, 1);

end

(I know the implementation is a bit clumsy, because of my "Make it work, and then make it efficient" modding style)

 

So the MLG horns play, and an MLG remix of Turn Down for What starts playing. Oh, and it also enables most of the cheats.

Problem is, I also want to have an overlay of Mountain Dew cans and a green haze over it. Is there a way to accomplish that?

Lmfao that sounds amazing! xD Cant help though sorry, just had to comment though >_<

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...