local function COSTOM1(player)
if player.mo.skin == "tails" and player.playerstate == PST_LIVE then

if (player.cmd.buttons & BT_CUSTOM1) and player.control then
if (player.pflags & PF_JUMPED) then

player.mo.momz = -30*FRACUNIT*P_MobjFlip(player.mo)
P_SpawnThokMobj(player)
player.mo.state = S_PLAY_ROLL
player.pflags = $&~PF_NOJUMPDAMAGE
player.powers[pw_strong] = STR_ANIM|STR_ATTACK|STR_FLOOR|STR_SPRING
player.mo.momx = 0*FRACUNIT
player.mo.momy = 0*FRACUNIT
player.pflags = $|PF_STASIS

else

player.pflags = $ & ~PF_STASIS

end
end

end
end
addHook("PlayerThink", COSTOM1)