Suono sparo lanciarazzi + refactoring di massa
parent
260a0539e4
commit
c75f1ad54d
|
@ -180,16 +180,16 @@ function spawn_particles_sphere(pos, particle_texture)
|
|||
local yrand = math.random(-5, 5)
|
||||
]]
|
||||
minetest.add_particlespawner({
|
||||
amount = 250,
|
||||
amount = 80,
|
||||
time = .1,
|
||||
minpos = {x=pos.x,y=pos.y,z=pos.z},
|
||||
maxpos = {x=pos.x,y=pos.y,z=pos.z},
|
||||
minvel = {x=-04, y=-04, z=-04},
|
||||
maxvel = {x=04, y=04, z=04},
|
||||
minacc = {x=0, y=-0.2, z=0},
|
||||
maxacc = {x=0, y=-0.6, z=0},
|
||||
minexptime = .6,
|
||||
maxexptime = .6,
|
||||
minvel = {x=-4, y=-4, z=-4},
|
||||
maxvel = {x=4, y=4, z=4},
|
||||
minacc = {x=0, y=-0.4, z=0},
|
||||
maxacc = {x=0, y=-0.8, z=0},
|
||||
minexptime = .5,
|
||||
maxexptime = .5,
|
||||
minsize = 1,
|
||||
maxsize = 5,
|
||||
collisiondetection = false,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
quake.register_weapon("quake:railgun", {
|
||||
description = "IT'S ONESHOT BABY",
|
||||
mesh = "railgun.obj",
|
||||
mesh = "quake_railgun.obj",
|
||||
tiles = {"quake_railgun.png"},
|
||||
wield_scale = {x=1.3, y=1.3, z=1.3},
|
||||
inventory_image = "quake_railgun_icon.png",
|
||||
|
|
|
@ -2,7 +2,7 @@ quake.register_bullet("quake:rocket",{
|
|||
physical = false,
|
||||
visual = "mesh",
|
||||
visual_size = {x=1, y=1},
|
||||
mesh = "rocket.obj",
|
||||
mesh = "quake_rocket.obj",
|
||||
textures = {
|
||||
"quake_bullet_rocket.png",
|
||||
"quake_bullet_rocket.png",
|
||||
|
@ -11,9 +11,9 @@ quake.register_bullet("quake:rocket",{
|
|||
"quake_bullet_rocket.png",
|
||||
"quake_bullet_rocket.png",
|
||||
},
|
||||
explosion_texture = "rocket_particle.png",
|
||||
explosion_texture = "quake_rocket_particle.png",
|
||||
collisionbox = {0,0,0,0,0,0},
|
||||
speed = 25,
|
||||
speed = 28,
|
||||
damage = 10,
|
||||
explosion_range = 4,
|
||||
durata = 5,
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
|
||||
quake.register_weapon("quake:rocket_launcher", {
|
||||
description = "IT'S ONESHOT BABY",
|
||||
mesh = "quake_rocketlauncher.obj",
|
||||
tiles = {"quake_rocketlauncher.png"},
|
||||
wield_scale = {x=1.3, y=1.3, z=1.3},
|
||||
inventory_image = "quake_rocketlauncher_icon.png",
|
||||
weap_damage = 10,
|
||||
weap_delay = 0.8,
|
||||
weap_sound_shooting = "quake_rocketlauncher_shoot",
|
||||
is_hitscan = false,
|
||||
range = 100,
|
||||
bullet = "quake:rocket",
|
||||
knockback = true
|
||||
|
||||
})
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
quake.register_weapon("quake:shotgun", {
|
||||
description = "Keep your friends close, and your enemies closer",
|
||||
mesh = "railgun.obj",
|
||||
mesh = "quake_railgun.obj",
|
||||
tiles = {"quake_railgun.png"},
|
||||
wield_scale = {x=1.3, y=1.3, z=1.3},
|
||||
inventory_image = "quake_shotgun_icon.png",
|
||||
|
|
2
init.lua
2
init.lua
|
@ -40,7 +40,7 @@ dofile(minetest.get_modpath("quake") .. "/_HUD/scoreboard.lua")
|
|||
dofile(minetest.get_modpath("quake") .. "/_weapons/bullets.lua")
|
||||
dofile(minetest.get_modpath("quake") .. "/_weapons/weapons.lua")
|
||||
dofile(minetest.get_modpath("quake") .. "/_weapons/railgun.lua")
|
||||
dofile(minetest.get_modpath("quake") .. "/_weapons/rocket_launcher.lua")
|
||||
dofile(minetest.get_modpath("quake") .. "/_weapons/shotgun.lua")
|
||||
dofile(minetest.get_modpath("quake") .. "/_weapons/bazooka.lua")
|
||||
dofile(minetest.get_modpath("quake") .. "/_weapons/rocket.lua")
|
||||
quake.init_storage()
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 190 B After Width: | Height: | Size: 190 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 312 B After Width: | Height: | Size: 312 B |
Loading…
Reference in New Issue