laser_shotgun.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. minetest.register_tool("rangedweapons:laser_shotgun", {
  2. stack_max= 1,
  3. wield_scale = {x=2.0,y=2.0,z=1.75},
  4. description = "" ..core.colorize("#35cdff","Laser shotgun\n") ..core.colorize("#FFFFFF", "Ranged damage: 10\n") ..core.colorize("#FFFFFF", "accuracy: 40%\n") ..core.colorize("#FFFFFF", "projectiles: 6\n") ..core.colorize("#FFFFFF", "knockback: 0\n") ..core.colorize("#FFFFFF", "Critical chance: 8%\n") ..core.colorize("#FFFFFF", "Critical efficiency: 2.2x\n") ..core.colorize("#FFFFFF", "Power usage: 30\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.5\n") ..core.colorize("#FFFFFF", "Enemy penetration: 40%\n") ..core.colorize("#FFFFFF", "Gun type: power pistol\n") ..core.colorize("#FFFFFF", "Bullet velocity: 55"),
  5. range = 0,
  6. inventory_image = "rangedweapons_laser_shotgun.png",
  7. RW_powergun_capabilities = {
  8. power_damage = {fleshy=10,knockback=0},
  9. power_crit = 8,
  10. power_critEffc = 2.2,
  11. power_skill = {"",1},
  12. power_cooling = "rangedweapons:laser_shotgun",
  13. power_velocity = 55,
  14. power_accuracy = 40,
  15. power_cooldown = 0.5,
  16. power_projectiles = 1,
  17. power_durability = 2000,
  18. power_sound = "rangedweapons_laser",
  19. power_glass_breaking = 1,
  20. power_door_breaking = 1,
  21. power_dps = 0,
  22. power_mob_penetration = 40,
  23. power_node_penetration = 0,
  24. power_dps = 0,
  25. power_consumption = 30,
  26. power_entity = "rangedweapons:shot_bullet",
  27. power_visual = "sprite",
  28. power_texture = "rangedweapons_green_ray.png",
  29. power_projectile_size = 0.005,
  30. power_projectiles = 6,
  31. has_sparks = 0,
  32. ignites_explosives = 1,
  33. },
  34. on_use = function(itemstack, user, pointed_thing)
  35. rangedweapons_shoot_powergun(itemstack, user)
  36. return itemstack
  37. end,
  38. })