SHARE
TWEET

Photon Illumination Help

a guest Apr 25th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. AddCSLuaFile()
  2.  
  3. local VehicleName = "Police Jeep"
  4.  
  5. local EMV = {}
  6.  
  7. EMV.Siren = 7
  8. EMV.Skin = 0
  9. EMV.Color = Color(255,255,255)
  10.  
  11. EMV.BodyGroups = {
  12.     { 0, 0 }, -- Body
  13.     { 1, 1 }, -- bumperf
  14.     { 2, 0 }, -- bumperr
  15.     { 3, 2 }, -- hood
  16.     { 4, 1 }, -- wheel
  17.     { 5, 0 }, -- cockpit
  18. }
  19.  
  20. EMV.Auto = {
  21.     {
  22.         ID = "Whelen Ultra Freedom",
  23.         Scale = 0.9,
  24.         Pos = Vector( 0, -10, 84 ),
  25.         Ang = Angle( 0, 90, 0 )
  26.     },
  27.     {
  28.         ID = "Whelen 400 Series",
  29.         Scale = 1,
  30.         Pos = Vector( -20, -80, 24 ),
  31.         Ang = Angle( 180, 180, 0 ),
  32.         Color1 = "AMBER",
  33.         Color2 = "AMBER",
  34.     },
  35.     {
  36.         ID = "Whelen 400 Series",
  37.         Scale = 1,
  38.         Pos = Vector( 20, -80, 24 ),
  39.         Ang = Angle( 180, 180, 0 ),
  40.         Color1 = "AMBER",
  41.         Color2 = "AMBER",
  42.     },
  43.     {
  44.         ID = "Whelen M9",
  45.         Scale = 1,
  46.         Pos = Vector( -35, -77, 74 ),
  47.         Ang = Angle( 0, 270, -5 ),
  48.         Phase = "TT",
  49.         Color1 = "AMBER",
  50.         Color2 = "BLUE"
  51.     },
  52.     {
  53.         ID = "Whelen M9",
  54.         Scale = 1,
  55.         Pos = Vector( -35, -44, 74 ),
  56.         Ang = Angle( 0, 270, -5 ),
  57.         Phase = "TT",
  58.         Color1 = "RED",
  59.         Color2 = "AMBER"
  60.     },
  61.     {
  62.         ID = "Whelen M9",
  63.         Scale = 1,
  64.         Pos = Vector( 35, -51, 74 ),
  65.         Ang = Angle( 0, 90, -5 ),
  66.         Phase = "TT",
  67.         Color1 = "AMBER",
  68.         Color2 = "BLUE"
  69.     },
  70.     {
  71.         ID = "Whelen M9",
  72.         Scale = 1,
  73.         Pos = Vector( 35, -18, 74 ),
  74.         Ang = Angle( 0, 90, -5 ),
  75.         Phase = "TT",
  76.         Color1 = "RED",
  77.         Color2 = "AMBER"
  78.     },
  79.     {
  80.         ID = "Tomar 200S Rear",
  81.         Scale = 1,
  82.         Pos = Vector( 0, -74.2, 80 ),
  83.         Ang = Angle( 0, -90, 0 )
  84.     },
  85.     {
  86.         ID = "Small Front Interior Trio",
  87.         Scale = 1,
  88.         Pos = Vector( -30, 17, 26 ),
  89.         Ang = Angle( 0, -3, 0 )
  90.     },
  91.     {
  92.         ID = "Small Front Interior Trio",
  93.         Scale = 1,
  94.         Pos = Vector( -30, -1.5, 26 ),
  95.         Ang = Angle( 0, -3, 0 )
  96.     },
  97.     {
  98.         ID = "Small Front Interior Trio",
  99.         Scale = 1,
  100.         Pos = Vector( 30, 17, 26 ),
  101.         Ang = Angle( 0, 180, 0 )
  102.     },
  103.     {
  104.         ID = "Small Front Interior Trio",
  105.         Scale = 1,
  106.         Pos = Vector( 30, -1.5, 26 ),
  107.         Ang = Angle( 0, 180, 0 )
  108.     },
  109.     {
  110.         ID = "Small Front Interior Trio",
  111.         Scale = 1,
  112.         Pos = Vector( 0, 85, 41 ),
  113.         Ang = Angle( 0, 270, 0 ),
  114.     },
  115.     {
  116.         ID = "TDM Front Interior Lightbar",
  117.         Scale = 1,
  118.         Pos = Vector( 0, 90, 24 ),
  119.         Ang = Angle( 0, 90, 0 )
  120.     },
  121.     {
  122.         ID = "TDM Front Interior Lightbar",
  123.         Scale = 1,
  124.         Pos = Vector( 0, 12.5, 77 ),
  125.         Ang = Angle( 0, 90, 0 )
  126.     },
  127.     {
  128.         ID = "Whelen PAR-46 Spotlight Right",
  129.         Scale = 1,
  130.         Pos = Vector( 0, 12.5, 100 ),
  131.         Ang = Angle( 0, 90, 0 )
  132.     },
  133. }
  134.  
  135.  
  136. EMV.Sequences = {
  137.     Sequences = {
  138.         { Name = "CODE 1", Stage = "M1", Components = {}, Disconnect = {} },
  139.         { Name = "CODE 2", Stage = "M2", Components = {}, Disconnect = {} },
  140.         { Name = "CODE 3", Stage = "M3", Components = {}, Disconnect = {} }
  141.     },
  142.     Traffic = {
  143.         { Name = "LEFT", Stage = "L", Components = {}, Disconnect = {} },
  144.         { Name = "DIVERGE", Stage = "D", Components = {}, Disconnect = {} },
  145.         { Name = "RIGHT", Stage = "R", Components = {}, Disconnect = {} }
  146.     },
  147.         Illumination = {
  148.         {
  149.             Name = "SPOT",
  150.             Icon = "takedown",
  151.             Stage = "S",
  152.             Components = {"Whelen PAR-46 Spotlight Right"},
  153.             BG_Components = {},
  154.             Preset_Components = {},
  155.             Lights = {"Whelen PAR-46 Spotlight Right"}
  156.                 { Vector( 0, 25, 100 ), Angle( 20, 90, 0 ), "takedown" },
  157.             },
  158.             Disconnect = {}
  159.         },
  160.     }  
  161. }
  162.  
  163. EMV.Lamps = {
  164.     ["takedown"] = {
  165.         Color = Color(215,225,255,255),
  166.         Texture = "effects/flashlight001",
  167.         Near = 110,
  168.         FOV = 135,
  169.         Distance = 800,
  170.     },
  171. }
  172.  
  173. local V = {
  174.     Name = VehicleName,
  175.     Class = "prop_vehicle_jeep",
  176.     Category = "Bryce's Offroad Police Cars",
  177.     Author = "ToxicWolf717",
  178.     Model = "models/tdmcars/wrangler.mdl",
  179.     KeyValues = { vehiclescript = "scripts/vehicles/TDMCars/wrangler.txt" },
  180.     IsEMV = true,
  181.     EMV = EMV,
  182.     HasPhoton = true,
  183.     Photon = "PHOTON_INHERIT"
  184. }
  185. list.Set( "Vehicles", VehicleName, V )
  186.  
  187. if EMVU then EMVU:OverwriteIndex( VehicleName, EMV ) end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top