forked from thunderdog1138/star_wars
Upload files to 'mods/rangedweapons'
This commit is contained in:
parent
d4452bd6de
commit
544c920a25
|
@ -0,0 +1 @@
|
|||
cc-by-sa 4.0
|
|
@ -0,0 +1,78 @@
|
|||
------------reload--------------------
|
||||
minetest.register_tool("rangedweapons:luger_r", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=0.9,y=0.9,z=1.0},
|
||||
description = "",
|
||||
range = 0,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
rw_next_reload = "rangedweapons:luger_rr",
|
||||
load_sound = "rangedweapons_handgun_mag_in",
|
||||
inventory_image = "rangedweapons_luger.png",
|
||||
})
|
||||
minetest.register_tool("rangedweapons:luger_rr", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=0.9,y=0.9,z=1.0},
|
||||
description = "",
|
||||
range = 0,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
rw_next_reload = "rangedweapons:luger_rrr",
|
||||
load_sound = "rangedweapons_reload_a",
|
||||
inventory_image = "rangedweapons_luger.png",
|
||||
})
|
||||
minetest.register_tool("rangedweapons:luger_rrr", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=0.9,y=0.9,z=1.0},
|
||||
description = "",
|
||||
range = 0,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
rw_next_reload = "rangedweapons:luger",
|
||||
load_sound = "rangedweapons_reload_b",
|
||||
inventory_image = "rangedweapons_luger_rld.png",
|
||||
})
|
||||
minetest.register_tool("rangedweapons:luger_rld", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=0.9,y=0.9,z=1.0},
|
||||
description = "",
|
||||
range = 0,
|
||||
loaded_gun = "rangedweapons:luger",
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_luger_rld.png",
|
||||
})
|
||||
-----------------gun--------------
|
||||
|
||||
minetest.register_tool("rangedweapons:luger", {
|
||||
description = "" ..core.colorize("#35cdff","Luger P08\n") ..core.colorize("#FFFFFF", "Ranged damage: 4\n")..core.colorize("#FFFFFF", "Accuracy: 92%\n") ..core.colorize("#FFFFFF", "Gun knockback: 3\n") ..core.colorize("#FFFFFF", "Critical chance: 10%\n") ..core.colorize("#FFFFFF", "Critical efficiency: 2x\n") ..core.colorize("#FFFFFF", "Ammunition: 9x19mm parabellum\n")..core.colorize("#FFFFFF", "Reload delay: 1.0\n")..core.colorize("#FFFFFF", "Clip size: 8\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.625\n") ..core.colorize("#FFFFFF", "Gun type: Handgun\n") ..core.colorize("#FFFFFF", "Bullet velocity: 20"),
|
||||
range = 0,
|
||||
wield_scale = {x=0.9,y=0.9,z=1.0},
|
||||
inventory_image = "rangedweapons_luger.png",
|
||||
RW_gun_capabilities = {
|
||||
gun_damage = {fleshy=4,knockback=3},
|
||||
gun_crit = 10,
|
||||
gun_critEffc = 2.0,
|
||||
suitable_ammo = {{"rangedweapons:9mm",8}},
|
||||
gun_skill = {"handgun_skill",40},
|
||||
gun_magazine = "rangedweapons:handgun_mag_black",
|
||||
gun_icon = "rangedweapons_luger_icon.png",
|
||||
gun_unloaded = "rangedweapons:luger_r",
|
||||
gun_cooling = "rangedweapons:luger_rld",
|
||||
gun_velocity = 20,
|
||||
gun_accuracy = 92,
|
||||
gun_cooldown = 0.625,
|
||||
gun_reload = 1.0/4,
|
||||
gun_projectiles = 1,
|
||||
has_shell = 1,
|
||||
gun_durability = 600,
|
||||
gun_smokeSize = 5,
|
||||
gun_unload_sound = "rangedweapons_handgun_mag_out",
|
||||
gun_sound = "rangedweapons_glock",
|
||||
},
|
||||
on_secondary_use = function(itemstack, user, pointed_thing)
|
||||
rangedweapons_reload_gun(itemstack, user)
|
||||
return itemstack
|
||||
end,
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
rangedweapons_shoot_gun(itemstack, user)
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
|
||||
|
||||
minetest.register_tool("rangedweapons:m16_r", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.75,y=1.75,z=1.3},
|
||||
description = "",
|
||||
rw_next_reload = "rangedweapons:m16_rr",
|
||||
load_sound = "rangedweapons_handgun_mag_in",
|
||||
range = 0,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_m16_rld.png",
|
||||
})
|
||||
|
||||
minetest.register_tool("rangedweapons:m16_rr", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.75,y=1.75,z=1.3},
|
||||
description = "",
|
||||
rw_next_reload = "rangedweapons:m16_rrr",
|
||||
load_sound = "rangedweapons_rifle_reload_a",
|
||||
range = 0,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_m16.png",
|
||||
})
|
||||
|
||||
minetest.register_tool("rangedweapons:m16_rrr", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.75,y=1.75,z=1.3},
|
||||
description = "",
|
||||
rw_next_reload = "rangedweapons:m16",
|
||||
load_sound = "rangedweapons_rifle_reload_b",
|
||||
range = 0,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_m16.png",
|
||||
})
|
||||
|
||||
|
||||
minetest.register_tool("rangedweapons:m16", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=1.75,y=1.75,z=1.3},
|
||||
description = "" ..core.colorize("#35cdff","m16\n") ..core.colorize("#FFFFFF", "Gun damage: 6\n") ..core.colorize("#FFFFFF", "accuracy: 75%\n") ..core.colorize("#FFFFFF", "Gun knockback: 4\n") ..core.colorize("#FFFFFF", "Gun Critical chance: 11%\n")..core.colorize("#FFFFFF", "Critical efficiency: 2.75x\n") ..core.colorize("#FFFFFF", "Reload delay: 1.0\n") ..core.colorize("#FFFFFF", "Clip size: 20\n") ..core.colorize("#FFFFFF", "Ammunition: 5.56mm rounds\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.067(full-auto)\n") ..core.colorize("#FFFFFF", "Gun type: assault rifle\n")
|
||||
..core.colorize("#FFFFFF", "Enemy penetration: 10%\n") ..core.colorize("#FFFFFF", "Bullet velocity: 35"),
|
||||
range = 0,
|
||||
inventory_image = "rangedweapons_m16.png",
|
||||
RW_gun_capabilities = {
|
||||
automatic_gun = 1,
|
||||
gun_damage = {fleshy=6,knockback=4},
|
||||
gun_crit = 11,
|
||||
gun_critEffc = 2.75,
|
||||
suitable_ammo = {{"rangedweapons:556mm",20}},
|
||||
gun_skill = {"arifle_skill",55},
|
||||
gun_magazine = "rangedweapons:assaultrifle_mag",
|
||||
gun_icon = "rangedweapons_m16_icon.png",
|
||||
gun_unloaded = "rangedweapons:m16_r",
|
||||
gun_velocity = 35,
|
||||
gun_accuracy = 75,
|
||||
gun_cooldown = 0.067,
|
||||
gun_reload = 1.0/4,
|
||||
gun_projectiles = 1,
|
||||
has_shell = 1,
|
||||
gun_gravity = 0,
|
||||
gun_durability = 1350,
|
||||
gun_smokeSize = 5,
|
||||
gun_mob_penetration = 10,
|
||||
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,
|
||||
|
||||
inventory_image = "rangedweapons_m16.png",
|
||||
})
|
|
@ -0,0 +1,53 @@
|
|||
|
||||
minetest.register_tool("rangedweapons:m60_r", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=2.0,y=2.0,z=1.4},
|
||||
description = "",
|
||||
rw_next_reload = "rangedweapons:m60",
|
||||
load_sound = "rangedweapons_rifle_clip_in",
|
||||
range = 0,
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
inventory_image = "rangedweapons_m60_rld.png",
|
||||
})
|
||||
|
||||
minetest.register_tool("rangedweapons:m60", {
|
||||
stack_max= 1,
|
||||
wield_scale = {x=2.0,y=2.0,z=1.4},
|
||||
description = "" ..core.colorize("#35cdff","m60\n") ..core.colorize("#FFFFFF", "Gun damage: 9\n") ..core.colorize("#FFFFFF", "accuracy: 65%\n") ..core.colorize("#FFFFFF", "Gun knockback: 7\n") ..core.colorize("#FFFFFF", "Gun Critical chance: 13%\n")..core.colorize("#FFFFFF", "Critical efficiency: 3.0x\n") ..core.colorize("#FFFFFF", "Reload delay: 1.0\n") ..core.colorize("#FFFFFF", "Clip size: 100\n") ..core.colorize("#FFFFFF", "Ammunition: 7.62mm rounds\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.09(full-auto)\n") ..core.colorize("#FFFFFF", "Gun type: heavy machinegun\n") ..core.colorize("#FFFFFF", "Block penetration: 12%\n")
|
||||
..core.colorize("#FFFFFF", "Enemy penetration: 27%\n") ..core.colorize("#FFFFFF", "Bullet velocity: 64"),
|
||||
range = 0,
|
||||
inventory_image = "rangedweapons_m60.png",
|
||||
RW_gun_capabilities = {
|
||||
automatic_gun = 1,
|
||||
gun_damage = {fleshy=9,knockback=7},
|
||||
gun_crit = 13,
|
||||
gun_critEffc = 3.0,
|
||||
suitable_ammo = {{"rangedweapons:762mm",100}},
|
||||
gun_skill = {"heavy_skill",60},
|
||||
gun_icon = "rangedweapons_m60_icon.png",
|
||||
gun_unloaded = "rangedweapons:m60_r",
|
||||
gun_velocity = 64,
|
||||
gun_accuracy = 65,
|
||||
gun_cooldown = 0.09,
|
||||
gun_reload = 1.0,
|
||||
gun_projectiles = 1,
|
||||
has_shell = 1,
|
||||
gun_gravity = 0,
|
||||
gun_durability = 2750,
|
||||
gun_smokeSize = 5,
|
||||
gun_mob_penetration = 27,
|
||||
gun_node_penetration = 12,
|
||||
gun_unload_sound = "rangedweapons_rifle_clip_out",
|
||||
gun_sound = "rangedweapons_machinegun",
|
||||
},
|
||||
on_secondary_use = function(itemstack, user, pointed_thing)
|
||||
rangedweapons_reload_gun(itemstack, user)
|
||||
return itemstack
|
||||
end,
|
||||
|
||||
inventory_image = "rangedweapons_m60.png",
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue