addHook("ThinkFrame", function()
	for player in players.iterate do
		if player.mo.skin ~= "m.jimmyharold" then
			continue
		end
		
		if player.sit and player.mo.state != S_PLAY_ROLL then
			if player.mo.momx or player.mo.momy or player.mo.momz then
				if player.mo.state != S_PLAY_ROLL then
					player.mo.state = S_PLAY_SLIDE
				end
				player.pflags = $ |PF_SPINNING
			else
				player.mo.state = S_PLAY_CROUCH
				player.pflags = $ |PF_FULLSTASIS
			end
		elseif not player.sit and player.mo.state == S_PLAY_CROUCH then
			player.mo.state = S_PLAY_WALK
		elseif not player.sit and player.mo.state == S_PLAY_SLIDE then
			player.mo.state = S_PLAY_FALL
		end
	end
end)
