capturetheflag/mods/pvp/sniper_rifles/rifles.lua

38 lines
1.1 KiB
Lua
Raw Permalink 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,
2020-09-20 16:52:29 +00:00
tool_caps = { full_punch_interval = 1.5, damage_groups = { fleshy = 12, sniper = 1 } },
sounds = { shot = "sniper_rifles_shot" },
2020-04-22 02:01:27 +00:00
particle = "shooter_bullet.png",
groups = {
cracky = 3, snappy = 2, crumbly = 2, choppy = 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,
2020-09-20 16:52:29 +00:00
tool_caps = { full_punch_interval = 2, damage_groups = { fleshy = 16, sniper = 1 } },
sounds = { shot = "sniper_rifles_shot" },
2020-04-22 02:01:27 +00:00
particle = "shooter_bullet.png",
groups = {
cracky = 2, snappy = 1, crumbly = 1, choppy = 1,
fleshy = 1, oddly_breakable_by_hand = 1,
2020-04-22 02:01:27 +00:00
}
}
})