35 lines
985 B
Lua
35 lines
985 B
Lua
-- 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
|
|
}
|
|
}
|
|
})
|
|
|
|
-- 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
|
|
}
|
|
}
|
|
})
|