Nevinyrral

krastorio-rocket-turret

Jun 16th, 2019 (edited)
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.97 KB | None | 0 0
  1. {
  2.     type = "ammo-turret",
  3.     name = "rocket-turret",
  4.     icon = krstr_entities_icon_path .. "rocket_turret_icon.png",
  5.     icon_size = 32,
  6.     flags = {"placeable-player", "player-creation"},
  7.     minable = {mining_time = 1, result = "rocket-turret"},
  8.     max_health = 1500,
  9.     corpse = "big-remnants",
  10.     resistances =
  11.     {
  12.     {type = "physical",percent = 50},
  13.     {type = "fire",percent = 75},
  14.     {type = "impact",percent = 75}
  15.     },
  16.     collision_box = {{-1.75, -1.75 }, {1.75, 1.75}},
  17.     selection_box = {{-2, -2 }, {2, 2}},
  18.     rotation_speed = 0.002,
  19.     preparing_speed = 0.04,
  20.     folding_speed = 0.04,
  21.     dying_explosion = "big-explosion",
  22.     inventory_size = 1,
  23.     automated_ammo_count = 10,
  24.     attacking_speed = 0.5,
  25.     folded_animation = rocket_turret_sheet{direction_count = 8, line_length = 1},
  26.     preparing_animation = rocket_turret_sheet{direction_count = 8, line_length = 1},
  27.     prepared_animation = rocket_turret_sheet{},
  28.     attacking_animation = rocket_turret_sheet{},
  29.     folding_animation = rocket_turret_sheet{direction_count = 8, line_length = 1, run_mode = "backward"},
  30.     vehicle_impact_sound =  { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
  31.     attack_parameters =
  32.       {
  33.         type = "projectile",
  34.           ammo_category = "missiles-for-turrets",
  35.           cooldown = 120,
  36.           turn_range = 1/7,
  37.           projectile_creation_distance = 2.65,
  38.           projectile_center = {0, 0.4},
  39.           --damage_modifier = 1.25,
  40.           shell_particle =
  41.         {
  42.            name = "shell-particle",
  43.            direction_deviation = 0.1,
  44.            speed = 0.1,
  45.            speed_deviation = 0.02,
  46.            center = {0, 0},
  47.            creation_distance = -3.5,
  48.            starting_frame_speed = 0.3,
  49.            starting_frame_speed_deviation = 0.1
  50.         },
  51.     range = 80,
  52.     min_range = 35,
  53.     sound =
  54.         {
  55.           {
  56.             filename = "__Krastorio__/sound/rocket-launch.ogg",
  57.             volume = 0.8
  58.           }
  59.         },
  60.       },
  61.     open_sound = { filename = "__base__/sound/machine-open.ogg", volume = 0.75 },
  62.     close_sound = { filename = "__base__/sound/machine-close.ogg", volume = 0.75 },
  63.     call_for_help_radius = 85
  64.     }
Add Comment
Please, Sign In to add comment