I need this mod

does anyone have that old cap states mod it let you use a command to change your cap
hello i know this was from like last year ago but i to am looking for this mod the download link on the discord does not work anymore and also im not to Shure you can post other peoples mods even if they dont post anymore and if its lost to time.... so i was wondering if you still or do have this mod because i will like to have it again i had it on my now long dead computer i cant recover the files from.... i had some really cool mods on that old pc that are not hear nor discord anymore and was curious if you still had the mod i can use for when i host my games thank you kindly if you ever get back to me like i say before you probably wont read this or even see this message since im replying to a sometime in last year post that you made and the link in this thread no longer works since it was a discord server page now long removed.... but ya if your curious what the mods name is its: cap_commands.lua if you want a reminder thanks bye!
 
LUA:
-- name: Cap Commands
-- description: This mod allows you to change caps with commands. \n/wingcap gives wingcap \n/metalcap gives Metal \n/vanishcap gives Vanish cap \n/allcaps gives all caps

wingcap = 0
wingcooldown = 0
metalcap = 0
metalcooldown = 0
vanishcap = 0
vanishcooldown = 0

function mario_update(m)
        if wingcap == 1 then
            m.flags = m.flags | MARIO_WING_CAP
        wingcooldown = 0
        end
        if wingcap == 0 and wingcooldown == 0 then
            m.flags = m.flags & ~MARIO_WING_CAP
        wingcooldown = 1
    end
        if metalcap == 1 then
            m.flags = m.flags | MARIO_METAL_CAP
        metalcooldown = 0
        end
        if metalcap == 0 and metalcooldown == 0 then
            m.flags = m.flags & ~MARIO_METAL_CAP
        metalcooldown = 1
    end
        if vanishcap == 1 then
            m.flags = m.flags | MARIO_VANISH_CAP
        vanishcooldown = 0
        end
        if vanishcap == 0 and vanishcooldown == 0 then
            m.flags = m.flags & ~MARIO_VANISH_CAP
        vanishcooldown = 1
        end
        return true
end

function wing_cap(msg)
    msg = string.lower(msg)
    if msg == "on" then
        wingcap = 1
    elseif msg == "off" then
        wingcap = 0
    end
    return true
end

function metal_cap(msg)
    msg = string.lower(msg)
    if msg == "on" then
        metalcap = 1
    elseif msg == "off" then
        metalcap = 0
    end
end

function vanish_cap(msg)
    msg = string.lower(msg)
    if msg == "on" then
        vanishcap = 1
    elseif msg == "off" then
        vanishcap = 0
    end
    return true
end

function all_caps(msg)
    msg = string.lower(msg)
    if msg == "on" then
        wingcap = 1
        metalcap = 1
        vanishcap = 1
    elseif msg == "off" then
        wingcap = 0
        metalcap = 0
        vanishcap = 0
    end
    return true
end

hook_chat_command("wingcap", "Turns on/off the wing cap", wing_cap)
hook_chat_command("metalcap", "Turns on/off the metal cap", metal_cap)
hook_chat_command("vanishcap", "Turns on/off the vanish cap", vanish_cap)
hook_chat_command("allcaps", "Turns on/off all caps", all_caps)
hook_event(HOOK_MARIO_UPDATE, mario_update)
 

Users who are viewing this thread