module Base { model 70barracudawindowfl { mesh = vehicles/Vehicles_70barracuda_Body|cuda_window_fl, shader = vehicle, static = FALSE, scale = 0.1, boneWeight = window_fl_bone 1.0, } model 70barracudawindowfr { mesh = vehicles/Vehicles_70barracuda_Body|cuda_window_fr, shader = vehicle, static = FALSE, scale = 0.1, boneWeight = window_fr_bone 1.0, } model 70barracudawindowrl { mesh = vehicles/Vehicles_70barracuda_Body|cuda_window_rl, shader = vehicle, static = FALSE, scale = 0.1, } model 70barracudawindowrr { mesh = vehicles/Vehicles_70barracuda_Body|cuda_window_rr, shader = vehicle, static = FALSE, scale = 0.1, } template vehicle CUDAWindows { part WindowFrontLeft { model windowFL { file = 70barracudawindowfl, } anim ClosedToOpen { anim = window_fl_opening, animate = FALSE, } parent = DoorFrontLeft, area = SeatFrontLeft, itemType = Base.CUDAFrontSideWindow, table install { requireInstalled = DoorFrontLeft, } table uninstall { requireUninstalled = CUDADoorLeftArmor, } } part WindowFrontRight { model windowFR { file = 70barracudawindowfr, } anim ClosedToOpen { anim = window_fr_opening, animate = FALSE, } parent = DoorFrontRight, area = SeatFrontRight, itemType = Base.CUDAFrontSideWindow, table install { requireInstalled = DoorFrontRight, } table uninstall { requireUninstalled = CUDADoorRightArmor, } } part WindowRearLeft { model windowRL { file = 70barracudawindowrl, } anim ClosedToOpen { anim = window_rl_opening, animate = FALSE, } parent = DoorRearLeft, area = SeatRearLeft, itemType = Base.CUDARearSideWindow, table install { requireInstalled = , } table uninstall { requireUninstalled = CUDADoorLeftArmor, } } part WindowRearRight { model windowRR { file = 70barracudawindowrr, } anim ClosedToOpen { anim = window_rr_opening, animate = FALSE, } parent = DoorRearRight, area = SeatRearRight, itemType = Base.CUDARearSideWindow, table install { requireInstalled = , } table uninstall { requireUninstalled = CUDADoorRightArmor, } } part Window* { category = door, mechanicRequireKey = true, window { openable = true, } table install { items { 1 { type = Base.Screwdriver, count = 1, keep = true, equip = primary, } } time = 500, skills = Mechanics:3, recipes = Intermediate Mechanics, test = Vehicles.InstallTest.Default, complete = Vehicles.InstallComplete.Window, } table uninstall { items { 1 { type = Base.Screwdriver, count = 1, keep = true, equip = primary, } } time = 500, skills = Mechanics:3, recipes = Intermediate Mechanics, test = Vehicles.UninstallTest.Default, complete = Vehicles.UninstallComplete.Default, } lua { create = Vehicles.Create.Window, init = Vehicles.Init.Window, } } } }