module Base { model 92nissanGTRspoiler0 { mesh = vehicles/Vehicles_92nissanGTR_Body|gtr_spoiler_0, texture = Vehicles/Vehicles_92nissanGTR_Shell, shader = vehicle, static = FALSE, scale = 0.1, } model 92nissanGTRspoiler1 { mesh = vehicles/Vehicles_92nissanGTR_Body|gtr_spoiler_1, texture = Vehicles/Vehicles_92nissanGTR_Shell, shader = vehicle, static = FALSE, scale = 0.1, } model 92nissanGTRspoiler2 { mesh = vehicles/Vehicles_92nissanGTR_Body|gtr_spoiler_2, texture = Vehicles/Vehicles_92nissanGTR_Shell, shader = vehicle, static = FALSE, scale = 0.1, } model 92nissanGTRspoiler3 { mesh = vehicles/Vehicles_92nissanGTR_Body|gtr_spoiler_3, texture = Vehicles/Vehicles_92nissanGTR_Shell, shader = vehicle, static = FALSE, scale = 0.1, } template vehicle R32Spoilers { part R32Spoiler { model Spoiler0 { file = 92nissanGTRspoiler0, } model Spoiler1 { file = 92nissanGTRspoiler1, } model Spoiler2 { file = 92nissanGTRspoiler2, } model Spoiler3 { file = 92nissanGTRspoiler3, } 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, parent = TrunkDoor, 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, } specificItem = false, itemType = Base.R32Spoiler0;Base.R32Spoiler1;Base.R32Spoiler2;Base.R32Spoiler3;, mechanicRequireKey = false, table install { items { item { type = Base.Wrench, count = 1, keep = true, equip = primary, } } time = 1000, skills = Mechanics:4, recipes = Advanced Mechanics, door = TrunkDoor, requireInstalled = TrunkDoor, test = Vehicles.InstallTest.Default, complete = R32.InstallComplete.Spoiler, } table uninstall { items { item { type = Base.Wrench, count = 1, keep = true, equip = primary, } } time = 1000, skills = Mechanics:4, recipes = Advanced Mechanics, test = Vehicles.UninstallTest.Default, complete = R32.UninstallComplete.Spoiler, } lua { create = R32.Create.Spoiler, init = R32.Init.Spoiler, } } } }