Fix texurepacks being able to hide grenade smoke (#876)
* Fix texurepacks being able to hide grenade smoke * Update smoke texture
This commit is contained in:
parent
6700266ff6
commit
6d5f046d41
2 changed files with 11 additions and 11 deletions
|
@ -120,24 +120,24 @@ grenades.register_grenade("grenades:smoke", {
|
||||||
|
|
||||||
minetest.after(SMOKE_GRENADE_TIME, minetest.sound_stop, hiss)
|
minetest.after(SMOKE_GRENADE_TIME, minetest.sound_stop, hiss)
|
||||||
|
|
||||||
for i = 0, 5, 1 do
|
for i = 0, 4, 1 do
|
||||||
minetest.add_particlespawner({
|
minetest.add_particlespawner({
|
||||||
amount = 40,
|
amount = 40,
|
||||||
time = SMOKE_GRENADE_TIME + 3,
|
time = SMOKE_GRENADE_TIME + 3,
|
||||||
minpos = vector.subtract(pos, 2),
|
minpos = vector.new(pos.x-4, pos.y+1, pos.z-4),
|
||||||
maxpos = vector.add(pos, 2),
|
maxpos = vector.new(pos.x+4, pos.y+2, pos.z+4),
|
||||||
minvel = {x = 0, y = 2, z = 0},
|
minvel = vector.new(-1, 0, -1),
|
||||||
maxvel = {x = 0, y = 3, z = 0},
|
maxvel = vector.new(1, 0.3, 1),
|
||||||
minacc = {x = 1, y = 0.2, z = 1},
|
minacc = vector.new(-1, 0, -1),
|
||||||
maxacc = {x = 1, y = 0.2, z = 1},
|
maxacc = vector.new(1, 1, 1),
|
||||||
minexptime = 1,
|
minexptime = 1,
|
||||||
maxexptime = 1,
|
maxexptime = 2,
|
||||||
minsize = 125,
|
minsize = 50,
|
||||||
maxsize = 140,
|
maxsize = 40,
|
||||||
collisiondetection = false,
|
collisiondetection = false,
|
||||||
collision_removal = false,
|
collision_removal = false,
|
||||||
vertical = false,
|
vertical = false,
|
||||||
texture = "grenades_smoke.png",
|
texture = "grenades_smoke.png^[noalpha^[colorize:#" .. math.random(7, 9)*111 ..":255^grenades_smoke.png",
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 145 B After Width: | Height: | Size: 175 B |
Loading…
Reference in a new issue