local function COSTOM2(p)
if p.mo.skin == "sonic" and p.playerstate == PST_LIVE then
if p.cmd.buttons & BT_CUSTOM2 and p.control then

if p.powers[pw_super] then
P_SetObjectMomZ(p.mo,10*FRACUNIT)
p.mo.state = S_PLAY_RUN
p.pflags = $ | PF_JUMPED
p.pflags = $ & ~PF_THOKKED
elseif (p.custom2tic == 1) and (p.pflags & PF_JUMPED) then
P_SpawnMobj(p.mo.x, p.mo.y, p.mo.z, MT_BLUESPRING)
p.pflags = $ | PF_THOKKED
end

end
end

end
addHook("PlayerThink", COSTOM2)