module Base
{
    model towbarModel
	{
		mesh = vehicles/Towbar,
		texture = Vehicles/Towbar_Texture,
		scale = 0.01,
	}

	model ropeModel5
	{
		mesh = vehicles/Rope_5,
		texture = Vehicles/Rope_Texture,
		scale = 0.005,
		shader = vehiclewheel,
	}

	template vehicle Towbar
	{
        part towbar
		{
			model towbar0
			{
				file = towbarModel,
                offset = 0 -0.3 1.0,
			}
			model towbar1
			{
				file = towbarModel,
                offset = 0 -0.3 1.1,
			}
			model towbar2
			{
				file = towbarModel,
                offset = 0 -0.3 1.2,
			}
			model towbar3
			{
				file = towbarModel,
                offset = 0 -0.3 1.3,
			}
			model towbar4
			{
				file = towbarModel,
                offset = 0 -0.3 1.4,
			}
			model towbar5
			{
				file = towbarModel,
                offset = 0 -0.3 1.5,
			}
			model towbar6
			{
				file = towbarModel,
                offset = 0 -0.3 1.6,
			}
			model towbar7
			{
				file = towbarModel,
                offset = 0 -0.3 1.7,
			}
			model towbar8
			{
				file = towbarModel,
                offset = 0 -0.3 1.8,
			}
			model towbar9
			{
				file = towbarModel,
                offset = 0 -0.3 1.9,
			}
			model towbar10
			{
				file = towbarModel,
                offset = 0 -0.3 2.0,
			}
			model towbar11
			{
				file = towbarModel,
                offset = 0 -0.3 2.1,
			}
			model towbar12
			{
				file = towbarModel,
                offset = 0 -0.3 2.2,
			}
			model towbar13
			{
				file = towbarModel,
                offset = 0 -0.3 2.3,
			}
			model towbar14
			{
				file = towbarModel,
                offset = 0 -0.3 2.4,
			}
			model towbar15
			{
				file = towbarModel,
                offset = 0 -0.3 2.5,
			}
			model towbar16
			{
				file = towbarModel,
                offset = 0 -0.3 2.6,
			}
			model towbar17
			{
				file = towbarModel,
                offset = 0 -0.3 2.7,
			}
			model towbar18
			{
				file = towbarModel,
                offset = 0 -0.3 2.8,
			}
			model towbar19
			{
				file = towbarModel,
                offset = 0 -0.3 2.9,
			}
			model towbar20
			{
				file = towbarModel,
                offset = 0 -0.3 3.0,
			}
			model towbar21
			{
				file = towbarModel,
                offset = 0 -0.3 3.1,
			}
			model towbar22
			{
				file = towbarModel,
                offset = 0 -0.3 3.2,
			}
			model towbar23
			{
				file = towbarModel,
                offset = 0 -0.3 3.3,
			}

			area = Engine,
			mechanicRequireKey = false,
			lua
			{
				create = BTtow.Create.towbar,
				init = BTtow.Init.towbar,
			}
		}
    }
}