Don't know how to fix this

whatdoitypehere75

I just exist
IGNORE THIS NOW, I AM FIGURING IT OUT MYSELF

im trying to find a way for when you press custom1 while jumping, you go down, but its not working and stops the other abilities from working:
Lua:
local function ThrustDown(player)
    if player.mo.skin == "metalsonic" then
        if player.pflags & PF_THOKKED then
            return true
        end
        player.mo.state = S_PLAY_SPRING
        S_StartSound(player.mo, sfx_zoom)
        P_SetObjectMomZ(player.mo, -14*FRACUNIT, false)
        player.pflags = $ | PF_THOKKED
       
        return true
    end
end

if player.pflags & PF_JUMPED then
    if player.cmd.buttons & BT_CUSTOM1 then
        ThrustDown
     end
end
 
Last edited:

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top