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 name = "TDMP McDermott Riser" local COMPONENT = {} COMPONENT.Model = "models/tdmcars/emergency/equipment/mcdermott_riser.mdl" COMPONENT.Skin = 3 COMPONENT.Lightbar = true COMPONENT.NotLegacy = true COMPONENT.Bodygroups = {} COMPONENT.Category = "Lightbar" COMPONENT.RotationEnabled = true COMPONENT.Meta = { riser_3led = { AngleOffset = 0, W = 3.7, H = 4, Sprite = "sprites/emv/justice_1x3", Scale = .7, WMult = .5, }, riser_3led_front = { AngleOffset = 180, W = 3.7, H = 4, Sprite = "sprites/emv/justice_1x3", Scale = .7, WMult = .5, }, riser_3led2 = { AngleOffset = 90, W = 3.7, H = 4, Sprite = "sprites/emv/justice_1x3", Scale = .7, WMult = .5, }, } COMPONENT.Bones = { ["L4A"] = { 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 }, ["L4B"] = { Bone = 2, AxisP = "p", -- pitch of bone affects pitch of rendered light AxisY = "y", -- yaw of bone affects roll of rendered light AxisR = "r" -- roll of bone affects ya of rendered light } } COMPONENT.BoneOperations = { [1] = { -- FRONT Primary = { M1 = { "S", -.01, 30 }, -- static at 0 degrees M2 = { "S", -90, 30 }, M3 = { "S", -90, 30 }, }, Default = { "S", -.01, 30 }, Auxiliary = { C = {"S", -90, 30}, } }, [2] = { -- REAR Primary = { M1 = { "S", -.01, 30 }, -- static at 0 degrees M2 = { "S", -90, 30 }, M3 = { "S", -90, 30 }, }, Default = { "S", -.01, 30 }, Auxiliary = { C = {"S", -90, 30}, } }, } COMPONENT.Positions = { [1] = { { "RE", "L4A", Vector( -7.6, 4.6, -.89 ), Angle( 90, 180, 0 ) }, nil, "riser_3led" }, [2] = { { "RE", "L4B", Vector( -7.6, -3.5, .89 ), Angle( 90, 0, 0 ) }, nil, "riser_3led" }, [3] = { { "RE", "L4A", Vector( -22.6, 4.6, -.89 ), Angle( 90, 180, 0 ) }, nil, "riser_3led" }, [4] = { { "RE", "L4B", Vector( -22.6, -3.5, .89 ), Angle( 90, 0, 0 ) }, nil, "riser_3led" }, [5] = { { "RE", "L4A", Vector( -37.65, 4.6, -.89 ), Angle( 90, 180, 0 ) }, nil, "riser_3led" }, [6] = { { "RE", "L4B", Vector( -37.65, -3.5, .89 ), Angle( 90, 0, 0 ) }, nil, "riser_3led" }, [7] = { { "RE", "L4A", Vector( -52.6, 4.6, -.89 ), Angle( 90, 180, 0 ) }, nil, "riser_3led" }, [8] = { { "RE", "L4B", Vector( -52.6, -3.5, .89 ), Angle( 90, 0, 0 ) }, nil, "riser_3led" }, [9] = { { "RE", "L4A", Vector( -7.6, 1.45, -.89 ), Angle( 90, 180, 0 ) }, nil, "riser_3led_front" }, [10] = { { "RE", "L4B", Vector( -7.6, -6.5, .89 ), Angle( 90, 0, 0 ) }, nil, "riser_3led_front" }, [11] = { { "RE", "L4A", Vector( -30.0, 1.45, -.89 ), Angle( 90, 180, 0 ) }, nil, "riser_3led_front" }, [12] = { { "RE", "L4B", Vector( -30.1, -6.5, .89 ), Angle( 90, 0, 0 ) }, nil, "riser_3led_front" }, [13] = { { "RE", "L4A", Vector( -52.6, 1.4, -.89 ), Angle( 90, 180, 0 ) }, nil, "riser_3led_front" }, [14] = { { "RE", "L4B", Vector( -52.7, -6.5, .89 ), Angle( 90, 0, 0 ) }, nil, "riser_3led_front" }, [15] = { Vector( -7.6, 4.6, 5 ), Angle( 0, -90, 0 ), "riser_3led2" }, } COMPONENT.Sections = { ["mrdermott_riser_up"] = { [1] = { { 1, B }, { 5, R }, { 4, R }, { 8, B }, { 9, R }, { 13, R }, { 12, R }, }, [2] = { { 2, B }, { 3, A }, { 6, A }, { 7, B }, { 10, R }, { 14, R }, { 11, R }, }, [3] = { { 1, B }, { 5, R }, { 4, R }, { 8, B }, { 2, B }, { 3, A }, { 6, A }, { 7, B }, { 9, R }, { 10, R }, { 11, R }, { 12, R }, { 13, R }, { 14, R }, }, }, ["mrdermott_riser_down"] = { [1] = { { 1, B }, { 5, R }, { 4, R }, { 8, B }, { 9, R }, { 13, R }, { 12, R }, }, [2] = { { 2, B }, { 3, A }, { 6, A }, { 7, B }, { 10, R }, { 14, R }, { 11, R }, }, [3] = { { 15, B }, }, }, } COMPONENT.Patterns = { ["mrdermott_riser_up"] = { ["all"] = { 1,1,1,1,1,1,2,2,2,2,2,2 }, ["debug"] = { 3 }, }, ["mrdermott_riser_down"] = { ["all"] = { 1,1,1,1,1,1,2,2,2,2,2,2 }, ["debug"] = { 3 }, }, } COMPONENT.TrafficDisconnect = { } COMPONENT.Modes = { Primary = { M1 = { ["mrdermott_riser_down"] = "debug" }, M2 = { ["mrdermott_riser_up"] = "all" }, M3 = { ["mrdermott_riser_up"] = "all" } }, Auxiliary = { C = { ["mrdermott_riser_up"] = "all" }, L = { }, R = { }, D = { } }, Illumination = { L = { { 1, B }, { 5, R }, { 4, R }, { 8, B }, { 2, B }, { 3, A }, { 6, A }, { 7, B }, { 9, W }, { 10, R }, { 11, R }, { 12, R }, { 13, R }, { 14, R }, }, R = { }, T = { }, F = { } } } EMVU:AddAutoComponent( COMPONENT, name )