-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
2,083 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
minetest.register_tool("rangedweapons:420blaster", { | ||
stack_max= 1, | ||
wield_scale = {x=2.0,y=2.0,z=1.75}, | ||
description = "" ..core.colorize("#35cdff","weed Shooter\n") ..core.colorize("#FFFFFF", "Ranged damage: 10\n") ..core.colorize("#FFFFFF", "accuracy: 100%\n") ..core.colorize("#FFFFFF", "projectiles: 6\n") ..core.colorize("#FFFFFF", "knockback: 0\n") ..core.colorize("#FFFFFF", "Critical chance: 8%\n") ..core.colorize("#FFFFFF", "Critical efficiency: 2.2x\n") ..core.colorize("#FFFFFF", "Power usage: 30\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.1 (full-auto) \n") ..core.colorize("#FFFFFF", "Enemy penetration: 40%\n") ..core.colorize("#FFFFFF", "Gun type: magic gun\n") ..core.colorize("#FFFFFF", "Bullet velocity: 60"), | ||
range = 0, | ||
inventory_image = "rangedweapons_420blaster.png", | ||
RW_powergun_capabilities = { | ||
automatic_gun = 1, | ||
power_damage = {fleshy=12,knockback=0}, | ||
power_crit = 8, | ||
power_critEffc = 2.2, | ||
power_skill = {"",1}, | ||
power_cooling = "rangedweapons:420blaster", | ||
power_velocity = 55, | ||
power_accuracy = 40, | ||
power_cooldown = 0.1, | ||
power_projectiles = 1, | ||
power_durability = 2000, | ||
power_sound = "rangedweapons_420", | ||
power_glass_breaking = 1, | ||
power_door_breaking = 1, | ||
power_dps = 0, | ||
power_mob_penetration = 40, | ||
power_node_penetration = 0, | ||
power_dps = 0, | ||
power_consumption = 30, | ||
power_entity = "rangedweapons:shot_bullet", | ||
power_visual = "sprite", | ||
power_texture = "rangedweapons_weed.png", | ||
power_projectile_size = 0.005, | ||
power_projectiles = 1, | ||
has_sparks = 0, | ||
ignites_explosives = 1, | ||
}, | ||
on_use = function(itemstack, user, pointed_thing) | ||
rangedweapons_shoot_powergun(itemstack, user) | ||
return itemstack | ||
end, | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
|
||
|
||
minetest.register_tool("rangedweapons:aa12_r", { | ||
stack_max= 1, | ||
wield_scale = {x=1.9,y=1.9,z=1.4}, | ||
description = "", | ||
rw_next_reload = "rangedweapons:aa12_rr", | ||
load_sound = "rangedweapons_rifle_clip_in", | ||
range = 0, | ||
groups = {not_in_creative_inventory = 1}, | ||
inventory_image = "rangedweapons_aa12_rld.png", | ||
}) | ||
minetest.register_tool("rangedweapons:aa12_rr", { | ||
stack_max= 1, | ||
wield_scale = {x=1.9,y=1.9,z=1.4}, | ||
description = "", | ||
rw_next_reload = "rangedweapons:aa12_rrr", | ||
load_sound = "rangedweapons_reload_a", | ||
range = 0, | ||
groups = {not_in_creative_inventory = 1}, | ||
inventory_image = "rangedweapons_aa12.png", | ||
}) | ||
minetest.register_tool("rangedweapons:aa12_rrr", { | ||
stack_max= 1, | ||
wield_scale = {x=1.9,y=1.9,z=1.4}, | ||
description = "", | ||
rw_next_reload = "rangedweapons:aa12", | ||
load_sound = "rangedweapons_reload_b", | ||
range = 0, | ||
groups = {not_in_creative_inventory = 1}, | ||
inventory_image = "rangedweapons_aa12.png", | ||
}) | ||
------------------------------------------- | ||
|
||
minetest.register_tool("rangedweapons:aa12", { | ||
stack_max= 1, | ||
wield_scale = {x=1.9,y=1.9,z=1.4}, | ||
description = "" ..core.colorize("#35cdff","AA-12\n") ..core.colorize("#FFFFFF", "Ranged damage: 1\n") ..core.colorize("#FFFFFF", "projectiles: 5\n") ..core.colorize("#FFFFFF", "Gun gravity: 4\n") ..core.colorize("#FFFFFF", "accuracy: 40%\n") ..core.colorize("#FFFFFF", "knockback: 5\n") ..core.colorize("#FFFFFF", "Reload delay: 1.5\n") ..core.colorize("#FFFFFF", "Clip size: 20\n") ..core.colorize("#FFFFFF", "Critical chance: 5%\n") ..core.colorize("#FFFFFF", "Critical efficiency: 2.0x\n") ..core.colorize("#FFFFFF", "Ammunition: 12 gauge shell\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.2 (full-auto)\n") ..core.colorize("#FFFFFF", "Gun type: shotgun\n") ..core.colorize("#FFFFFF", "Bullet velocity: 25"), | ||
range = 0, | ||
inventory_image = "rangedweapons_aa12.png", | ||
RW_gun_capabilities = { | ||
automatic_gun = 1, | ||
gun_damage = {fleshy=1,knockback=5}, | ||
gun_crit = 5, | ||
gun_critEffc = 2.0, | ||
suitable_ammo = {{"rangedweapons:shell",20}}, | ||
gun_skill = {"shotgun_skill",40}, | ||
gun_magazine = "rangedweapons:drum_mag", | ||
gun_icon = "rangedweapons_aa12_icon.png", | ||
gun_unloaded = "rangedweapons:aa12_r", | ||
gun_velocity = 25, | ||
gun_accuracy = 40, | ||
gun_cooldown = 0.2, | ||
gun_reload = 1.5/4, | ||
gun_projectiles = 1, | ||
has_shell = 1, | ||
gun_durability = 750, | ||
gun_smokeSize = 8, | ||
gun_door_breaking = 1, | ||
gun_projectiles = 5, | ||
gun_gravity = 4, | ||
gun_unload_sound = "rangedweapons_rifle_clip_out", | ||
gun_sound = "rangedweapons_shotgun_shot", | ||
}, | ||
on_secondary_use = function(itemstack, user, pointed_thing) | ||
rangedweapons_reload_gun(itemstack, user) | ||
return itemstack | ||
end, | ||
}) | ||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
|
||
|
||
minetest.register_tool("rangedweapons:ak12_r", { | ||
stack_max= 1, | ||
wield_scale = {x=1.75,y=1.75,z=1.3}, | ||
description = "", | ||
rw_next_reload = "rangedweapons:ak12_rr", | ||
load_sound = "rangedweapons_rifle_clip_in", | ||
range = 0, | ||
groups = {not_in_creative_inventory = 1}, | ||
inventory_image = "rangedweapons_ak12_rld.png", | ||
}) | ||
|
||
minetest.register_tool("rangedweapons:ak12_rr", { | ||
stack_max= 1, | ||
wield_scale = {x=1.75,y=1.75,z=1.3}, | ||
description = "", | ||
rw_next_reload = "rangedweapons:ak12_rrr", | ||
load_sound = "rangedweapons_rifle_reload_a", | ||
range = 0, | ||
groups = {not_in_creative_inventory = 1}, | ||
inventory_image = "rangedweapons_ak12.png", | ||
}) | ||
|
||
minetest.register_tool("rangedweapons:ak12_rrr", { | ||
stack_max= 1, | ||
wield_scale = {x=1.75,y=1.75,z=1.3}, | ||
description = "", | ||
rw_next_reload = "rangedweapons:ak12", | ||
load_sound = "rangedweapons_rifle_reload_b", | ||
range = 0, | ||
groups = {not_in_creative_inventory = 1}, | ||
inventory_image = "rangedweapons_ak12.png", | ||
}) | ||
|
||
|
||
minetest.register_tool("rangedweapons:ak12", { | ||
stack_max= 1, | ||
wield_scale = {x=1.75,y=1.75,z=1.3}, | ||
description = "" ..core.colorize("#35cdff","AK-12\n") ..core.colorize("#FFFFFF", "Gun damage: 7\n") ..core.colorize("#FFFFFF", "accuracy: 77%\n") ..core.colorize("#FFFFFF", "Gun knockback: 5\n") ..core.colorize("#FFFFFF", "Gun Critical chance: 12%\n")..core.colorize("#FFFFFF", "Critical efficiency: 2.9x\n") ..core.colorize("#FFFFFF", "Reload delay: 1.4\n") ..core.colorize("#FFFFFF", "Clip size: 30\n") ..core.colorize("#FFFFFF", "Ammunition: 7.62mm rounds\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.10(full-auto)\n") ..core.colorize("#FFFFFF", "Gun type: assault rifle\n") ..core.colorize("#FFFFFF", "Block penetration: 5%\n") | ||
..core.colorize("#FFFFFF", "Enemy penetration: 15%\n") ..core.colorize("#FFFFFF", "Bullet velocity: 40"), | ||
range = 0, | ||
inventory_image = "rangedweapons_ak12.png", | ||
RW_gun_capabilities = { | ||
automatic_gun = 1, | ||
gun_damage = {fleshy=7,knockback=5}, | ||
gun_crit = 12, | ||
gun_critEffc = 2.9, | ||
suitable_ammo = {{"rangedweapons:762mm",30}}, | ||
gun_skill = {"arifle_skill",50}, | ||
gun_magazine = "rangedweapons:assaultrifle_mag", | ||
gun_icon = "rangedweapons_ak12_icon.png", | ||
gun_unloaded = "rangedweapons:ak12_r", | ||
gun_velocity = 40, | ||
gun_accuracy = 77, | ||
gun_cooldown = 0.1, | ||
gun_reload = 1.4/4, | ||
gun_projectiles = 1, | ||
has_shell = 1, | ||
gun_gravity = 0, | ||
gun_durability = 1200, | ||
gun_smokeSize = 5, | ||
gun_mob_penetration = 15, | ||
gun_node_penetration = 5, | ||
gun_unload_sound = "rangedweapons_rifle_clip_out", | ||
gun_sound = "rangedweapons_ak", | ||
}, | ||
on_secondary_use = function(itemstack, user, pointed_thing) | ||
rangedweapons_reload_gun(itemstack, user) | ||
return itemstack | ||
end, | ||
|
||
inventory_image = "rangedweapons_ak12.png", | ||
}) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
|
||
|
||
minetest.register_tool("rangedweapons:ak47_r", { | ||
stack_max= 1, | ||
wield_scale = {x=1.75,y=1.75,z=1.3}, | ||
description = "", | ||
rw_next_reload = "rangedweapons:ak47_rr", | ||
load_sound = "rangedweapons_rifle_clip_in", | ||
range = 0, | ||
groups = {not_in_creative_inventory = 1}, | ||
inventory_image = "rangedweapons_ak47_rld.png", | ||
}) | ||
|
||
minetest.register_tool("rangedweapons:ak47_rr", { | ||
stack_max= 1, | ||
wield_scale = {x=1.75,y=1.75,z=1.3}, | ||
description = "", | ||
rw_next_reload = "rangedweapons:ak47_rrr", | ||
load_sound = "rangedweapons_rifle_reload_a", | ||
range = 0, | ||
groups = {not_in_creative_inventory = 1}, | ||
inventory_image = "rangedweapons_ak47.png", | ||
}) | ||
|
||
minetest.register_tool("rangedweapons:ak47_rrr", { | ||
stack_max= 1, | ||
wield_scale = {x=1.75,y=1.75,z=1.3}, | ||
description = "", | ||
rw_next_reload = "rangedweapons:ak47", | ||
load_sound = "rangedweapons_rifle_reload_b", | ||
range = 0, | ||
groups = {not_in_creative_inventory = 1}, | ||
inventory_image = "rangedweapons_ak47.png", | ||
}) | ||
|
||
|
||
minetest.register_tool("rangedweapons:ak47", { | ||
stack_max= 1, | ||
wield_scale = {x=1.75,y=1.75,z=1.3}, | ||
description = "" ..core.colorize("#35cdff","AK-47\n") ..core.colorize("#FFFFFF", "Gun damage: 7\n") ..core.colorize("#FFFFFF", "accuracy: 77%\n") ..core.colorize("#FFFFFF", "Gun knockback: 5\n") ..core.colorize("#FFFFFF", "Gun Critical chance: 12%\n")..core.colorize("#FFFFFF", "Critical efficiency: 2.9x\n") ..core.colorize("#FFFFFF", "Reload delay: 1.4\n") ..core.colorize("#FFFFFF", "Clip size: 30\n") ..core.colorize("#FFFFFF", "Ammunition: 7.62mm rounds\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.10(full-auto)\n") ..core.colorize("#FFFFFF", "Gun type: assault rifle\n") ..core.colorize("#FFFFFF", "Block penetration: 5%\n") | ||
..core.colorize("#FFFFFF", "Enemy penetration: 15%\n") ..core.colorize("#FFFFFF", "Bullet velocity: 40"), | ||
range = 0, | ||
inventory_image = "rangedweapons_ak47.png", | ||
RW_gun_capabilities = { | ||
automatic_gun = 1, | ||
gun_damage = {fleshy=7,knockback=5}, | ||
gun_crit = 12, | ||
gun_critEffc = 2.9, | ||
suitable_ammo = {{"rangedweapons:762mm",30}}, | ||
gun_skill = {"arifle_skill",50}, | ||
gun_magazine = "rangedweapons:assaultrifle_mag", | ||
gun_icon = "rangedweapons_ak47_icon.png", | ||
gun_unloaded = "rangedweapons:ak47_r", | ||
gun_velocity = 40, | ||
gun_accuracy = 77, | ||
gun_cooldown = 0.1, | ||
gun_reload = 1.4/4, | ||
gun_projectiles = 1, | ||
has_shell = 1, | ||
gun_gravity = 0, | ||
gun_durability = 1200, | ||
gun_smokeSize = 5, | ||
gun_mob_penetration = 15, | ||
gun_node_penetration = 5, | ||
gun_unload_sound = "rangedweapons_rifle_clip_out", | ||
gun_sound = "rangedweapons_ak", | ||
}, | ||
on_secondary_use = function(itemstack, user, pointed_thing) | ||
rangedweapons_reload_gun(itemstack, user) | ||
return itemstack | ||
end, | ||
|
||
inventory_image = "rangedweapons_ak47.png", | ||
}) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
|
||
|
||
minetest.register_tool("rangedweapons:ak74u_r", { | ||
stack_max= 1, | ||
wield_scale = {x=1.75,y=1.75,z=1.3}, | ||
description = "", | ||
rw_next_reload = "rangedweapons:ak74u_rr", | ||
load_sound = "rangedweapons_rifle_clip_in", | ||
range = 0, | ||
groups = {not_in_creative_inventory = 1}, | ||
inventory_image = "rangedweapons_ak74u_rld.png", | ||
}) | ||
|
||
minetest.register_tool("rangedweapons:ak74u_rr", { | ||
stack_max= 1, | ||
wield_scale = {x=1.75,y=1.75,z=1.3}, | ||
description = "", | ||
rw_next_reload = "rangedweapons:ak74u_rrr", | ||
load_sound = "rangedweapons_rifle_reload_a", | ||
range = 0, | ||
groups = {not_in_creative_inventory = 1}, | ||
inventory_image = "rangedweapons_ak74u.png", | ||
}) | ||
|
||
minetest.register_tool("rangedweapons:ak74u_rrr", { | ||
stack_max= 1, | ||
wield_scale = {x=1.75,y=1.75,z=1.3}, | ||
description = "", | ||
rw_next_reload = "rangedweapons:ak74u", | ||
load_sound = "rangedweapons_rifle_reload_b", | ||
range = 0, | ||
groups = {not_in_creative_inventory = 1}, | ||
inventory_image = "rangedweapons_ak74u.png", | ||
}) | ||
|
||
|
||
minetest.register_tool("rangedweapons:ak74u", { | ||
stack_max= 1, | ||
wield_scale = {x=1.75,y=1.75,z=1.3}, | ||
description = "" ..core.colorize("#35cdff","AK 74u\n") ..core.colorize("#FFFFFF", "Gun damage: 7\n") ..core.colorize("#FFFFFF", "accuracy: 77%\n") ..core.colorize("#FFFFFF", "Gun knockback: 5\n") ..core.colorize("#FFFFFF", "Gun Critical chance: 12%\n")..core.colorize("#FFFFFF", "Critical efficiency: 2.9x\n") ..core.colorize("#FFFFFF", "Reload delay: 1.4\n") ..core.colorize("#FFFFFF", "Clip size: 30\n") ..core.colorize("#FFFFFF", "Ammunition: 7.62mm rounds\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.10(full-auto)\n") ..core.colorize("#FFFFFF", "Gun type: assault rifle\n") ..core.colorize("#FFFFFF", "Block penetration: 5%\n") | ||
..core.colorize("#FFFFFF", "Enemy penetration: 15%\n") ..core.colorize("#FFFFFF", "Bullet velocity: 40"), | ||
range = 0, | ||
inventory_image = "rangedweapons_ak74u.png", | ||
RW_gun_capabilities = { | ||
automatic_gun = 1, | ||
gun_damage = {fleshy=7,knockback=5}, | ||
gun_crit = 12, | ||
gun_critEffc = 2.9, | ||
suitable_ammo = {{"rangedweapons:762mm",30}}, | ||
gun_skill = {"arifle_skill",50}, | ||
gun_magazine = "rangedweapons:assaultrifle_mag", | ||
gun_icon = "rangedweapons_ak74u_icon.png", | ||
gun_unloaded = "rangedweapons:ak74u_r", | ||
gun_velocity = 40, | ||
gun_accuracy = 77, | ||
gun_cooldown = 0.1, | ||
gun_reload = 1.4/4, | ||
gun_projectiles = 1, | ||
has_shell = 1, | ||
gun_gravity = 0, | ||
gun_durability = 1200, | ||
gun_smokeSize = 5, | ||
gun_mob_penetration = 15, | ||
gun_node_penetration = 5, | ||
gun_unload_sound = "rangedweapons_rifle_clip_out", | ||
gun_sound = "rangedweapons_ak", | ||
}, | ||
on_secondary_use = function(itemstack, user, pointed_thing) | ||
rangedweapons_reload_gun(itemstack, user) | ||
return itemstack | ||
end, | ||
|
||
inventory_image = "rangedweapons_ak74u.png", | ||
}) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
minetest.register_craftitem("rangedweapons:blue_ray_visual", { | ||
wield_scale = {x=1.75,y=1.75,z=1.75}, | ||
inventory_image = "rangedweapons_blue_ray.png", | ||
}) | ||
|
||
minetest.register_tool("rangedweapons:alienblaster", { | ||
stack_max= 1, | ||
wield_scale = {x=1.15,y=1.15,z=1.15}, | ||
description = "" ..core.colorize("#35cdff","Alien blaster\n") ..core.colorize("#FFFFFF", "Ranged damage: 15\n") ..core.colorize("#FFFFFF", "accuracy: 100%\n") ..core.colorize("#FFFFFF", "knockback: 0\n") ..core.colorize("#FFFFFF", "Critical chance: 10%\n") ..core.colorize("#FFFFFF", "Critical efficiency: 2.0x\n") ..core.colorize("#FFFFFF", "Power usage: 10\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.3\n") ..core.colorize("#FFFFFF", "Enemy penetration: 50%\n") ..core.colorize("#FFFFFF", "Gun type: power pistol\n") ..core.colorize("#FFFFFF", "Bullet velocity: 65"), | ||
range = 0, | ||
inventory_image = "rangedweapons_alienblaster.png", | ||
RW_powergun_capabilities = { | ||
power_damage = {fleshy=15,knockback=0}, | ||
power_crit = 10, | ||
power_critEffc = 2.0, | ||
power_skill = {"",1}, | ||
power_cooling = "rangedweapons:alienblaster", | ||
power_velocity = 65, | ||
power_accuracy = 100, | ||
power_cooldown = 0.3, | ||
power_projectiles = 1, | ||
power_durability = 5000, | ||
power_sound = "rangedweapons_ray", | ||
power_glass_breaking = 1, | ||
power_door_breaking = 1, | ||
power_dps = 0, | ||
power_mob_penetration = 50, | ||
power_node_penetration = 0, | ||
power_dps = 0, | ||
power_consumption = 10, | ||
power_entity = "rangedweapons:shot_bullet", | ||
power_visual = "wielditem", | ||
power_texture = "rangedweapons:blue_ray_visual", | ||
power_projectile_size = 0.1, | ||
has_sparks = 0, | ||
ignites_explosives = 1, | ||
}, | ||
on_use = function(itemstack, user, pointed_thing) | ||
rangedweapons_shoot_powergun(itemstack, user) | ||
return itemstack | ||
end, | ||
|
||
}) | ||
|
||
|
||
|
Oops, something went wrong.