how to remove metal sonics float ability

whatdoitypehere75

I just exist
so basically, im trying to give Metal Sonic some new abilities, but his float ability kicks in when i use the ability special, I added player.charability = CA_NONE, but depending on where i put it, it either just made it the float ability, make it just the new ability but make it have infinite uses, or combine the 2 abilities. here is the code without player.charability = CA_NONE:

Lua:
local function ThrustUp(player)
    if player.mo.skin == "metalsonic" then
        if player.pflags & PF_THOKKED then
            return true
        end
        P_SetObjectMomZ(player.mo, 12*FRACUNIT, false)
        player.pflags = true | PF_THOKKED
    end
end



addHook("AbilitySpecial", ThrustUp)

I want to know how to make it just the new ability, but with one use
 

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

Back
Top