Upload files to 'mods/rangedweapons'
This commit is contained in:
parent
90c6173a9d
commit
955286c03c
|
@ -0,0 +1,72 @@
|
|||
|
||||
|
||||
|
||||
minetest.register_craftitem("rangedweapons:tec9_r", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.25,y=1.25,z=1.50},
|
||||
description = "",
|
||||
range = 0,
|
||||
rw_next_reload = "rangedweapons:tec9_rr",
|
||||
load_sound = "rangedweapons_handgun_mag_in",
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_tec9_rld.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("rangedweapons:tec9_rr", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.25,y=1.25,z=1.50},
|
||||
description = "",
|
||||
range = 0,
|
||||
rw_next_reload = "rangedweapons:tec9_rrr",
|
||||
load_sound = "rangedweapons_reload_a",
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_tec9.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("rangedweapons:tec9_rrr", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.25,y=1.25,z=1.50},
|
||||
description = "",
|
||||
range = 0,
|
||||
rw_next_reload = "rangedweapons:tec9",
|
||||
load_sound = "rangedweapons_reload_b",
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_tec9.png",
|
||||
})
|
||||
|
||||
|
||||
|
||||
minetest.register_craftitem("rangedweapons:tec9", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.25,y=1.25,z=1.50},
|
||||
description = "" ..core.colorize("#35cdff","TEC-9\n") ..core.colorize("#FFFFFF", "Gun damage: 1\n") ..core.colorize("#FFFFFF", "accuracy: 75%\n") ..core.colorize("#FFFFFF", "Gun knockback: 0\n") ..core.colorize("#FFFFFF", "Gun Critical chance: 9%\n") ..core.colorize("#FFFFFF", "Gun Critical efficiency: 1.9x\n") ..core.colorize("#FFFFFF", "Reload delay: 1.0\n") ..core.colorize("#FFFFFF", "Clip size: 50\n") ..core.colorize("#FFFFFF", "Ammunition: 9x19mm parabellum\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.2\n") ..core.colorize("#FFFFFF", "Gun type: machine pistol\n") ..core.colorize("#FFFFFF", "Bullet velocity: 20"),
|
||||
range = 0,
|
||||
inventory_image = "rangedweapons_tec9.png",
|
||||
RW_gun_capabilities = {
|
||||
automatic_gun = 1,
|
||||
gun_damage = {fleshy=1,knockback=0},
|
||||
gun_crit = 9,
|
||||
gun_critEffc = 1.9,
|
||||
suitable_ammo = {{"rangedweapons:9mm",50}},
|
||||
gun_skill = {"mp_skill",80},
|
||||
gun_magazine = "rangedweapons:machinepistol_mag",
|
||||
gun_icon = "rangedweapons_tec9_icon.png",
|
||||
gun_unloaded = "rangedweapons:tec9_r",
|
||||
gun_velocity = 20,
|
||||
gun_accuracy = 75,
|
||||
gun_cooldown = 0.2,
|
||||
gun_reload = 1.0/4,
|
||||
gun_projectiles = 1,
|
||||
has_shell = 1,
|
||||
gun_gravity = 0,
|
||||
gun_durability = 1100,
|
||||
gun_smokeSize = 4,
|
||||
gun_unload_sound = "rangedweapons_handgun_mag_out",
|
||||
gun_sound = "rangedweapons_machine_pistol",
|
||||
},
|
||||
on_secondary_use = function(itemstack, user, pointed_thing)
|
||||
rangedweapons_reload_gun(itemstack, user)
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
|
|
@ -0,0 +1,72 @@
|
|||
|
||||
|
||||
minetest.register_tool("rangedweapons:thompson_r", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.9,y=1.9,z=1.25},
|
||||
description = "",
|
||||
rw_next_reload = "rangedweapons:thompson_rr",
|
||||
load_sound = "rangedweapons_handgun_mag_in",
|
||||
range = 0,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_thompson_rld.png",
|
||||
})
|
||||
minetest.register_tool("rangedweapons:thompson_rr", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.9,y=1.9,z=1.25},
|
||||
description = "",
|
||||
rw_next_reload = "rangedweapons:thompson_rrr",
|
||||
load_sound = "rangedweapons_reload_a",
|
||||
range = 0,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_thompson.png",
|
||||
})
|
||||
minetest.register_tool("rangedweapons:thompson_rrr", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.9,y=1.9,z=1.25},
|
||||
description = "",
|
||||
rw_next_reload = "rangedweapons:thompson",
|
||||
load_sound = "rangedweapons_reload_b",
|
||||
range = 0,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_thompson.png",
|
||||
})
|
||||
-------------------------------------------
|
||||
|
||||
minetest.register_tool("rangedweapons:thompson", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.9,y=1.9,z=1.25},
|
||||
description = "" ..core.colorize("#35cdff","Thompson SMG\n") ..core.colorize("#FFFFFF", "Ranged damage: 4\n") ..core.colorize("#FFFFFF", "accuracy: 75%\n") ..core.colorize("#FFFFFF", "knockback: 1\n") ..core.colorize("#FFFFFF", "Reload delay: 1.4\n") ..core.colorize("#FFFFFF", "Clip size: 30/30\n") ..core.colorize("#FFFFFF", "Critical chance: 8%\n") ..core.colorize("#FFFFFF", "Critical efficiency: 2.0x\n") ..core.colorize("#FFFFFF", "Ammunition: 10mm auto/.45acp\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.1 (full-auto)\n") ..core.colorize("#FFFFFF", "Gun type: smg\n") ..core.colorize("#FFFFFF", "Bullet velocity: 30"),
|
||||
range = 0,
|
||||
inventory_image = "rangedweapons_thompson.png",
|
||||
RW_gun_capabilities = {
|
||||
automatic_gun = 1,
|
||||
gun_damage = {fleshy=4,knockback=1},
|
||||
gun_crit = 8,
|
||||
gun_critEffc = 2.0,
|
||||
suitable_ammo = {{"rangedweapons:10mm",30},{"rangedweapons:45acp",30}},
|
||||
gun_skill = {"smg_skill",65},
|
||||
gun_magazine = "rangedweapons:machinepistol_mag",
|
||||
gun_icon = "rangedweapons_thompson_icon.png",
|
||||
gun_unloaded = "rangedweapons:thompson_r",
|
||||
gun_velocity = 30,
|
||||
gun_accuracy = 75,
|
||||
gun_cooldown = 0.1,
|
||||
gun_reload = 1.4/4,
|
||||
gun_projectiles = 1,
|
||||
has_shell = 1,
|
||||
gun_gravity = 0,
|
||||
gun_durability = 1250,
|
||||
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,
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,68 @@
|
|||
|
||||
minetest.register_tool("rangedweapons:tmp_r", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.15,y=1.15,z=1.15},
|
||||
description = "",
|
||||
range = 0,
|
||||
rw_next_reload = "rangedweapons:tmp_rr",
|
||||
load_sound = "rangedweapons_handgun_mag_in",
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_tmp_rld.png",
|
||||
})
|
||||
|
||||
minetest.register_tool("rangedweapons:tmp_rr", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.15,y=1.15,z=1.15},
|
||||
description = "",
|
||||
range = 0,
|
||||
rw_next_reload = "rangedweapons:tmp_rrr",
|
||||
load_sound = "rangedweapons_reload_a",
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_tmp.png",
|
||||
})
|
||||
|
||||
minetest.register_tool("rangedweapons:tmp_rrr", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.15,y=1.15,z=1.15},
|
||||
description = "",
|
||||
range = 0,
|
||||
rw_next_reload = "rangedweapons:tmp",
|
||||
load_sound = "rangedweapons_reload_b",
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_tmp.png",
|
||||
})
|
||||
|
||||
minetest.register_tool("rangedweapons:tmp", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.15,y=1.15,z=1.15},
|
||||
description = "" ..core.colorize("#35cdff","Steyr T.M.P.\n") ..core.colorize("#FFFFFF", "Gun damage: 1\n") ..core.colorize("#FFFFFF", "accuracy: 64%\n") ..core.colorize("#FFFFFF", "Gun knockback: 0\n") ..core.colorize("#FFFFFF", "Gun Critical chance: 4%\n")..core.colorize("#FFFFFF", "Critical efficiency: 1.85x\n") ..core.colorize("#FFFFFF", "Reload delay: 1.0\n") ..core.colorize("#FFFFFF", "Clip size: 30\n") ..core.colorize("#FFFFFF", "Ammunition: 9x19mm parabellum\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.066(full-auto)\n") ..core.colorize("#FFFFFF", "Gun type: machine pistol\n") ..core.colorize("#FFFFFF", "Bullet velocity: 20"),
|
||||
range = 0,
|
||||
inventory_image = "rangedweapons_tmp.png",
|
||||
RW_gun_capabilities = {
|
||||
automatic_gun = 1,
|
||||
gun_damage = {fleshy=1,knockback=0},
|
||||
gun_crit = 4,
|
||||
gun_critEffc = 1.85,
|
||||
suitable_ammo = {{"rangedweapons:9mm",30}},
|
||||
gun_skill = {"mp_skill",85},
|
||||
gun_magazine = "rangedweapons:machinepistol_mag",
|
||||
gun_icon = "rangedweapons_tmp_icon.png",
|
||||
gun_unloaded = "rangedweapons:tmp_r",
|
||||
gun_velocity = 20,
|
||||
gun_accuracy = 64,
|
||||
gun_cooldown = 0.066,
|
||||
gun_reload = 1.0/4,
|
||||
gun_projectiles = 1,
|
||||
has_shell = 1,
|
||||
gun_gravity = 0,
|
||||
gun_durability = 1200,
|
||||
gun_smokeSize = 4,
|
||||
gun_unload_sound = "rangedweapons_handgun_mag_out",
|
||||
gun_sound = "rangedweapons_machine_pistol",
|
||||
},
|
||||
on_secondary_use = function(itemstack, user, pointed_thing)
|
||||
rangedweapons_reload_gun(itemstack, user)
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
|
||||
|
||||
|
||||
minetest.register_tool("rangedweapons:ump_r", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.9,y=1.9,z=1.25},
|
||||
description = "",
|
||||
rw_next_reload = "rangedweapons:ump_rr",
|
||||
load_sound = "rangedweapons_handgun_mag_in",
|
||||
range = 0,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_ump_rld.png",
|
||||
})
|
||||
minetest.register_tool("rangedweapons:ump_rr", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.9,y=1.9,z=1.25},
|
||||
description = "",
|
||||
rw_next_reload = "rangedweapons:ump_rrr",
|
||||
load_sound = "rangedweapons_reload_a",
|
||||
range = 0,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_ump.png",
|
||||
})
|
||||
minetest.register_tool("rangedweapons:ump_rrr", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.9,y=1.9,z=1.25},
|
||||
description = "",
|
||||
rw_next_reload = "rangedweapons:ump",
|
||||
load_sound = "rangedweapons_reload_b",
|
||||
range = 0,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_ump.png",
|
||||
})
|
||||
-------------------------------------------
|
||||
|
||||
minetest.register_tool("rangedweapons:ump", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.9,y=1.9,z=1.25},
|
||||
description = "" ..core.colorize("#35cdff","UMP-9\n") ..core.colorize("#FFFFFF", "Ranged damage: 5\n") ..core.colorize("#FFFFFF", "accuracy: 79%\n") ..core.colorize("#FFFFFF", "knockback: 1\n") ..core.colorize("#FFFFFF", "Reload delay: 1.25\n") ..core.colorize("#FFFFFF", "Clip size: 25/25\n") ..core.colorize("#FFFFFF", "Critical chance: 9%\n") ..core.colorize("#FFFFFF", "Critical efficiency: 2.0x\n") ..core.colorize("#FFFFFF", "Ammunition: 9x19mm parabellum/.45acp\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.115 (full-auto)\n") ..core.colorize("#FFFFFF", "Gun type: smg\n") ..core.colorize("#FFFFFF", "Bullet velocity: 32"),
|
||||
range = 0,
|
||||
inventory_image = "rangedweapons_ump.png",
|
||||
RW_gun_capabilities = {
|
||||
automatic_gun = 1,
|
||||
gun_damage = {fleshy=5,knockback=1},
|
||||
gun_crit = 9,
|
||||
gun_critEffc = 2.0,
|
||||
suitable_ammo = {{"rangedweapons:9mm",25},{"rangedweapons:45acp",25}},
|
||||
gun_skill = {"smg_skill",60},
|
||||
gun_magazine = "rangedweapons:machinepistol_mag",
|
||||
gun_icon = "rangedweapons_ump_icon.png",
|
||||
gun_unloaded = "rangedweapons:ump_r",
|
||||
gun_velocity = 32,
|
||||
gun_accuracy = 79,
|
||||
gun_cooldown = 0.115,
|
||||
gun_reload = 1.25/4,
|
||||
gun_projectiles = 1,
|
||||
has_shell = 1,
|
||||
gun_gravity = 0,
|
||||
gun_durability = 1500,
|
||||
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,
|
||||
})
|
||||
|
||||
|
|
@ -0,0 +1,72 @@
|
|||
|
||||
|
||||
minetest.register_tool("rangedweapons:uzi_r", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.6,y=1.6,z=1.10},
|
||||
description = "",
|
||||
rw_next_reload = "rangedweapons:uzi_rr",
|
||||
load_sound = "rangedweapons_handgun_mag_in",
|
||||
range = 0,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_uzi_rld.png",
|
||||
})
|
||||
minetest.register_tool("rangedweapons:uzi_rr", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.6,y=1.6,z=1.10},
|
||||
description = "",
|
||||
rw_next_reload = "rangedweapons:uzi_rrr",
|
||||
load_sound = "rangedweapons_reload_a",
|
||||
range = 0,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_uzi.png",
|
||||
})
|
||||
minetest.register_tool("rangedweapons:uzi_rrr", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.6,y=1.6,z=1.10},
|
||||
description = "",
|
||||
rw_next_reload = "rangedweapons:uzi",
|
||||
load_sound = "rangedweapons_reload_b",
|
||||
range = 0,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_uzi.png",
|
||||
})
|
||||
-------------------------------------------
|
||||
|
||||
minetest.register_tool("rangedweapons:uzi", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.6,y=1.6,z=1.10},
|
||||
description = "" ..core.colorize("#35cdff","UZI\n") ..core.colorize("#FFFFFF", "Ranged damage: 2\n") ..core.colorize("#FFFFFF", "accuracy: 72%\n") ..core.colorize("#FFFFFF", "knockback: 0\n") ..core.colorize("#FFFFFF", "Reload delay: 1.2\n") ..core.colorize("#FFFFFF", "Clip size: 40/22\n") ..core.colorize("#FFFFFF", "Critical chance: 5%\n") ..core.colorize("#FFFFFF", "Critical efficiency: 1.9x\n") ..core.colorize("#FFFFFF", "Ammunition: 9x19mm parabellum/.45acp\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.08 (full-auto)\n") ..core.colorize("#FFFFFF", "Gun type: machine pistol\n") ..core.colorize("#FFFFFF", "Bullet velocity: 25"),
|
||||
range = 0,
|
||||
inventory_image = "rangedweapons_uzi.png",
|
||||
RW_gun_capabilities = {
|
||||
automatic_gun = 1,
|
||||
gun_damage = {fleshy=2,knockback=0},
|
||||
gun_crit = 5,
|
||||
gun_critEffc = 1.9,
|
||||
suitable_ammo = {{"rangedweapons:9mm",40},{"rangedweapons:45acp",22}},
|
||||
gun_skill = {"mp_skill",80},
|
||||
gun_magazine = "rangedweapons:machinepistol_mag",
|
||||
gun_icon = "rangedweapons_uzi_icon.png",
|
||||
gun_unloaded = "rangedweapons:uzi_r",
|
||||
gun_velocity = 25,
|
||||
gun_accuracy = 72,
|
||||
gun_cooldown = 0.08,
|
||||
gun_reload = 1.2/4,
|
||||
gun_projectiles = 1,
|
||||
has_shell = 1,
|
||||
gun_gravity = 0,
|
||||
gun_durability = 1500,
|
||||
gun_smokeSize = 4,
|
||||
gun_unload_sound = "rangedweapons_handgun_mag_out",
|
||||
gun_sound = "rangedweapons_machine_pistol",
|
||||
},
|
||||
on_secondary_use = function(itemstack, user, pointed_thing)
|
||||
rangedweapons_reload_gun(itemstack, user)
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue