module Base { model 92nissanGTRdoorfla { mesh = vehicles/Vehicles_92nissanGTR_Body|gtr_door_fl_a, shader = vehicle_noreflect, static = FALSE, scale = 0.1, boneWeight = door_fl_bone 1.0, } model 92nissanGTRdoorfra { mesh = vehicles/Vehicles_92nissanGTR_Body|gtr_door_fr_a, shader = vehicle_noreflect, static = FALSE, scale = 0.1, boneWeight = door_fr_bone 1.0, } model 92nissanGTRBwindowrla { mesh = vehicles/Vehicles_92nissanGTR_Body|gtr_window_rl_a, shader = vehicle_noreflect, scale = 0.1, } model 92nissanGTRwindowrra { mesh = vehicles/Vehicles_92nissanGTR_Body|gtr_window_rr_a, shader = vehicle_noreflect, scale = 0.1, } template vehicle R32WindoorsArmors { part R32DoorFrontLeftArmor { model R32DoorFrontLeftArmor { file = 92nissanGTRdoorfla, } parent = DoorFrontLeft, itemType = Base.R32DoorArmor, specificItem = false, table install { requireInstalled = WindowFrontLeft, } area = SeatFrontLeft, anim ActorOpen { angle = 0.0 270.0 0.0, } anim ActorClose { angle = 0.0 270.0 0.0, } anim Close { anim = Door_fl_closing, rate = 1.5, } anim Open { anim = Door_fl_closing, reverse = TRUE, rate = 1.0, } anim Closed { anim = Door_fl_closing, reverse = TRUE, animate = FALSE, } anim Opened { anim = Door_fl_closing, animate = FALSE, } lua { create = R32.Create.DoorFrontLeftArmor, init = R32.Init.DoorFrontLeftArmor, } } part R32DoorFrontRightArmor { model R32DoorFrontRightArmor { file = 92nissanGTRdoorfra, } parent = DoorFrontRight, itemType = Base.R32DoorArmor, specificItem = false, table install { requireInstalled = WindowFrontRight, } area = SeatFrontRight, anim ActorOpen { angle = 0.0 90.0 0.0, } anim ActorClose { angle = 0.0 90.0 0.0, } anim Close { anim = Door_fr_closing, rate = 1.5, } anim Open { anim = Door_fr_closing, reverse = TRUE, rate = 1.0, } anim Closed { anim = Door_fr_closing, reverse = TRUE, animate = FALSE, } anim Opened { anim = Door_fr_closing, animate = FALSE, } lua { create = R32.Create.DoorFrontRightArmor, init = R32.Init.DoorFrontRightArmor, } } part R32WindowRearLeftArmor { model R32WindowRearLeftArmor { file = 92nissanGTRBwindowrla, } itemType = Base.R32RearWindowArmor, specificItem = false, table install { requireInstalled = WindowRearLeft, } area = SeatFrontLeft, lua { create = R32.Create.WindowRearLeftArmor, init = R32.Init.WindowRearLeftArmor, } } part R32WindowRearRightArmor { model R32WindowRearRightArmor { file = 92nissanGTRwindowrra, } itemType = Base.R32RearWindowArmor, specificItem = false, table install { requireInstalled = WindowRearRight, } area = SeatFrontRight, lua { create = R32.Create.WindowRearRightArmor, init = R32.Init.WindowRearRightArmor, } } part R32Door* { category = door, door { } anim Open { sound = VehicleDoorOpenStandard, } anim Close { sound = VehicleDoorCloseStandard, } anim Lock { sound = LockVehicleDoorStandard, } anim Unlock { sound = UnlockVehicleDoorStandard, } anim IsLocked { sound = VehicleDoorIsLockedStandard, } anim ActorOpen { anim = Attack_Shove, rate = 0.3, } anim ActorClose { anim = Attack_Shove, rate = 0.3, } mechanicRequireKey = true, table install { items { item { type = Base.Wrench, count = 1, keep = true, equip = primary, } } time = 1200, skills = Mechanics:4, recipes = Advanced Mechanics, test = Vehicles.InstallTest.Default, complete = Vehicles.InstallComplete.Door, } table uninstall { items { item { type = Base.Wrench, count = 1, keep = true, equip = primary, } } time = 1200, skills = Mechanics:4, recipes = Advanced Mechanics, test = Vehicles.UninstallTest.Default, complete = Vehicles.UninstallComplete.Door, } } part R32Window* { category = door, mechanicRequireKey = true, table install { items { item { type = Base.Wrench, count = 1, keep = true, equip = primary, } } time = 800, skills = Mechanics:4, recipes = Intermediate Mechanics, test = Vehicles.InstallTest.Default, complete = Vehicles.InstallComplete.Default, } table uninstall { items { item { type = Base.Wrench, count = 1, keep = true, equip = primary, } } time = 800, skills = Mechanics:4, recipes = Intermediate Mechanics, test = Vehicles.UninstallTest.Default, complete = Vehicles.UninstallComplete.Default, } } } } }