module Base { model W460SWBdoorfla { mesh = vehicles/Vehicles_84mercSWB_Body|w460_swb_door_fl_a, shader = vehicle_noreflect, static = FALSE, scale = 0.1, boneWeight = door_fl_bone 1.0, } model W460SWBdoorfra { mesh = vehicles/Vehicles_84mercSWB_Body|w460_swb_door_fr_a, shader = vehicle_noreflect, static = FALSE, scale = 0.1, boneWeight = door_fr_bone 1.0, } model W460SWBdoorrla { mesh = vehicles/Vehicles_84mercSWB_Body|w460_swb_door_rl_a, shader = vehicle_noreflect, scale = 0.1, } model W460SWBdoorrra { mesh = vehicles/Vehicles_84mercSWB_Body|w460_swb_door_rr_a, shader = vehicle_noreflect, scale = 0.1, } template vehicle W460SWBDoorArmors { part W460SWBDoorFrontLeftArmor { model W460SWBDoorFrontLeftArmor1 { file = W460SWBdoorfla, } parent = DoorFrontLeft, itemType = Base.W460CarFrontDoorArmor1_Item, 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 = W460SWB.Create.DoorFrontLeftArmor, init = W460SWB.Init.DoorFrontLeftArmor, } } part W460SWBDoorFrontRightArmor { model W460SWBDoorFrontRightArmor1 { file = W460SWBdoorfra, } parent = DoorFrontRight, itemType = Base.W460CarFrontDoorArmor1_Item, 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 = W460SWB.Create.DoorFrontRightArmor, init = W460SWB.Init.DoorFrontRightArmor, } } part W460SWBDoorRearLeftArmor { model W460SWBDoorRearLeftArmor1 { file = W460SWBdoorrla, } parent = DoorRearLeft, itemType = Base.W460CarRearDoorArmor1_Item, specificItem = false, table install { requireInstalled = WindowRearLeft, } area = TireRearLeft, lua { create = W460SWB.Create.DoorRearLeftArmor, init = W460SWB.Init.DoorRearLeftArmor, } } part W460SWBDoorRearRightArmor { model W460SWBDoorRearRightArmor1 { file = W460SWBdoorrra, } parent = DoorRearRight, itemType = Base.W460CarRearDoorArmor1_Item, specificItem = false, table install { requireInstalled = WindowRearRight, } area = TireRearRight, lua { create = W460SWB.Create.DoorRearRightArmor, init = W460SWB.Init.DoorRearRightArmor, } } part W460SWBDoor* { 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 = Intermediate 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 = Intermediate Mechanics, test = Vehicles.UninstallTest.Default, complete = Vehicles.UninstallComplete.Door, } } } } }