Created
June 18, 2014 23:38
-
-
Save VanessaE/b7f858b70eef9805da2f to your computer and use it in GitHub Desktop.
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
From 1a9f3e1cf0730cbc9cb65e78f8a2053bd1cb33d3 Mon Sep 17 00:00:00 2001 | |
From: Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | |
Date: Wed, 18 Jun 2014 19:36:38 -0400 | |
Subject: [PATCH] Better raindrop texture, make raindrops not rotate with view | |
pitch (makes shaped raindrops work right in texture packs) | |
--- | |
init.lua | 23 ++++++++++++----------- | |
textures/snowdrift_raindrop.png | Bin 180 -> 414 bytes | |
2 files changed, 12 insertions(+), 11 deletions(-) | |
diff --git a/init.lua b/init.lua | |
index ebd30e7..4e78791 100644 | |
--- a/init.lua | |
+++ b/init.lua | |
@@ -164,17 +164,18 @@ minetest.register_globalstep(function(dtime) | |
end | |
if rain then | |
for drop = 1, DROPS do | |
- minetest.add_particle( | |
- {x=pposx-24+math.random(0,48), y=pposy+16, z=pposz-24+math.random(0,48)}, -- posi | |
- {x=0, y=-8, z=-1}, -- velo | |
- {x=0, y=0, z=0}, -- acce | |
- 4, | |
- 2.8, | |
- false, | |
- "snowdrift_raindrop.png", | |
- player:get_player_name() | |
- ) | |
+ minetest.add_particle({ | |
+ pos = { x=pposx-24+math.random(0,48), y=pposy+16, z=pposz-24+math.random(0,48) }, | |
+ vel = {x=0, y=-16, z=-1}, | |
+ acc = {x=0, y=0, z=0}, | |
+ expirationtime = 4, | |
+ size = 2.8, | |
+ collisiondetection = false, | |
+ vertical = true, | |
+ texture = "snowdrift_raindrop.png", | |
+ playername = player:get_player_name() | |
+ }) | |
end | |
end | |
end | |
-end) | |
\ No newline at end of file | |
+end) | |
diff --git a/textures/snowdrift_raindrop.png b/textures/snowdrift_raindrop.png | |
index 8716f472d57a99afc18a66c4ec907adea41b71c9..c03cd1c4656b3d0f7c89363c714d7b1891b83700 100644 | |
GIT binary patch | |
literal 414 | |
zcmV;P0b%}$P)<h;3K|Lk000e1NJLTq000mG000mO1^@s6AM^iV0004HNkl<ZILpnF | |
z!Ab&Q6ot?HI*p2oEyBW$QEen5h!!Pe8-t=ni<Uh=AoMn~Y|*;jprF+d(yl_NHbIbC | |
zrZA(9GynYew#Y?+qb<F=%Q@%c!nwdi&)KcBe_C~RM|rd`q16rM?&|W@_9%F>Rq1#m | |
zT^;5VVSvZa;3N|lwS=y<rek6)%r_KZTDC3~&re0r&&0(&0n4Uk8~*}4)IGhJH*!fs | |
zYzs~6NQEpjN&pPgvc*_HtsxW7O}XwX&I%1ukD#T93jj6&B*p@K#eGF657r<mv<5L; | |
z0A&FFNWj%oFLtz+@|I?zdqTsD5cncSlNdJuwkpN6Z(6n<3UE9gR7kS`-W`wQuH?3- | |
zxCvl&SoMDZu4Dp$uFrwpr;IDP{n1fU5pn=%VB^q7GA&yJ5Xq**L7;FR5C@LOQTmDO | |
z0JsLAD#bJpy<i~F;Y#wNCwal~xIm0W0QpKWeF=bmhbLpc0jR;HX2K<HaR2}S07*qo | |
IM6N<$f(h%hbN~PV | |
literal 180 | |
zcmeAS@N?(olHy`uVBq!ia0vp^EFjFm1|(O0oL2{=7>k44ofy`glX(f`uqAoByD<C* | |
z!3BGlPX>x`7I;J!Gca%qgD@k*tT_@uLG}_)Usv{fj1r7$ES)iHOo2iso-U3d9M_ZQ | |
zRDHQz&!%$V$bka~Cgh$yE|GnRTX4tsN5ae?AaAX#45E`i-cr|yVwn1ct2{vWKsZo8 | |
NgQu&X%Q~loCIHc?GD83W | |
-- | |
1.9.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment