Add ranged damage group to guns and crossbow

* Add ranged damage group to guns

* Add ranged and crossbow group to crossbow
This commit is contained in:
LoneWolfHT 2020-07-01 11:42:17 -07:00 committed by GitHub
parent bc0fc7f43c
commit d7f6dc7c06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -37,7 +37,7 @@ end
config = shooter.get_configuration(config) config = shooter.get_configuration(config)
local arrow_tool_caps = {damage_groups={fleshy=config.arrow_fleshy}} local arrow_tool_caps = {damage_groups={fleshy=config.arrow_fleshy, ranged=1, crossbow=1}}
if minetest.global_exists("SHOOTER_ARROW_TOOL_CAPS") then if minetest.global_exists("SHOOTER_ARROW_TOOL_CAPS") then
arrow_tool_caps = table.copy(SHOOTER_ARROW_TOOL_CAPS) arrow_tool_caps = table.copy(SHOOTER_ARROW_TOOL_CAPS)
end end

View file

@ -24,7 +24,7 @@ shooter.register_weapon("shooter_guns:pistol", {
rounds = 200, rounds = 200,
range = 160, range = 160,
step = 20, step = 20,
tool_caps = {full_punch_interval=0.5, damage_groups={fleshy=2}}, tool_caps = {full_punch_interval=0.5, damage_groups={fleshy=2, ranged=1}},
groups = {snappy=3, fleshy=3, oddly_breakable_by_hand=3}, groups = {snappy=3, fleshy=3, oddly_breakable_by_hand=3},
sounds = { sounds = {
shot = "shooter_pistol", shot = "shooter_pistol",
@ -45,7 +45,7 @@ shooter.register_weapon("shooter_guns:rifle", {
rounds = 100, rounds = 100,
range = 240, range = 240,
step = 30, step = 30,
tool_caps = {full_punch_interval=1.0, damage_groups={fleshy=3}}, tool_caps = {full_punch_interval=1.0, damage_groups={fleshy=3, ranged=1}},
groups = {snappy=3, crumbly=3, choppy=3, fleshy=2, oddly_breakable_by_hand=2}, groups = {snappy=3, crumbly=3, choppy=3, fleshy=2, oddly_breakable_by_hand=2},
sounds = { sounds = {
shot = "shooter_rifle", shot = "shooter_rifle",
@ -68,7 +68,7 @@ shooter.register_weapon("shooter_guns:shotgun", {
step = 15, step = 15,
shots = 15, shots = 15,
spread = 10, spread = 10,
tool_caps = {full_punch_interval=1, damage_groups={fleshy=2}}, tool_caps = {full_punch_interval=1, damage_groups={fleshy=2, ranged=1}},
groups = {snappy=3, fleshy=3, oddly_breakable_by_hand=3}, groups = {snappy=3, fleshy=3, oddly_breakable_by_hand=3},
sounds = { sounds = {
shot = "shooter_shotgun", shot = "shooter_shotgun",
@ -90,7 +90,7 @@ shooter.register_weapon("shooter_guns:machine_gun", {
rounds = 32, rounds = 32,
range = 160, range = 160,
step = 20, step = 20,
tool_caps = {full_punch_interval=0.1, damage_groups={fleshy=2}}, tool_caps = {full_punch_interval=0.1, damage_groups={fleshy=2, ranged=1}},
groups = {snappy=3, fleshy=3, oddly_breakable_by_hand=3}, groups = {snappy=3, fleshy=3, oddly_breakable_by_hand=3},
sounds = { sounds = {
shot = "shooter_pistol", shot = "shooter_pistol",