Skip to content

Commit 0bcc40e

Browse files
committed
particles | weather effects tweaks
1 parent 189dd0a commit 0bcc40e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

config/atmos/atmo_4.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ sunflarecolour 0 0 0
3434
showrainbow $FALSE
3535
windintensity 2
3636
rainintensity 4
37-
rainvelocity 7
37+
rainvelocity 10
3838
raincolor 85 85 102
3939
snowintensity 0
4040
snowvelocity 0
4141
snowcolor 0
4242
apocalypseintensity 0
4343
apocalypsevelocity 0
4444
apocalypsecolor 0
45-
lightningfrequency 1
45+
lightningfrequency 4
4646
lightningcolor 150 150 255
4747
shutdaytimelights $FALSE

config/atmos/atmo_5.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ snowcolor 0
4242
apocalypseintensity 3
4343
apocalypsevelocity 2
4444
apocalypsecolor 255 149 0
45-
lightningfrequency 5
45+
lightningfrequency 7
4646
lightningcolor 255 102 34
4747
shutdaytimelights $FALSE
4848

src/engine/renderparticles.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ void updateWeather()
14811481
if(rainintensity) spawnRain();
14821482
if(snowintensity) spawnSnow();
14831483
if(apocalypseintensity) spawnApocalypse();
1484-
if(lightningfrequency && rndevent(35, 750 - (lightningfrequency * 50))) popLightning();
1484+
if(lightningfrequency && rndevent(1, 1000 - (lightningfrequency * 95))) popLightning();
14851485
}
14861486

14871487
VARR(showrainbow, 0, 0, 1);
@@ -1634,7 +1634,7 @@ static void makeparticles(entity &e)
16341634
case 11: // rocks debris: attr 2:<probability>
16351635
{
16361636
if(!canemitparticles()) return;
1637-
if(rndevent(e.attr2, 10))
1637+
if(rndevent(e.attr2, 15))
16381638
{
16391639
int numLoops = max(1, e.attr7 + (e.attr8 ? rnd(e.attr8) : 0));
16401640
loopi(numLoops)
@@ -1646,7 +1646,7 @@ static void makeparticles(entity &e)
16461646
game::newbouncer(e.o, pos.add(vec(xOffset, zOffset, yOffset)), true, 0, game::player1, game::BNC_BIGROCK, 15000+rnd(5000), e.attr6);
16471647
}
16481648
playSound(S_EXPL_VOLCANO, e.o, 3000, 1500, SND_NOOCCLUSION);
1649-
if(game::hudplayer()->physstate == PHYS_FLOOR) shakeScreen(0.1f + (camera1->o.dist(e.o) / 3000.f ));
1649+
if(game::hudplayer()->physstate == PHYS_FLOOR) shakeScreen(0.1f + lerp(0.f, 0.5f, clamp(camera1->o.dist(e.o) / 1000.0f, 0.f, 1.f)));
16501650
}
16511651
break;
16521652
}

0 commit comments

Comments
 (0)