Repository navigation
Add rain schedule, rain sound and Wld_IsRaining - #1045
Closed
kroplabeskidu wants to merge 1 commit into
Closed
kroplabeskidu wants to merge 1 commit into
kroplabeskidu wants to merge 1 commit into
Conversation
Owner
|
closing due to IP pollution: #1038 (comment) |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.5in marvin console, go in and out of a house