-
Notifications
You must be signed in to change notification settings - Fork 0
/
f2000.lua
68 lines (63 loc) · 2.55 KB
/
f2000.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
minetest.register_tool("rangedweapons:f2000_r", {
stack_max= 1,
wield_scale = {x=1.75,y=1.75,z=1.20},
description = "",
rw_next_reload = "rangedweapons:f2000_rr",
load_sound = "rangedweapons_handgun_mag_in",
range = 0,
groups = {not_in_creative_inventory = 1},
inventory_image = "rangedweapons_f2000_rld.png",
})
minetest.register_tool("rangedweapons:f2000_rr", {
stack_max= 1,
wield_scale = {x=1.75,y=1.75,z=1.20},
description = "",
rw_next_reload = "rangedweapons:f2000_rrr",
load_sound = "rangedweapons_reload_a",
range = 0,
groups = {not_in_creative_inventory = 1},
inventory_image = "rangedweapons_f2000.png",
})
minetest.register_tool("rangedweapons:f2000_rrr", {
stack_max= 1,
wield_scale = {x=1.75,y=1.75,z=1.20},
description = "",
rw_next_reload = "rangedweapons:f2000",
load_sound = "rangedweapons_reload_b",
range = 0,
groups = {not_in_creative_inventory = 1},
inventory_image = "rangedweapons_f2000.png",
})
minetest.register_tool("rangedweapons:f2000", {
stack_max= 1,
wield_scale = {x=1.75,y=1.75,z=1.20},
description = "" ..core.colorize("#35cdff","f2000\n") ..core.colorize("#FFFFFF", "Gun damage: 3\n") ..core.colorize("#FFFFFF", "accuracy: 74%\n") ..core.colorize("#FFFFFF", "Gun knockback: 1\n") ..core.colorize("#FFFFFF", "Gun Critical chance: 7%\n")..core.colorize("#FFFFFF", "Critical efficiency: 2.0x\n") ..core.colorize("#FFFFFF", "Reload delay: 1.0\n") ..core.colorize("#FFFFFF", "Clip size: 40/40\n") ..core.colorize("#FFFFFF", "Ammunition: 9x19mm parabellum/10mm auto\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.075(full-auto)\n") ..core.colorize("#FFFFFF", "Gun type: sub-machinegun\n") ..core.colorize("#FFFFFF", "Bullet velocity: 25"),
range = 0,
inventory_image = "rangedweapons_f2000.png",
RW_gun_capabilities = {
automatic_gun = 1,
gun_damage = {fleshy=3,knockback=1},
gun_crit = 7,
gun_critEffc = 2.0,
suitable_ammo = {{"rangedweapons:9mm",40},{"rangedweapons:10mm",40}},
gun_skill = {"smg_skill",75},
gun_magazine = "rangedweapons:machinepistol_mag",
gun_icon = "rangedweapons_f2000_icon.png",
gun_unloaded = "rangedweapons:f2000_r",
gun_velocity = 25,
gun_accuracy = 74,
gun_cooldown = 0.075,
gun_reload = 1.0/4,
gun_projectiles = 1,
has_shell = 1,
gun_gravity = 0,
gun_durability = 1600,
gun_smokeSize = 4,
gun_unload_sound = "rangedweapons_handgun_mag_out",
gun_sound = "rangedweapons_smg",
},
on_secondary_use = function(itemstack, user, pointed_thing)
rangedweapons_reload_gun(itemstack, user)
return itemstack
end,
})