module Base { model 92nissanGTRdoorfl { mesh = vehicles/Vehicles_92nissanGTR_Body|gtr_door_fl, shader = vehicle, static = FALSE, scale = 0.1, boneWeight = door_fl_bone 1.0, } model 92nissanGTRdoorfr { mesh = vehicles/Vehicles_92nissanGTR_Body|gtr_door_fr, shader = vehicle, static = FALSE, scale = 0.1, boneWeight = door_fr_bone 1.0, } template vehicle R32Doors { part DoorFrontLeft { model DoorFrontLeft543 { file = 92nissanGTRdoorfl, } table uninstall { requireUninstalled = 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 = Vehicles.Create.Door, init = Vehicles.Init.Door, use = Vehicles.Use.Door, } } part DoorFrontRight { model DoorFrontRight532 { file = 92nissanGTRdoorfr, } table uninstall { requireUninstalled = 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 = Vehicles.Create.Door, init = Vehicles.Init.Door, use = Vehicles.Use.Door, } } part Door* { category = door, itemType = Base.R32Door, 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 = 700, 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 = 700, skills = Mechanics:4, recipes = Advanced Mechanics, test = Vehicles.UninstallTest.Default, complete = Vehicles.UninstallComplete.Door, } } } } }