Advertisement
Guest User

heMagazineAmmo_old

a guest
Apr 1st, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.34 KB | None | 0 0
  1. local heMagazineAmmo
  2.     -- if (settings.startup["rampant-arsenal-"]) then
  3.     -- end
  4.         = makeAmmo({
  5.                 name = "he-magazine",
  6.                 icon = "__RampantArsenal__/graphics/icons/he-rounds-magazine.png",
  7.                 order = "a[basic-clips]-c[he-rounds-magazine]",
  8.                 magSize = 10,
  9.                 stackSize = 200,
  10.                 ammoType = {
  11.                     category = "bullet",
  12.                     -- target_type = "position",
  13.                     -- clamp_position = true,
  14.                     action =
  15.                         {
  16.                             type = "direct",
  17.                             action_delivery =
  18.                                 {
  19.                                     {
  20.                                         type = "instant",
  21.                                         source_effects =
  22.                                             {
  23.                                                 type = "create-explosion",
  24.                                                 entity_name = "explosion-gunshot"
  25.                                             }
  26.                                     },
  27.                                     {
  28.                                         type = "instant",
  29.                                         target_effects = {
  30.                                             {
  31.                                                 type = "create-explosion",
  32.                                                 entity_name = "explosion"
  33.                                             },
  34.                                             {
  35.                                                 type = "damage",
  36.                                                 damage = {amount = 2, type = "physical"}
  37.                                             },
  38.                                             {
  39.                                                 type = "damage",
  40.                                                 damage = {amount = 22, type = "explosion"}
  41.                                             },
  42.                                             {
  43.                                                 type = "push-back",
  44.                                                 distance = 0.5,
  45.                                                 show_in_tooltip = true
  46.                                             }
  47.                                         }
  48.                                     }
  49.                                     -- {
  50.                                     --     type = "projectile",
  51.                                     --     projectile = makeShotgunProjectile({
  52.                                     --             name = "heMagazine",
  53.                                     --             directionOnly = false,
  54.                                     --             tint = {r=0.4,g=0,b=0.8,a=0.8},
  55.                                     --             hitAtPosition = true,
  56.                                     --              action = {
  57.                                     --                 type = "direct",
  58.                                     --                 action_delivery =
  59.                                     --                     {
  60.                                     --                         type = "instant",
  61.                                     --                         target_effects = {
  62.                                     --                             {
  63.                                     --                                 type = "create-explosion",
  64.                                     --                                 entity_name = "explosion"
  65.                                     --                             },
  66.                                     --                             {
  67.                                     --                                 type = "damage",
  68.                                     --                                 damage = {amount = 2, type = "physical"}
  69.                                     --                             },
  70.                                     --                             {
  71.                                     --                                 type = "damage",
  72.                                     --                                 damage = {amount = 20, type = "explosion"}
  73.                                     --                             },
  74.                                     --                             {
  75.                                     --                                 type = "push-back",
  76.                                     --                                 distance = 0.5,
  77.                                     --                                 show_in_tooltip = true
  78.                                     --                             }
  79.                                     --                         }
  80.                                     --                     }
  81.                                     --             }
  82.                                     --     }),
  83.                                     --     starting_speed = 1,
  84.                                     --     direction_deviation = 0.1,
  85.                                     --     range_deviation = 0.1,
  86.                                     --     max_range = 40
  87.                                     -- }
  88.                                 }
  89.                         }
  90.                 }
  91.                   })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement