33 lines
619 B
Lua
Raw Normal View History

2020-11-03 14:31:24 +01:00
local S = minetest.get_translator("block_league")
2020-10-27 18:13:15 +01:00
block_league.register_weapon("block_league:smg", {
2020-11-03 14:31:24 +01:00
description = S("Submachine Gun"),
2020-10-29 21:01:53 +01:00
wield_image = "bl_smg.png",
2020-10-27 18:13:15 +01:00
wield_scale = {x=1, y=1, z=1},
2020-10-29 21:01:53 +01:00
inventory_image = "bl_smg.png",
2020-10-27 18:13:15 +01:00
weapon_type = 1,
2020-10-31 15:22:23 +01:00
2020-10-31 19:37:31 +01:00
damage = 3,
weapon_range = 30,
2020-10-31 19:37:31 +01:00
knockback = 0,
fire_delay = 0.1,
2020-10-31 15:22:23 +01:00
2020-10-31 19:37:31 +01:00
pierce = false,
decrease_damage_with_distance = true,
2020-10-27 18:13:15 +01:00
continuos_fire = true,
2020-10-31 15:22:23 +01:00
2020-10-31 19:37:31 +01:00
sound_shoot = "bl_smg_shoot",
2020-11-12 19:50:58 +01:00
sound_reload = "bl_smg_reload",
2020-10-31 19:37:31 +01:00
bullet_trail = {
2020-10-31 15:22:23 +01:00
image = "bl_smg_trail.png",
amount = 5
},
2020-10-27 18:13:15 +01:00
consume_bullets = false,
2020-10-29 23:06:24 +01:00
magazine = 30,
reload_time = 2
2020-10-27 18:13:15 +01:00
})