From c9133337a255a69781981e40b3687a3e7601fd25 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Mon, 28 Jul 2014 19:26:01 -0400 Subject: [PATCH] use four randomly-chosen smoke textures derived from real smoke, also widen the particle size range makes for a much more varied smoke pattern --- fake_fire/modfiles/abms.lua | 5 +++-- fake_fire/textures/smoke_particle.png | Bin 200 -> 0 bytes fake_fire/textures/smoke_particle_1.png | Bin 0 -> 690 bytes fake_fire/textures/smoke_particle_2.png | Bin 0 -> 647 bytes fake_fire/textures/smoke_particle_3.png | Bin 0 -> 678 bytes fake_fire/textures/smoke_particle_4.png | Bin 0 -> 674 bytes 6 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 fake_fire/textures/smoke_particle.png create mode 100644 fake_fire/textures/smoke_particle_1.png create mode 100644 fake_fire/textures/smoke_particle_2.png create mode 100644 fake_fire/textures/smoke_particle_3.png create mode 100644 fake_fire/textures/smoke_particle_4.png diff --git a/fake_fire/modfiles/abms.lua b/fake_fire/modfiles/abms.lua index 9951ae9..cef987a 100644 --- a/fake_fire/modfiles/abms.lua +++ b/fake_fire/modfiles/abms.lua @@ -57,6 +57,7 @@ minetest.register_abm({ interval = 1, chance = 2, action = function(pos, node) + local image_number = math.random(4) minetest.add_particlespawner( 8, --particles amount 1, --time @@ -68,10 +69,10 @@ minetest.register_abm({ {x=0,y=0,z=0}, --max. particle acceleration 0.5, --min. time particle expiration 3, --max. time particle expiration - 8, --min. particle size + 2, --min. particle size 10, --max. particle size false, --collision detection - "smoke_particle.png" --textures + "smoke_particle_"..image_number..".png" --textures ) end, }) diff --git a/fake_fire/textures/smoke_particle.png b/fake_fire/textures/smoke_particle.png deleted file mode 100644 index dc961dc3ff6ac2fd90d4ba66eb4c211387c4e142..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 200 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqEX7WqAsj$Z!;#Vf$t+;M#&^iv)NdZ@1zO!wZ w`PJ~4EQ5oPilWkFm1|MwKX@qpt^UmGs~=b&cJ|9bpi>w;UHx3vIVCg!0ROv4xc~qF diff --git a/fake_fire/textures/smoke_particle_1.png b/fake_fire/textures/smoke_particle_1.png new file mode 100644 index 0000000000000000000000000000000000000000..9605eb24f2809164437d645f928b8e30e035e0f2 GIT binary patch literal 690 zcmV;j0!{siP)X$N-rP51JLDL0&JV|N`1Ab_u0Hyg!I!tb2_C}X&N9EgEb}D^5`#eR zN>}x=7CSv%C8b#Mkk?@t9wZ6hH>@Xss%;dDZ1 zlOJ9d{H;9Xy$qaLcBsA6T4fj}rg5QbrPfM!nCF>gS#Y;mBut4Q2Zp~A5HT}~6;d8Z zX~8kNDIr9}A?1j_5c6? literal 0 HcmV?d00001 diff --git a/fake_fire/textures/smoke_particle_2.png b/fake_fire/textures/smoke_particle_2.png new file mode 100644 index 0000000000000000000000000000000000000000..df57d1e2d94bc814b479d82cc9cfe3fcce777fb8 GIT binary patch literal 647 zcmV;20(kw2P)ALP>UQPCiB}f@zE8e(?VI)9`WZ!@ z2a0N@h@`4Qrta4h)mcU!1#ST-z!zVBJyWr_dhag;xR;V%oKh-?5D|dT+KSf3VKt7= zZQR&cd)UEH{Ftgf?e6C0m?{Ef1}chI1B4#IxZ14|@k+W+Z{Gar2fzCHR|VlnskKff zgQ#lu-pNb=)QsK|6~)xJ--FDY3}!F7mp^^}*j%SW9aP0zZ%FKot0IU95uM%>H6=3< z5xh7F9Tjt#ikp}!s)iRwtx$?HpU+Vh$oyxu z8oxVr`nBH`;M}4K$jyg$aQX68 zIe-46tw{O4)N-Sgde6P2yOTX+xwDX+<&xGqt&Ll)wck#^`TF9(U$}VTQ(s?y;$`#l z&TKZRk?gkBD5bjBTK_e*U$z(9zrO$8yZt}`fD0dgqH9MUf9CMvLo-nuGkUGHPK*0y h68FxYeLHwmcmQQE3i^8> znS1Yd&gpI!HwK9itaVrM>uQ>KMYnH%M~F-_V{p$@GKZn`D_6EVMO-3s|KpGHpLzb< zeCyWN!`AlvO;vpd#5MP*0?K?grJAfn_>`2^T0Oma^OMC7ckl6Kz_;Ig&)uuL@0C*C zSJPcpwTy`F!D5EY$PBL@5v%3uY+3tHhhKbl@iO4S@yRt12daA2-7_;`X2=(?DuhR} zw~Eu}=YD>9@o;N8y{`apbabpFKLGG{9mmWFLv zKt$dk_-<`AA_8UwLSSqSgBE~5>m3>dDWEWScD8qJ?BRw!I60xW{#NV0ml1^&AQA~c zRX_l(HAFbvH)I(B73F+uMq6F1W+bnBgb4`>5aCEChEg!riUKw#Kb5v zGt=wnVYQAxZvY4(v2uTLXMzM&3seQz6dOSPWu@3E6K5dyymuf0HG?DJt%2mGK@vm- zMG%`6+I(yNht;uq_ueuy)r@tl=;Mg)o)JkPp{mGCPz1;XsT>CO-rJd7E|&pdj7TRb zwT`IGmjHs4L4*dRs2MUhgb4>ymzj7j2M3?FajZ|)>-wnH_RIsd6w}#sHZxWAh&71b zT17Y*kz`_>;P3nUAFc!d4i7(HTwbn@mh1H|W9`3+$nh}PF^R_{&jHlQWT-%{-D3p# zw21unpJ#eicYpkO(#COD)wYEY_te%~QPss)UmpB<=gz&?`u~^y26azrmM~mQ@&Et; M07*qoM6N<$g4IMj82|tP literal 0 HcmV?d00001 diff --git a/fake_fire/textures/smoke_particle_4.png b/fake_fire/textures/smoke_particle_4.png new file mode 100644 index 0000000000000000000000000000000000000000..c6aec1281ecaf82de985768fb092485c2e17fee6 GIT binary patch literal 674 zcmV;T0$u%yP)Al}M zGp~zVgLUD%o6RuK%QMD*a`OGDyZgNN?h!G4eEXw`|B3y3IQ{O#(tTgb_gjlaasR_> zeP)=MSuMqjq`yk7FK&MDUVCl9>FE#NT3mPIRz$olQODV=dns!JLlkp&p>w5vi-?Dn z@@xHP!FoNt;l_t8^%iDjKA#Jy%G|*WOdtRTGcLOso7lXl0QbLrP>6h|O9vQbHqLN2 zdJicQD~2+O4BQG{+zsDFT&e)k;?3UsjZluemv=F9T5F_4M4+CS8JN+dVGX?aUh(p7 zJvutBt@j&kP@XZj3f~tB@wBTWfm3(b+uZJ<2YVjE|=pljA+YAM$mg8 zgu9^xy(%FhthGk1UTW_#K=Z{CG6NDyDb%4NVA^cxO$c3JL=Q|NF>0-Kf4N-lMGsYX zYrWIjgqu^`8D}%5&1TErf=nSKB*U$HasN}1Q!S2{f&m$cUKN-b2ww|{@F8geq5cM_p`HeixlQgO0)>3*2qXm5j}vd4(`azRu!Pu@nzvD=f6L__w}*8_KkP%9owg$ z9O|pPM^~oJbbXroRp3hNeOfH$H8amQQ+u=+>yt0OypsTb0|EOBla8vp