capturetheflag/mods/pvp/sniper_rifles/rifles.lua

36 lines
985 B
Lua
Raw Normal View History

2020-04-22 02:01:27 +00:00
-- Basic 7.62mm rifle
sniper_rifles.register_rifle("sniper_rifles:rifle_762", {
description = "Sniper rifle (7.62mm)",
inventory_image = "sniper_rifles_rifle_762.png",
fov_mult = 4,
spec = {
rounds = 30,
range = 300,
step = 30,
tool_caps = { full_punch_interval = 1.5, damage_groups = { fleshy = 12 } },
sounds = { shot = "sniper_rifles_rifle" },
particle = "shooter_bullet.png",
groups = {
snappy = 2, fleshy = 1, oddly_breakable_by_hand = 1
2020-04-22 02:01:27 +00:00
}
}
})
-- Magnum rifle
sniper_rifles.register_rifle("sniper_rifles:rifle_magnum", {
description = "Sniper rifle (Magnum)",
inventory_image = "sniper_rifles_rifle_magnum.png",
fov_mult = 8,
spec = {
rounds = 20,
range = 400,
step = 30,
tool_caps = { full_punch_interval = 2, damage_groups = { fleshy = 16 } },
sounds = { shot = "sniper_rifles_rifle" },
particle = "shooter_bullet.png",
groups = {
snappy = 1, fleshy = 1, oddly_breakable_by_hand = 1
2020-04-22 02:01:27 +00:00
}
}
})