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:
parent
bc0fc7f43c
commit
d7f6dc7c06
2 changed files with 5 additions and 5 deletions
|
@ -37,7 +37,7 @@ end
|
|||
|
||||
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
|
||||
arrow_tool_caps = table.copy(SHOOTER_ARROW_TOOL_CAPS)
|
||||
end
|
||||
|
|
|
@ -24,7 +24,7 @@ shooter.register_weapon("shooter_guns:pistol", {
|
|||
rounds = 200,
|
||||
range = 160,
|
||||
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},
|
||||
sounds = {
|
||||
shot = "shooter_pistol",
|
||||
|
@ -45,7 +45,7 @@ shooter.register_weapon("shooter_guns:rifle", {
|
|||
rounds = 100,
|
||||
range = 240,
|
||||
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},
|
||||
sounds = {
|
||||
shot = "shooter_rifle",
|
||||
|
@ -68,7 +68,7 @@ shooter.register_weapon("shooter_guns:shotgun", {
|
|||
step = 15,
|
||||
shots = 15,
|
||||
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},
|
||||
sounds = {
|
||||
shot = "shooter_shotgun",
|
||||
|
@ -90,7 +90,7 @@ shooter.register_weapon("shooter_guns:machine_gun", {
|
|||
rounds = 32,
|
||||
range = 160,
|
||||
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},
|
||||
sounds = {
|
||||
shot = "shooter_pistol",
|
||||
|
|
Loading…
Reference in a new issue