Advertisement
Guest User

Untitled

a guest
Aug 31st, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. AddCSLuaFile()
  2.  
  3. local VehicleName = "Ford Crown Victoria P71 (Snohomish County Unmarked)"
  4.  
  5. local EMV = {}
  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. EMV.Siren = 3
  16. EMV.Skin = 1
  17. EMV.Color = Color(84,84,84)
  18.  
  19. EMV.BodyGroups = {
  20. { 0, 0 }, -- car
  21. { 1, 0 }, -- pushbar
  22. { 2, 0 }, -- camera
  23. { 3, 6 }, -- lightbar
  24. { 4, 0 }, -- rainguard
  25. { 5, 0 }, -- trim
  26. { 6, 0 }, -- grille
  27. { 7, 0 }, -- spotlight_l
  28. { 8, 0 }, -- spotlight_r
  29. { 9, 0 }, -- runners
  30. { 10, 0 }, -- extmirrorlights
  31. { 11, 0 }, -- mirrorlights
  32. { 12, 0 }, -- dashlights
  33. { 13, 0 }, -- grillelights
  34. { 14, 0 }, -- rwlights
  35. { 15, 0 }, -- platelights
  36. { 16, 0 }, -- windowbars
  37. { 17, 1 }, -- antenna
  38. { 18, 2 }, -- wheels
  39. { 19, 0 }, -- clamped1
  40. }
  41.  
  42. EMV.Auto = {
  43. {
  44. ID = "Whelen Avenger 2016",
  45. Scale = 1,
  46. Pos = Vector( 13, 24, 62 ),
  47. Ang = Angle( 0, 90, 0 )
  48. },
  49. {
  50. ID = "Whelen Avenger 2016",
  51. Scale = 1,
  52. Pos = Vector( -13, 24, 62 ),
  53. Ang = Angle( 0, 90, 0 )
  54. },
  55. {
  56. ID = "Whelen Ion 2016",
  57. Scale = 1,
  58. Pos = Vector( -46, 36.6, 49.4 ),
  59. Ang = Angle( 0,28, 0 ),
  60. Color1 = "BLUE",
  61. Phase = "A"
  62. },
  63. {
  64. ID = "Whelen Ion 2016",
  65. Scale = 1,
  66. Pos = Vector( 46, 36.6, 49.4 ),
  67. Ang = Angle( 0,-28, 0 ),
  68. Color1 = "BLUE",
  69. Phase = "B"
  70. },
  71. {
  72. ID = "Whelen Ion 2016",
  73. Scale = 0.65,
  74. Pos = Vector(-8,121.5, 31 ),
  75. Ang = Angle( 0, 0, 0 ),
  76. Color1 = "BLUE",
  77. Phase = "A"
  78. },
  79. {
  80. ID = "Whelen Ion 2016",
  81. Scale = 0.65,
  82. Pos = Vector(8,121.5, 31 ),
  83. Ang = Angle( 0, 0, 0 ),
  84. Color1 = "BLUE",
  85. Phase = "B"
  86. },
  87. {
  88. ID = "Whelen 700 2016",
  89. Scale = 1,
  90. Pos = Vector( 7, -71.3, 50.7),
  91. Ang = Angle( 0, 0, 90 ),
  92. Phase = "A",
  93. Color1 = "BLUE"
  94. },
  95. {
  96. ID = "Whelen 700 2016",
  97. Scale = 1,
  98. Pos = Vector( -7, -71.3, 50.7 ),
  99. Ang = Angle( 0, 0, 90 ),
  100. Phase = "B",
  101. Color1 = "RED"
  102. }
  103. }
  104.  
  105. EMV.Props = {
  106. {
  107. Model = "models/schmal/fpiu_wrap.mdl",
  108. Scale = 1,
  109. Pos = Vector(28.2,121.5, 26 ),
  110. Ang = Angle( 0, 90, 0 ),
  111. },
  112. {
  113. Model = "models/schmal/fpiu_wrap.mdl",
  114. Scale = 1,
  115. Pos = Vector(-28.2,121.5, 26 ),
  116. Ang = Angle( 0, 90, 180 ),
  117. },
  118. {
  119. Model = "models/sprops/cuboids/height12/size_1/cube_12x18x12.mdl",
  120. Scale = 0.24,
  121. Pos = Vector( 7, -70, 50.4 ),
  122. Ang = Angle( 0, 0, 0 ),
  123. Material = "models/debug/debugwhite",
  124. Color = Color ( 0, 0, 0 ),
  125. },
  126. {
  127. Model = "models/sprops/cuboids/height12/size_1/cube_12x18x12.mdl",
  128. Scale = 0.24,
  129. Pos = Vector( -7, -70, 50.4 ),
  130. Ang = Angle( 0, 0, 0 ),
  131. Material = "models/debug/debugwhite",
  132. Color = Color ( 0, 0, 0 ),
  133. },
  134. }
  135.  
  136. EMV.Meta = {
  137. headlight = {
  138. AngleOffset = -90,
  139. W = 13,
  140. H = 14,
  141. Sprite = "sprites/emv/blank",
  142. Scale = 2,
  143. WMult = 1
  144. },
  145. reverse = {
  146. AngleOffset = 90,
  147. W = 10,
  148. H = 11,
  149. Sprite = "sprites/emv/crownvic_reverse",
  150. Scale = .75,
  151. WMult = .1
  152. },
  153.  
  154. }
  155.  
  156. EMV.Positions = {
  157.  
  158. [1] = { Vector( -29.2, 114, 34.6 ), Angle( 0, 14, 20 ), "headlight" },
  159. [2] = { Vector( 29.2, 114, 34.6 ), Angle( 180, -14, 160 ), "headlight" },
  160.  
  161. [3] = { Vector( -11.7, -125.4, 38.3 ), Angle( 180, -1, 183.1 ), "reverse" },
  162. [4] = { Vector( 11.7, -125.4, 38.3 ), Angle( 0, 1, -3.1 ), "reverse" },
  163.  
  164.  
  165. }
  166.  
  167. EMV.Sections = {
  168. ["headlights"] = {
  169. [1] = {
  170. { 1, SW, { 16, .25, 0 } },
  171. { 2, SW, { 16, .25, 10 } },
  172. }
  173. }
  174. }
  175.  
  176. EMV.Patterns = { -- 0 = blank
  177. ["headlight"] = {
  178. ["flash"] = { 1 },
  179. ["code3"] = { 1, 1, 1, 1, 2, 2, 2, 2 }
  180. },
  181. }
  182.  
  183.  
  184. EMV.Sequences = {
  185. Sequences = {
  186. { Name = "C1", Stage = "M1", Components = {}, Disconnect = {} },
  187. { Name = "C2", Stage = "M2", Components = {}, Disconnect = {} },
  188. { Name = "C3", Stage = "M3", Components = { ["headlight"] = "code3" }, Disconnect = {} }
  189. },
  190. Traffic = {
  191. { Name = "LEFT", Stage = "L", Components = {}, Disconnect = {} },
  192. { Name = "DIVERGE", Stage = "D", Components = {}, Disconnect = {} },
  193. { Name = "RIGHT", Stage = "R", Components = {}, Disconnect = {} }
  194. }
  195. }
  196.  
  197. local V = {
  198. Name = VehicleName,
  199. Class = "prop_vehicle_jeep",
  200. Category = "Photon: Rain",
  201. Author = "Rain",
  202. Model = "models/sentry/cvpi_new.mdl",
  203. KeyValues = { vehiclescript = "scripts/vehicles/sentry/cvpi_new.txt" },
  204. IsEMV = true,
  205. EMV = EMV,
  206. HasPhoton = true,
  207. Photon = "PHOTON_INHERIT"
  208. }
  209. list.Set( "Vehicles", VehicleName, V )
  210.  
  211. if EMVU then EMVU:OverwriteIndex( VehicleName, EMV ) end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement