//i hate lua why cant srb2 just become gamemaker
addHook("PlayerThink", function(player)
   		if player.cmd.buttons & BT_SPIN and P_IsObjectOnGround(player.mo) == true and player.mo and player.mo.skin == "tux" then
		P_DoJump(player)
        P_SetObjectMomZ(player.mo, -2*FRACUNIT, true)
		P_InstaThrust(player.mo, player.mo.angle, FRACUNIT*25 + player.speed/2)
		player.mo.state = S_PLAY_ROLL
   end
end)
