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:
I want to know how to make it just the new ability, but with one use
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