Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.90 KB | None | 0 0
  1. AddCSLuaFile()
  2.  
  3. EMV_DEBUG = false
  4.  
  5. local name = "Lamborghini Huracan Gendarmerie"
  6.  
  7. local A = "AMBER"
  8. local R = "RED"
  9. local DR = "D_RED"
  10. local B = "BLUE"
  11. local W = "WHITE"
  12. local CW = "C_WHITE"
  13. local SW = "S_WHITE"
  14.  
  15. local EMV = {}
  16.  
  17. EMV.Siren = 15
  18.  
  19. EMV.Color = nil
  20. EMV.Skin = 7
  21.  
  22. EMV.BodyGroups = {
  23.     { 0, 1 }
  24. }
  25.  
  26. EMV.Props = {
  27.     {
  28.         Model = "models/tdmcars/emergency/equipment/fedsig_viper.mdl",
  29.         Scale = 1,
  30.         Pos = Vector(-30, 50.8, 40.8),
  31.         Ang = Angle( 0, 90, 0),
  32.         Skin = 0,
  33.         BodyGroups = {
  34.             { 1, 1 },
  35.         },
  36.         Color = Color( 255, 255, 255 )
  37.     },
  38.     {
  39.         Model = "models/tdmcars/emergency/equipment/fedsig_viper.mdl",
  40.         Scale = 1,
  41.         Pos = Vector(30, 50.8, 40.8),
  42.         Ang = Angle( 0, 90, 0),
  43.         Skin = 0,
  44.         BodyGroups = {
  45.             { 1, 1 },
  46.         },
  47.         Color = Color( 255, 255, 255 )
  48.     },
  49.     {
  50.         Model = "models/mrssx/gyroled.mdl",
  51.         Scale = 1,
  52.         Pos = Vector(0, 0, 56),
  53.         Ang = Angle( 1.5, 90, 0),
  54.         Skin = 0,
  55.         BodyGroups = {
  56.             { 1, 1 },
  57.         },
  58.         Color = Color( 255, 255, 255 )
  59.     },
  60. }
  61.  
  62. EMV.Meta = {
  63.     window_f = {
  64.         AngleOffset = -90,
  65.         W = 4,
  66.         H = 4,
  67.         Sprite = "sprites/emv/fs_valor",
  68.         WMult = 1,
  69.         Scale = 2
  70.     },
  71.     gyro = {
  72.         AngleOffset = "R",
  73.         W = 9,
  74.         H = 3,
  75.         Sprite = "sprites/emv/flare_secondary",
  76.         WMult = 1.5,
  77.         Scale = 1,
  78.         Speed = 8
  79.     },
  80. }
  81.  
  82. EMV.Positions = {
  83.     [1] = { Vector(-30, 51.3, 41.6), Angle(0,0,0), "window_f" },
  84.     [2] = { Vector(30, 51.3, 41.6), Angle(0,0,0), "window_f" },
  85.  
  86.     [3] = { Vector(0, 0, 58.2), Angle(1.5,0,0), "gyro" },
  87. }
  88.  
  89.  
  90. EMV.Sections = {
  91.     ["window_f"] = {
  92.         { {1,B}, {2,B} },
  93.         { {1,B,1}},
  94.         { {2,B,1}},
  95.     },
  96.     ["gyro"] = {
  97.         { {3,B,2} },
  98.     },
  99. }
  100.  
  101. EMV.Patterns = {
  102.     ["window_f"] = {
  103.         ["urgent"] = {
  104.             2,0,2,0,3,0,3,0
  105.         },
  106.         ["intercept"] = {
  107.             2,3
  108.         }
  109.     },
  110.     ["gyro"] = {
  111.         ["default"] = {
  112.             1
  113.         }
  114.     },
  115. }
  116.  
  117.  
  118. EMV.Sequences = {
  119.     Sequences = {
  120.         {
  121.             Name = "INTERCEPT",
  122.             Components = {
  123.                 ["window_f"] = "intercept",
  124.                 ["gyro"] = "default",
  125.             },
  126.         },
  127.         {
  128.             Name = "HIGH PRIORITY",
  129.             Components = {
  130.                 ["window_f"] = "urgent",
  131.                 ["gyro"] = "default",
  132.             }
  133.         },
  134.     }
  135. }
  136.  
  137. local PI = {}
  138.  
  139. PI.Meta = {
  140.    
  141. }
  142.  
  143. PI.Positions = {
  144.    
  145. }
  146.  
  147. PI.States = {}
  148.  
  149. PI.States.Headlights = {}
  150. PI.States.Brakes = {}
  151. PI.States.Blink_Left = {}
  152. PI.States.Blink_Right = {}
  153. PI.States.Reverse = {}
  154. PI.States.Running = {}
  155.  
  156. local V = {
  157.                 // Required information
  158.                 Name =  name,
  159.                 Class = "prop_vehicle_jeep",
  160.                 Category = "MrSsX Vehicles",
  161.  
  162.                 // Optional information
  163.                 Author = "LoneWolfie, Schmal, MrSsX",
  164.                 Information = "vroom vroom",
  165.                 Model = "models/lonewolfie/lam_huracan.mdl",
  166.  
  167.            
  168.                 KeyValues = {              
  169.                         vehiclescript = "scripts/vehicles/lwcars/lam_huracan.txt"
  170.                         },
  171.                 IsEMV = true,
  172.                 EMV = EMV,
  173.                 HasPhoton = true,
  174.                 Photon = PI
  175.  
  176. }
  177.  
  178. list.Set( "Vehicles", V.Name, V )
  179.  
  180. if EMVU then EMVU:OverwriteIndex( name, EMV ) end
  181. if Photon then Photon:OverwriteIndex( name, PI ) end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement