The snake is conctructed out of a tentacle that moves along a spline predefined path. Various different paths are available in the snake macro and each one can be altered by adjusting it's wavelength, amplitude and the tension of the spline.
Since the snake's body is always moving and changing angle I implemented the neck macro to allow the head to be attatched seamlessly without it producing an unnatural angle in the creature.