-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathguns.lua
112 lines (112 loc) · 2.48 KB
/
guns.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
if minetest.get_modpath("gunslinger") then
gunslinger.register_gun("fguns:colt", {
itemdef = {
description = "Colt 1M911",
inventory_image = "fguns_colt.png",
wield_scale = {x = 2, y = 2, z = 1}
},
mode = "automatic",
dmg_mult = 1,
recoil_mult = 1,
fire_rate = 4,
clip_size = 16,
spread_mult = 15,
range = 30,
ammo = "fguns:ammo1",
reload = 1.5,
sounds = {
fire = "gun"
}
})
minetest.register_craft({
output = 'fguns:colt',
recipe = {
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
{'', 'default:copper_ingot', 'default:copper_ingot'},
{'', 'default:mese_crystal', 'default:copper_ingot'},
}
})
gunslinger.register_gun("fguns:tec9", {
itemdef = {
description = "Tec9",
inventory_image = "fguns_tec9.png",
wield_scale = {x = 3, y = 3, z = 2}
},
mode = "automatic",
dmg_mult = 1,
recoil_mult = 1,
fire_rate = 10,
clip_size = 30,
spread_mult = 15,
range = 36,
ammo = "fguns:ammo1",
reload = 1.5,
sounds = {
fire = "gun"
}
})
minetest.register_craft({
output = 'fguns:tec9',
recipe = {
{'default:steel_ingot', 'default:steel_ingot', 'default:gold_ingot'},
{'default:steel_ingot', 'default:bronze_ingot', 'default:bronze_ingot'},
{'', 'default:mese_crystal', 'default:bronze_ingot'},
}
})
gunslinger.register_gun("fguns:remington", {
itemdef = {
description = "Remington 870",
inventory_image = "fguns_remington.png",
wield_scale = {x = 3, y = 3, z = 2}
},
mode = "automatic",
dmg_mult = 1,
recoil_mult = 2,
fire_rate = 1,
clip_size = 5,
spread_mult = 28,
pellets = 16,
range = 40,
ammo = "fguns:ammo2",
reload = 1.5,
sounds = {
fire = "gun_heavy"
}
})
minetest.register_craft({
output = 'fguns:remington',
recipe = {
{'default:steel_ingot', 'default:steel_ingot', 'default:mese_crystal'},
{'default:steel_ingot', 'group:wood', 'default:bronze_ingot'},
{'', '', 'group:wood'},
}
})
gunslinger.register_gun("fguns:armselstriker", {
itemdef = {
description = "Armsel Striker",
inventory_image = "fguns_armselstriker.png",
wield_scale = {x = 3, y = 3, z = 2}
},
mode = "automatic",
dmg_mult = 2,
recoil_mult = 2,
fire_rate = 2,
clip_size = 5,
spread_mult = 26,
pellets = 9,
range = 40,
ammo = "fguns:ammo2",
reload = 1.5,
sounds = {
fire = "gun_heavy"
}
})
minetest.register_craft({
output = 'fguns:armselstriker',
recipe = {
{'default:steelblock', 'default:steel_ingot', 'default:mese_crystal'},
{'', 'group:tree', 'default:steel_ingot'},
{'', 'default:mese_crystal', 'group:tree'},
}
})
end