Skip to content

Add rain schedule, rain sound and Wld_IsRaining - #1045

Closed
kroplabeskidu wants to merge 1 commit into
Try:masterfrom
kroplabeskidu:fix-171
Closed

kroplabeskidu wants to merge 1 commit into
Try:masterfrom
kroplabeskidu:fix-171

Conversation

@kroplabeskidu

Copy link
Copy Markdown
Contributor

related to #171, only the logic part, no visuals

same as vanilla zCSkyControler_Outdoor: rain is rolled once a day when sky time wraps at noon, start = rand in [0, 0.958] of the day, length 0.042 + rand*0.06 (about 1 to 2.5h). first day is fixed 0.187..0.25 (~16:30-18:00). weight fades in over the first 20% and out over the last 20%, Wld_IsRaining is weight > 0.3. rain_01.wav loops with volume following weight at 0.0005 per ms, x0.25 when camera is underwater or above a sector poly. start/stop are saved per world. zstartrain [k] works like vanilla, puts current time at k inside a 0.1 day window

not done: vanilla also makes fog denser and grayer while it rains, and draws drops as camera local particles (max 1024, SKYRAIN.TGA) traced down for splashes (SKYRAINSPLASH.TGA) so there's no rain under roofs. didn't want to touch the renderer without asking, can try if you want

test: zstartrain 0.5 in marvin console, go in and out of a house

@Try

Try commented Oct 26, 2026

Copy link
Copy Markdown
Owner

closing due to IP pollution: #1038 (comment)

@Try Try closed this Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants