PageRenderTime 47ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/lua/autorun/pdmg_exclusions.lua

http://propdamage.googlecode.com/
Lua | 307 lines | 287 code | 13 blank | 7 comment | 10 complexity | 0ca3a4704a7f8caf5d5c09839250597a MD5 | raw file
  1. -- This file is for Exclusions to the Damage System
  2. -- Contains excluded tables and models
  3. pdmgExclusions = { }
  4. pdmgHL2Ex = {
  5. "models/props_c17/oildrum001_explosive.mdl",
  6. "models/props_junk/gascan001a.mdl",
  7. "models/props_junk/propane_tank001a.mdl",
  8. "npc_grenade_frag"
  9. }
  10. pdmgPHXEx = {
  11. "models/props_phx/misc/potato_launcher_explosive.mdl",
  12. "models/props_phx/oildrum001_explosive.mdl",
  13. "models/props_phx/amraam.mdl",
  14. "models/props_phx/ball.mdl",
  15. "models/props_phx/cannonball.mdl",
  16. "models/props_phx/mk-82.mdl",
  17. "models/props_phx/torpedo.mdl",
  18. "models/props_phx/ww2bomb.mdl",
  19. "models/props_phx/misc/flakshell_big.mdl"
  20. }
  21. pdmgGMODEx = {
  22. "gmod_balloon",
  23. "gmod_button",
  24. "gmod_camera",
  25. "gmod_cameraprop",
  26. "gmod_dynamite",
  27. "gmod_emitter",
  28. "gmod_hoverball",
  29. "gmod_lamp",
  30. "gmod_laser",
  31. "gmod_laser_crystal",
  32. "gmod_laser_reflector",
  33. "gmod_light",
  34. "gmod_thruster",
  35. "gmod_tool",
  36. "gmod_turret",
  37. "gmod_wheel"
  38. }
  39. pdmgWIREEx = {
  40. "gmod_wire_addressbus",
  41. "gmod_wire_adv_hudindicator",
  42. "gmod_wire_adv_input",
  43. "gmod_wire_adv_pod",
  44. "gmod_wire_buoyancy",
  45. "gmod_wire_button",
  46. "gmod_wire_cam",
  47. "gmod_wire_cameracontroller",
  48. "gmod_wire_cd_disk",
  49. "gmod_wire_cd_ray",
  50. "gmod_wire_colorer",
  51. "gmod_wire_consolescreen",
  52. "gmod_wire_cpu",
  53. "gmod_wire_damage_detector",
  54. "gmod_wire_data_satellitedish",
  55. "gmod_wire_data_store",
  56. "gmod_wire_data_transferer",
  57. "gmod_wire_dataport",
  58. "gmod_wire_datarate",
  59. "gmod_wire_datasocket",
  60. "gmod_wire_detcord",
  61. "gmod_wire_detonator",
  62. "gmod_wire_digitalscreen",
  63. "gmod_wire_dual_input",
  64. "gmod_wire_dupeport",
  65. "gmod_wire_dynamicmemory",
  66. "gmod_wire_emarker",
  67. "gmod_wire_explosive",
  68. "gmod_wire_expression",
  69. "gmod_wire_expression2",
  70. "gmod_wire_eyepod",
  71. "gmod_wire_facer",
  72. "gmod_wire_forcer",
  73. "gmod_wire_freezer",
  74. "gmod_wire_fx_emitter",
  75. "gmod_wire_gate",
  76. "gmod_wire_gps",
  77. "gmod_wire_gpu",
  78. "gmod_wire_grabber",
  79. "gmod_wire_graphics_tablet",
  80. "gmod_wire_gyroscope",
  81. "gmod_wire_hdd",
  82. "gmod_wire_holoemitter",
  83. "gmod_wire_hologrid",
  84. "gmod_wire_hoverball",
  85. "gmod_wire_hoverdrivecontroler",
  86. "gmod_wire_hsholoemitter",
  87. "gmod_wire_hsranger",
  88. "gmod_wire_hudindicator",
  89. "gmod_wire_hydraulic",
  90. "gmod_wire_igniter",
  91. "gmod_wire_indicator",
  92. "gmod_wire_indicator",
  93. "gmod_wire_input",
  94. "gmod_wire_keyboard",
  95. "gmod_wire_keycardspawner",
  96. "gmod_wire_lamp",
  97. "gmod_wire_las_reciever",
  98. "gmod_wire_latch",
  99. "gmod_wire_light",
  100. "gmod_wire_locator",
  101. "gmod_wire_materializer",
  102. "gmod_wire_microphone",
  103. "gmod_wire_motor",
  104. "gmod_wire_nailer",
  105. "gmod_wire_no_collide",
  106. "gmod_wire_notifier",
  107. "gmod_wire_numpad",
  108. "gmod_wire_oscilloscope",
  109. "gmod_wire_output",
  110. "gmod_wire_painter",
  111. "gmod_wire_panel",
  112. "gmod_wire_pid",
  113. "gmod_wire_pixel",
  114. "gmod_wire_pod",
  115. "gmod_wire_radio",
  116. "gmod_wire_ramcard_default024",
  117. "gmod_wire_ramcard_default1024",
  118. "gmod_wire_ramcard_default128",
  119. "gmod_wire_ramcard_default32",
  120. "gmod_wire_ramcard_default64",
  121. "gmod_wire_ramcard_proxy024",
  122. "gmod_wire_ramcard_proxy32",
  123. "gmod_wire_ramcardreader",
  124. "gmod_wire_ranger",
  125. "gmod_wire_realmagnet",
  126. "gmod_wire_relay",
  127. "gmod_wire_rfid_filter",
  128. "gmod_wire_rfid_implanter",
  129. "gmod_wire_rfid_reader_act",
  130. "gmod_wire_rfid_reader_beam",
  131. "gmod_wire_rfid_reader_prox",
  132. "gmod_wire_rtcam",
  133. "gmod_wire_screen",
  134. "gmod_wire_sensor",
  135. "gmod_wire_simple_explosive",
  136. "gmod_wire_simple_servo",
  137. "gmod_wire_simple_servo",
  138. "gmod_wire_socket",
  139. "gmod_wire_soundemitter",
  140. "gmod_wire_spawner",
  141. "gmod_wire_speedometer",
  142. "gmod_wire_string",
  143. "gmod_wire_stringbuf",
  144. "gmod_wire_target_finder",
  145. "gmod_wire_textreceiver",
  146. "gmod_wire_textscreen",
  147. "gmod_wire_thruster",
  148. "gmod_wire_trail",
  149. "gmod_wire_turret",
  150. "gmod_wire_twoway_radio",
  151. "gmod_wire_useholoemitter",
  152. "gmod_wire_user",
  153. "gmod_wire_value",
  154. "gmod_wire_vectorthruster",
  155. "gmod_wire_vehicle",
  156. "gmod_wire_watersensor",
  157. "gmod_wire_waypoint",
  158. "gmod_wire_weight",
  159. "gmod_wire_wheel",
  160. "gmod_wire_winch_controller",
  161. "gmod_wire_wireless_recv",
  162. "gmod_wire_wireless_srv",
  163. "gmod_wire_wirer",
  164. "gmod_wire_xyzbeacon",
  165. "gmod_xqm_wire_hydraulic"
  166. }
  167. pdmgSTARGATEEx = {
  168. "302missile",
  169. "302turret",
  170. "ag_3",
  171. "ancient_obelisk",
  172. "anti_prior",
  173. "arthur_mantle",
  174. "asgard_beam",
  175. "ashen_defence",
  176. "asuran_gate_weapon",
  177. "bearing",
  178. "brazier",
  179. "cap_doors",
  180. "chair_drone",
  181. "control_chair",
  182. "destiny_console",
  183. "destiny_main_weapon",
  184. "destiny_medium",
  185. "destiny_timer",
  186. "destiny_turret",
  187. "dhd_atlantis",
  188. "dhd_base",
  189. "dhd_city",
  190. "dhd_concept",
  191. "dhd_infinity",
  192. "dhd_sg1",
  193. "dhd_ship",
  194. "dhd_tollan",
  195. "dhd_toon",
  196. "dhd_universe",
  197. "energy_beam",
  198. "energy_bullet",
  199. "event_horizon",
  200. "future_ramp",
  201. "gate_nuke",
  202. "gate_nuke_rings",
  203. "gate_overloader",
  204. "goauld_dhd_prop",
  205. "goauld_iris",
  206. "goauld_ramp",
  207. "GravityController",
  208. "horizon",
  209. "horizon_missile",
  210. "ion_cannon",
  211. "iris_computer",
  212. "jamming_device",
  213. "kino_ball",
  214. "kino_dispenser",
  215. "launcher_drones",
  216. "malp",
  217. "mobile_dhd",
  218. "molecular_construction_device",
  219. "naquadah_bomb",
  220. "naquadah_generator",
  221. "naq_gen_mk2",
  222. "ori_beam_cannon",
  223. "ori_satellite",
  224. "puddle_jumperv4",
  225. "ramp",
  226. "ramp_2",
  227. "ring_base",
  228. "ring_base_ancient",
  229. "ring_base_goauld",
  230. "ring_base_ori",
  231. "ring_panel",
  232. "ring_panel_ancient",
  233. "ring_panel_goauld",
  234. "ring_panel_ori",
  235. "ring_ring",
  236. "sat_blast_wave",
  237. "sat_energy_beam",
  238. "sgc_ramp",
  239. "sgc_zpm_hub",
  240. "sgu_ramp",
  241. "sg_vehicle_aurora",
  242. "sg_vehicle_base",
  243. "sg_vehicle_daedalus",
  244. "sg_vehicle_dart",
  245. "sg_vehicle_f302",
  246. "sg_vehicle_gate_glider",
  247. "sg_vehicle_glider",
  248. "sg_vehicle_hatak",
  249. "sg_vehicle_shuttle",
  250. "shaped_shield_buble",
  251. "shaped_shield_generator",
  252. "shield",
  253. "ship_hangar",
  254. "ship_railgun",
  255. "ship_shield",
  256. "vship_shield_generator",
  257. "shuttle_turret",
  258. "sodan_obelisk",
  259. "Staff_stationary",
  260. "stargate_asuran",
  261. "stargate_atlantis",
  262. "stargate_base",
  263. "stargate_base_universe",
  264. "stargate_energy_atlantis",
  265. "stargate_energy_sg1",
  266. "stargate_infinity",
  267. "stargate_iris",
  268. "stargate_movie",
  269. "stargate_orlin",
  270. "stargate_sg1",
  271. "stargate_supergate",
  272. "stargate_tollan",
  273. "stargate_universe",
  274. "stationary_railgun",
  275. "tampered_zpm",
  276. "telchak",
  277. "tollan_disabler",
  278. "transporter",
  279. "zpmhub",
  280. "zpm_mk3"
  281. }
  282. function BuildExTable(cvExWire, cvExStargate, cvExGmod, cvExPhxExp, cvExHl2Exp)
  283. pdmgExclusions = {}
  284. --print("cvExWire: " .. tostring(cvExWire))
  285. --print("cvExStargate: " .. tostring(cvExStargate))
  286. --print("cvExGmod: " .. tostring(cvExGmod))
  287. --print("cvExPhxExp: " .. tostring(cvExPhxExp))
  288. --print("cvExHl2Exp: " .. tostring(cvExHl2Exp))
  289. if cvExWire == 1 then table.Add(pdmgExclusions, pdmgWIREEx) end
  290. if cvExStargate == 1 then table.Add(pdmgExclusions, pdmgSTARGATEEx) end
  291. if cvExGmod == 1 then table.Add(pdmgExclusions, pdmgGMODEx) end
  292. if cvExPhxExp == 1 then table.Add(pdmgExclusions, pdmgPHXEx) end
  293. if cvExHl2Exp == 1 then table.Add(pdmgExclusions, pdmgHL2Ex) end
  294. end