AddCSLuaFile() local A = "AMBER" local R = "RED" local DR = "D_RED" local B = "BLUE" local W = "WHITE" local CW = "C_WHITE" local SW = "S_WHITE" local G = "GREEN" local RB = "BLUE/RED" local WA = "AMBER/WHITE" local name = "TDMP Federal Signal Aerodynic" local COMPONENT = {} COMPONENT.Model = "models/tdmcars/emergency/equipment/fedsig_aerodynic.mdl" COMPONENT.Lightbar = true COMPONENT.NotLegacy = true COMPONENT.Bodygroups = {} COMPONENT.Category = "Lightbar" COMPONENT.RotationEnabled = true COMPONENT.Meta = { mains = { AngleOffset = 90, -- Speed = 10, W = 5.8, H = 5.8, Sprite = "sprites/emv/light_circle", Scale = 2, WMult = 1.0, }, tr_rear = { AngleOffset = -90, W = 5.0, H = 5.0, Sprite = "sprites/emv/tdm_halogen2", Scale = 1.0, WMult = 1.1, }, halogen_bro = { AngleOffset = -90, W = 5.8, H = 5.8, Sprite = "sprites/emv/light_circle", Scale = 2, WMult = 1.0, }, } COMPONENT.Bones = { ["MAIN_R2"] = { Bone = 1, AxisP = "p", -- pitch of bone affects pitch of rendered light AxisY = "r", -- yaw of bone affects roll of rendered light AxisR = "y" -- roll of bone affects ya of rendered light }, ["MAIN_R1"] = { Bone = 2, AxisP = "p", -- pitch of bone affects pitch of rendered light AxisY = "r", -- yaw of bone affects roll of rendered light AxisR = "y" -- roll of bone affects ya of rendered light }, ["MAIN_B3"] = { Bone = 3, AxisP = "p", -- pitch of bone affects pitch of rendered light AxisY = "r", -- yaw of bone affects roll of rendered light AxisR = "y" -- roll of bone affects ya of rendered light }, ["MAIN_B2"] = { Bone = 4, AxisP = "p", -- pitch of bone affects pitch of rendered light AxisY = "r", -- yaw of bone affects roll of rendered light AxisR = "y" -- roll of bone affects ya of rendered light }, ["MAIN_B1"] = { Bone = 5, AxisP = "p", -- pitch of bone affects pitch of rendered light AxisY = "r", -- yaw of bone affects roll of rendered light AxisR = "y" -- roll of bone affects ya of rendered light }, ["MAIN_R3"] = { Bone = 0, AxisP = "p", -- pitch of bone affects pitch of rendered light AxisY = "r", -- yaw of bone affects roll of rendered light AxisR = "y" -- roll of bone affects ya of rendered light } } COMPONENT.BoneOperations = { [1] = { -- MAIN_R2 Default = { "S", 0, 25 }, Primary = { M1 = { "S", 0, 25 }, -- static at 0 degrees M2 = { "RN", 0, 70 }, M3 = { "RN", 0, 90 }, } }, [2] = { -- MAIN_R1 Default = { "S", 30, 25 }, Primary = { M1 = { "S", 30, 25 }, -- static at 0 degrees M2 = { "RN", 30, 70 }, M3 = { "RN", 30, 90 }, } }, [3] = { -- MAIN_B3 Default = { "S", 60, 25 }, Primary = { M1 = { "S", 60, 25 }, -- static at 0 degrees M2 = { "RN", 60, 70 }, M3 = { "RN", 0, 90 }, } }, [4] = { -- MAIN_B2 Default = { "S", 30, 25 }, Primary = { M1 = { "S", 30, 25 }, -- static at 0 degrees M2 = { "RN", 30, 70 }, M3 = { "RN", 30, 90 }, } }, [5] = { -- MAIN_B1 Default = { "S", 0, 25 }, Primary = { M1 = { "S", 0, 25 }, -- static at 0 degrees M2 = { "RN", 0, 70 }, M3 = { "RN", 0, 90 }, } }, [0] = { -- MAIN_R3 Default = { "S", 60, 25 }, Primary = { M1 = { "S", 60, 25 }, -- static at 0 degrees M2 = { "RN", 0, 70 }, M3 = { "RN", 0, 90 }, } } } COMPONENT.Positions = { [1] = { { "RE", "MAIN_R1", Vector( .2, -.5, 0 ), Angle( 0, 0, 0 ) }, nil, "mains" }, [2] = { { "RE", "MAIN_R2", Vector( .2, -.5, 0 ), Angle( 0, 0, 0 ) }, nil, "mains" }, [3] = { { "RE", "MAIN_R3", Vector( .2, -.5, 0 ), Angle( 0, 0, 0 ) }, nil, "mains" }, [4] = { { "RE", "MAIN_B1", Vector( .2, -.5, 0 ), Angle( 0, 0, 0 ) }, nil, "mains" }, [5] = { { "RE", "MAIN_B2", Vector( .2, -.5, 0 ), Angle( 0, 0, 0 ) }, nil, "mains" }, [6] = { { "RE", "MAIN_B3", Vector( .2, -.5, 0 ), Angle( 0, 0, 0 ) }, nil, "mains" }, [7] = { Vector( -3.99809 , -26.7549 , 7.70206), Angle( 0, 90, 0 ), "halogen_bro" }, [8] = { Vector( -3.99809 , 26.7549 , 7.70206), Angle( 0, 90, 0 ), "halogen_bro" }, [9] = { Vector( 0.22 , -26.755 , 7.70206), Angle( 0, -90, 0 ), "halogen_bro" }, [10] = { Vector( 0.22 , 26.755 , 7.70206), Angle( 0, -90, 0 ), "halogen_bro" }, } COMPONENT.Sections = { ["main_rotors"] = { [1] = { { 1, R }, { 2, R }, { 3, R }, { 4, B }, { 5, B }, { 6, B }, } }, ["halogens"] = { [1] = { { 7, R, { 8, 0, 2 } }, { 8, B, { 8, 0, 0 } }, { 9, A, { 8, 0, 0 } }, { 10, A, { 8, 0, 2 } }, } }, } COMPONENT.Patterns = { ["main_rotors"] = { ["on"] = { 1 } }, ["halogens"] = { ["on"] = { 1 } }, } COMPONENT.TrafficDisconnect = { } COMPONENT.Modes = { Primary = { M1 = { ["halogens"] = "on", }, M2 = { ["main_rotors"] = "on", ["halogens"] = "on", }, M3 = { ["main_rotors"] = "on", } }, Auxiliary = { C = { }, L = { }, R = { }, D = { } }, Illumination = { L = { }, R = { } } } EMVU:AddAutoComponent( COMPONENT, name )