taurus.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. minetest.register_tool("rangedweapons:taurus_rld", {
  2. stack_max= 1,
  3. range = 0,
  4. wield_scale = {x=1.25,y=1.25,z=1.1},
  5. description = "",
  6. loaded_gun = "rangedweapons:taurus",
  7. groups = {not_in_creative_inventory = 1},
  8. inventory_image = "rangedweapons_taurus_rld.png",
  9. })
  10. minetest.register_tool("rangedweapons:taurus", {
  11. description = "" ..core.colorize("#35cdff","Taurus raging bull \n") ..core.colorize("#FFFFFF", "Ranged damage: 14\n")..core.colorize("#FFFFFF", "Accuracy: 97%\n") ..core.colorize("#FFFFFF", "Gun knockback: 8\n") ..core.colorize("#FFFFFF", "Critical chance: 22%\n") ..core.colorize("#FFFFFF", "Critical efficiency: 3.1x\n") ..core.colorize("#FFFFFF", "Ammunition: .44 Magnum rounds\n") ..core.colorize("#FFFFFF", "Reload time: 0.25\n") ..core.colorize("#FFFFFF", "Clip Size: 6\n") ..core.colorize("#FFFFFF", "Block penetration: 8%\n")
  12. ..core.colorize("#FFFFFF", "penetration: 24%\n") ..core.colorize("#FFFFFF", "Gun type: Revolver\n") ..core.colorize("#FFFFFF", "Bullet velocity: 64"),
  13. range = 0,
  14. wield_scale = {x=1.25,y=1.25,z=1.1},
  15. inventory_image = "rangedweapons_taurus.png",
  16. RW_gun_capabilities = {
  17. gun_damage = {fleshy=14,knockback=8},
  18. gun_crit = 22,
  19. gun_critEffc = 3.1,
  20. suitable_ammo = {{"rangedweapons:44",6}},
  21. gun_skill = {"revolver_skill",40},
  22. gun_icon = "rangedweapons_taurus_icon.png",
  23. gun_unloaded = "rangedweapons:taurus_rld",
  24. gun_cooling = "rangedweapons:taurus",
  25. gun_velocity = 55,
  26. gun_accuracy = 97,
  27. gun_cooldown = 0.2,
  28. gun_reload = 0.4,
  29. gun_projectiles = 1,
  30. gun_durability = 1750,
  31. gun_smokeSize = 7,
  32. gun_mob_penetration = 24,
  33. gun_node_penetration = 8,
  34. gun_unload_sound = "rangedweapons_shell_insert",
  35. gun_sound = "rangedweapons_deagle",
  36. },
  37. on_use = function(itemstack, user, pointed_thing)
  38. rangedweapons_shoot_gun(itemstack, user)
  39. return itemstack
  40. end,
  41. on_secondary_use = function(itemstack, user, pointed_thing)
  42. rangedweapons_single_load_gun(itemstack, user)
  43. return itemstack
  44. end,
  45. })