module Base { model 92nissanGTRBasewindowfl { mesh = vehicles/Vehicles_92nissanGTR_Body|gtr_window_fl, shader = vehicle, static = FALSE, scale = 0.1, boneWeight = window_fl_bone 1.0, } model 92nissanGTRBasewindowfr { mesh = vehicles/Vehicles_92nissanGTR_Body|gtr_window_fr, shader = vehicle, static = FALSE, scale = 0.1, boneWeight = window_fr_bone 1.0, } model 92nissanGTRBasewindowrl { mesh = vehicles/Vehicles_92nissanGTR_Body|gtr_window_rl, shader = vehicle, scale = 0.1, } model 92nissanGTRBasewindowrr { mesh = vehicles/Vehicles_92nissanGTR_Body|gtr_window_rr, shader = vehicle, scale = 0.1, } template vehicle R32Windows { part WindowFrontLeft { model windowFL { file = 92nissanGTRBasewindowfl, } anim ClosedToOpen { anim = Window_fl_closing, reverse = TRUE, animate = FALSE, } parent = DoorFrontLeft, area = SeatFrontLeft, table install { requireInstalled = DoorFrontLeft, } table uninstall { requireUninstalled = R32DoorFrontLeftArmor, } } part WindowFrontRight { model windowFR { file = 92nissanGTRBasewindowfr, } anim ClosedToOpen { anim = Window_fr_closing, reverse = TRUE, animate = FALSE, } parent = DoorFrontRight, area = SeatFrontRight, table install { requireInstalled = DoorFrontRight, } table uninstall { requireUninstalled = R32DoorFrontRightArmor, } } part WindowRearLeft { model windowRL { file = 92nissanGTRBasewindowrl, } area = SeatFrontLeft, table uninstall { requireUninstalled = R32WindowRearLeftArmor, } } part WindowRearRight { model windowRR { file = 92nissanGTRBasewindowrr, } area = SeatFrontRight, table uninstall { requireUninstalled = R32WindowRearLeftArmor, } } part WindowFront* { itemType = Base.R32FrontSideWindow, } part WindowRear* { itemType = Base.R32RearSideWindow, } 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 = Advanced 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 = Advanced Mechanics, test = Vehicles.UninstallTest.Default, complete = Vehicles.UninstallComplete.Default, } lua { create = Vehicles.Create.Window, init = Vehicles.Init.Window, } } } }