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:
LoneWolfHT 2021-05-04 10:05:14 -07:00 committed by GitHub
parent 6700266ff6
commit 6d5f046d41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

View file

@ -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