addHook("PlayerThink", function(player)
	if (player.mo and player.mo.valid and player.mo.skin == "jimmyharold")
		if player.powers [pw_underwater] >= 1 and player.mo.state != S_PLAY_PAIN and player.mo.state != S_PLAY_SPRING then
			if (player.cmd.buttons & BT_USE) then
				player.mo.momz = $ - 1*FRACUNIT/2
			elseif (player.cmd.buttons & BT_USE) and player.mo.momz <= 5*FRACUNIT - 5*FRACUNIT then
				player.mo.momz = 5*FRACUNIT - 5*FRACUNIT
			elseif (player.cmd.buttons & BT_JUMP) then
				player.mo.momz = $ + 1*FRACUNIT/2
			elseif (player.cmd.buttons & BT_JUMP) and player.mo.momz >= 5*FRACUNIT then
				player.mo.momz = 5*FRACUNIT
			else
				if player.mo.momz >= 0 - 4*FRACUNIT then
					player.mo.momz = $ - 1*FRACUNIT/2
				elseif player.mo.momz <= 0 - 4*FRACUNIT then
					player.mo.momz = $ + 1*FRACUNIT/2
				end
			end
		end
	end
end)