Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddCSLuaFile()
- local VehicleName = "Ford Crown Victoria P71 (Snohomish County Unmarked)"
- local EMV = {}
- local A = "AMBER"
- local R = "RED"
- local DR = "D_RED"
- local B = "BLUE"
- local W = "WHITE"
- local CW = "C_WHITE"
- local SW = "S_WHITE"
- EMV.Siren = 3
- EMV.Skin = 1
- EMV.Color = Color(84,84,84)
- EMV.BodyGroups = {
- { 0, 0 }, -- car
- { 1, 0 }, -- pushbar
- { 2, 0 }, -- camera
- { 3, 6 }, -- lightbar
- { 4, 0 }, -- rainguard
- { 5, 0 }, -- trim
- { 6, 0 }, -- grille
- { 7, 0 }, -- spotlight_l
- { 8, 0 }, -- spotlight_r
- { 9, 0 }, -- runners
- { 10, 0 }, -- extmirrorlights
- { 11, 0 }, -- mirrorlights
- { 12, 0 }, -- dashlights
- { 13, 0 }, -- grillelights
- { 14, 0 }, -- rwlights
- { 15, 0 }, -- platelights
- { 16, 0 }, -- windowbars
- { 17, 1 }, -- antenna
- { 18, 2 }, -- wheels
- { 19, 0 }, -- clamped1
- }
- EMV.Auto = {
- {
- ID = "Whelen Avenger 2016",
- Scale = 1,
- Pos = Vector( 13, 24, 62 ),
- Ang = Angle( 0, 90, 0 )
- },
- {
- ID = "Whelen Avenger 2016",
- Scale = 1,
- Pos = Vector( -13, 24, 62 ),
- Ang = Angle( 0, 90, 0 )
- },
- {
- ID = "Whelen Ion 2016",
- Scale = 1,
- Pos = Vector( -46, 36.6, 49.4 ),
- Ang = Angle( 0,28, 0 ),
- Color1 = "BLUE",
- Phase = "A"
- },
- {
- ID = "Whelen Ion 2016",
- Scale = 1,
- Pos = Vector( 46, 36.6, 49.4 ),
- Ang = Angle( 0,-28, 0 ),
- Color1 = "BLUE",
- Phase = "B"
- },
- {
- ID = "Whelen Ion 2016",
- Scale = 0.65,
- Pos = Vector(-8,121.5, 31 ),
- Ang = Angle( 0, 0, 0 ),
- Color1 = "BLUE",
- Phase = "A"
- },
- {
- ID = "Whelen Ion 2016",
- Scale = 0.65,
- Pos = Vector(8,121.5, 31 ),
- Ang = Angle( 0, 0, 0 ),
- Color1 = "BLUE",
- Phase = "B"
- },
- {
- ID = "Whelen 700 2016",
- Scale = 1,
- Pos = Vector( 7, -71.3, 50.7),
- Ang = Angle( 0, 0, 90 ),
- Phase = "A",
- Color1 = "BLUE"
- },
- {
- ID = "Whelen 700 2016",
- Scale = 1,
- Pos = Vector( -7, -71.3, 50.7 ),
- Ang = Angle( 0, 0, 90 ),
- Phase = "B",
- Color1 = "RED"
- }
- }
- EMV.Props = {
- {
- Model = "models/schmal/fpiu_wrap.mdl",
- Scale = 1,
- Pos = Vector(28.2,121.5, 26 ),
- Ang = Angle( 0, 90, 0 ),
- },
- {
- Model = "models/schmal/fpiu_wrap.mdl",
- Scale = 1,
- Pos = Vector(-28.2,121.5, 26 ),
- Ang = Angle( 0, 90, 180 ),
- },
- {
- Model = "models/sprops/cuboids/height12/size_1/cube_12x18x12.mdl",
- Scale = 0.24,
- Pos = Vector( 7, -70, 50.4 ),
- Ang = Angle( 0, 0, 0 ),
- Material = "models/debug/debugwhite",
- Color = Color ( 0, 0, 0 ),
- },
- {
- Model = "models/sprops/cuboids/height12/size_1/cube_12x18x12.mdl",
- Scale = 0.24,
- Pos = Vector( -7, -70, 50.4 ),
- Ang = Angle( 0, 0, 0 ),
- Material = "models/debug/debugwhite",
- Color = Color ( 0, 0, 0 ),
- },
- }
- EMV.Meta = {
- headlight = {
- AngleOffset = -90,
- W = 13,
- H = 14,
- Sprite = "sprites/emv/blank",
- Scale = 2,
- WMult = 1
- },
- reverse = {
- AngleOffset = 90,
- W = 10,
- H = 11,
- Sprite = "sprites/emv/crownvic_reverse",
- Scale = .75,
- WMult = .1
- },
- }
- EMV.Positions = {
- [1] = { Vector( -29.2, 114, 34.6 ), Angle( 0, 14, 20 ), "headlight" },
- [2] = { Vector( 29.2, 114, 34.6 ), Angle( 180, -14, 160 ), "headlight" },
- [3] = { Vector( -11.7, -125.4, 38.3 ), Angle( 180, -1, 183.1 ), "reverse" },
- [4] = { Vector( 11.7, -125.4, 38.3 ), Angle( 0, 1, -3.1 ), "reverse" },
- }
- EMV.Sections = {
- ["headlights"] = {
- [1] = {
- { 1, SW, { 16, .25, 0 } },
- { 2, SW, { 16, .25, 10 } },
- }
- }
- }
- EMV.Patterns = { -- 0 = blank
- ["headlight"] = {
- ["flash"] = { 1 },
- ["code3"] = { 1, 1, 1, 1, 2, 2, 2, 2 }
- },
- }
- EMV.Sequences = {
- Sequences = {
- { Name = "C1", Stage = "M1", Components = {}, Disconnect = {} },
- { Name = "C2", Stage = "M2", Components = {}, Disconnect = {} },
- { Name = "C3", Stage = "M3", Components = { ["headlight"] = "code3" }, Disconnect = {} }
- },
- Traffic = {
- { Name = "LEFT", Stage = "L", Components = {}, Disconnect = {} },
- { Name = "DIVERGE", Stage = "D", Components = {}, Disconnect = {} },
- { Name = "RIGHT", Stage = "R", Components = {}, Disconnect = {} }
- }
- }
- local V = {
- Name = VehicleName,
- Class = "prop_vehicle_jeep",
- Category = "Photon: Rain",
- Author = "Rain",
- Model = "models/sentry/cvpi_new.mdl",
- KeyValues = { vehiclescript = "scripts/vehicles/sentry/cvpi_new.txt" },
- IsEMV = true,
- EMV = EMV,
- HasPhoton = true,
- Photon = "PHOTON_INHERIT"
- }
- list.Set( "Vehicles", VehicleName, V )
- if EMVU then EMVU:OverwriteIndex( VehicleName, EMV ) end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement