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

    model towbarModelLarge
    {
        mesh = vehicles/Towbar,
        texture = Vehicles/Towbar_Texture,
        scale = 0.02,
    }

    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,
            }
            model towbar24
            {
                file = towbarModelLarge,
                offset = 0 -0.3 1.0,
            }
            model towbar25
            {
                file = towbarModelLarge,
                offset = 0 -0.3 1.1,
            }
            model towbar26
            {
                file = towbarModelLarge,
                offset = 0 -0.3 1.2,
            }
            model towbar27
            {
                file = towbarModelLarge,
                offset = 0 -0.3 1.3,
            }
            model towbar28
            {
                file = towbarModelLarge,
                offset = 0 -0.3 1.4,
            }
            model towbar29
            {
                file = towbarModelLarge,
                offset = 0 -0.3 1.5,
            }
            model towbar30
            {
                file = towbarModelLarge,
                offset = 0 -0.3 1.6,
            }
            model towbar31
            {
                file = towbarModelLarge,
                offset = 0 -0.3 1.7,
            }
            model towbar32
            {
                file = towbarModelLarge,
                offset = 0 -0.3 1.8,
            }
            model towbar33
            {
                file = towbarModelLarge,
                offset = 0 -0.3 1.9,
            }
            model towbar34
            {
                file = towbarModelLarge,
                offset = 0 -0.3 2.0,
            }
            model towbar35
            {
                file = towbarModelLarge,
                offset = 0 -0.3 2.1,
            }
            model towbar36
            {
                file = towbarModelLarge,
                offset = 0 -0.3 2.2,
            }
            model towbar37
            {
                file = towbarModelLarge,
                offset = 0 -0.3 2.3,
            }
            model towbar38
            {
                file = towbarModelLarge,
                offset = 0 -0.3 2.4,
            }
            model towbar39
            {
                file = towbarModelLarge,
                offset = 0 -0.3 2.5,
            }
            model towbar40
            {
                file = towbarModelLarge,
                offset = 0 -0.3 2.6,
            }
            model towbar41
            {
                file = towbarModelLarge,
                offset = 0 -0.3 2.7,
            }
            model towbar42
            {
                file = towbarModelLarge,
                offset = 0 -0.3 2.8,
            }
            model towbar43
            {
                file = towbarModelLarge,
                offset = 0 -0.3 2.9,
            }
            model towbar44
            {
                file = towbarModelLarge,
                offset = 0 -0.3 3.0,
            }
            model towbar45
            {
                file = towbarModelLarge,
                offset = 0 -0.3 3.1,
            }
            model towbar46
            {
                file = towbarModelLarge,
                offset = 0 -0.3 3.2,
            }
            model towbar47
            {
                file = towbarModelLarge,
                offset = 0 -0.3 3.3,
            }

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