module Base { model 92nissanGTRtrunkDoor { mesh = vehicles/Vehicles_92nissanGTR_Body|gtr_trunkDoor, shader = vehicle, static = FALSE, scale = 0.1, } template vehicle R32TrunkDoor { part TrunkDoor { model SweetTrunkOfWhatever { file = 92nissanGTRtrunkDoor, offset = 0 0 0, rotate = 0 0 0, scale = 1.0, } anim Close { anim = Trunk_closing, rate = 1.0, } anim Open { anim = Trunk_closing, reverse = TRUE, rate = 0.6, } anim Closed { anim = Trunk_closing, reverse = TRUE, animate = FALSE, } anim Opened { anim = Trunk_closing, animate = FALSE, } category = bodywork, area = TruckBed, door { } anim Open { sound = VehicleTrunkOpenStandard, } anim Close { sound = VehicleTrunkCloseStandard, } anim Lock { sound = LockVehicleDoorStandard, } anim Unlock { sound = UnlockVehicleDoorStandard, } anim IsLocked { sound = VehicleDoorIsLockedStandard, } anim ActorOpen { anim = WindowOpenSuccess, rate = 0.15, angle = 0.0 0.0 0.0, } anim ActorClose { anim = Attack_Shove, rate = 0.3, angle = 0.0 0.0 0.0, } itemType = Base.R32TrunkDoor, mechanicRequireKey = true, repairMechanic = true, table install { items { item { type = Base.Wrench, count = 1, keep = true, equip = primary, } } time = 1000, skills = Mechanics:2, 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 = 1000, skills = Mechanics:2, recipes = Advanced Mechanics, test = Vehicles.UninstallTest.Default, complete = Vehicles.UninstallComplete.Door, requireUninstalled = R32Spoiler, } lua { create = Vehicles.Create.TrunkDoor, init = Vehicles.Init.Door, use = Vehicles.Use.TrunkDoor, } } } }