[Zsript] Very simple weather effects

Post your example zscripts/ACS scripts/etc here.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
Apeirogon
Posts: 1592
Joined: Mon Jun 12, 2017 12:57 am

[Zsript] Very simple weather effects

Post by Apeirogon »

Simple system which create snow/rain in any sector with sky "ceiling" without creating too much load on cpu.
Mainly oriented on mappers who wants add immersion to their maps.

For now it have
Snow

Rain

Ashes looks goofy, I know

By default it turned off, so you need open pack and edit it a little to add specific weather to specific map.
As a little side effect of "simpleness" it can work weird with too small/too weirdly shaped "sky" sectors, like spawning snow under the actual ceiling of neighbor of "sky" sector sectors.

Minimal required gzdoom version 3.5
Github repository
How to download things from Github
viewtopic.php?f=39&t=70332

To use it go to the github page, press green button, select download as zip, save it and then open it as usual pack in slade/whatever you use for scripting.
Follow instruction in the readme.md file to turn it on.

If you want see some new effect or want something to say, write it here.
Last edited by Apeirogon on Wed Oct 21, 2020 12:49 pm, edited 3 times in total.
User avatar
Cherno
Posts: 1279
Joined: Tue Dec 06, 2016 11:25 am

Re: [Zsript] Simple weather effects

Post by Cherno »

Looks good and very useful.
User avatar
Redneckerz
Spotlight Team
Posts: 971
Joined: Mon Nov 25, 2019 8:54 am
Discord: Redneckerz#8399
Graphics Processor: Intel (Modern GZDoom)

Re: [Zsript] Simple weather effects

Post by Redneckerz »

For inspiration, have you looked at WeatherFX?
User avatar
Apeirogon
Posts: 1592
Joined: Mon Jun 12, 2017 12:57 am

Re: [Zsript] Simple weather effects

Post by Apeirogon »

It uses more or less same approach as weatherFX. Only difference is it cache all weather actors to reuse them in future, since zscript support dynamical arrays.

Probably I should add some presets like snowy day, snowstorm, tropical rain, etc.
Originally I create it to replace snow and rain in eviternity, because weather from there sometimes drop fps on my machine so hard so it transform game genre from first person shooter to turn base strategy.
User avatar
m8f
 
 
Posts: 1397
Joined: Fri Dec 29, 2017 4:15 am
Discord: m8f#0629
Github ID: mmaulwurff
Location: Siberia (UTC+7)

Re: [Zsript] Simple weather effects

Post by m8f »

Suggestion: ashes slowly falling from the sky. May suit hell maps.
User avatar
Apeirogon
Posts: 1592
Joined: Mon Jun 12, 2017 12:57 am

Re: [Zsript] Simple weather effects

Post by Apeirogon »

m8f wrote:Suggestion: ashes slowly falling from the sky. May suit hell maps.
Ok, but it looks a little bit goofy.


Also, I dont find good ashes sprite (which is not a gray square) at first google page so I used photo of staphylococcus from electron microscope instead.
XLightningStormL
Posts: 373
Joined: Mon May 09, 2016 1:38 am
Twitch ID: XLightmingStormL

Re: [Zsript] Simple weather effects

Post by XLightningStormL »

This isn't even working for me, despite packing the .pk3 fine (and fixing some apparent issues with CSE_Rain being called instead of CWE_Rain) and the .pk3 loading (cvars appear and work)
User avatar
Apeirogon
Posts: 1592
Joined: Mon Jun 12, 2017 12:57 am

Re: [Zsript] Simple weather effects

Post by Apeirogon »

Try re download package again. I fix this errors, add more clear instruction and new effect for rain weather.

XLightningStormL
Posts: 373
Joined: Mon May 09, 2016 1:38 am
Twitch ID: XLightmingStormL

Re: [Zsript] Simple weather effects

Post by XLightningStormL »

Is there actually a guide to get this working? Because despite the update, changing the CVARs still isn't doing anything for me :P.

In case, I'm using the latest GZDoom Stable build, and it doesn't work for me regardless of the Graphics API.
User avatar
Apeirogon
Posts: 1592
Joined: Mon Jun 12, 2017 12:57 am

Re: [Zsript] Simple weather effects

Post by Apeirogon »

Oh, I create readme but dont add it to git for tracking, sorry. Fix it now.
Download readme.md from repository/redownload pack again.
User avatar
Apeirogon
Posts: 1592
Joined: Mon Jun 12, 2017 12:57 am

Re: [Zsript] Simple weather effects

Post by Apeirogon »

I add rain sound. Its clunky but better than nothing. Still trying to figure out a way to add sound without hacks I used for current version.
User avatar
Apeirogon
Posts: 1592
Joined: Mon Jun 12, 2017 12:57 am

Re: [Zsript] Very simple weather effects

Post by Apeirogon »

I added new way to attaching weather to map.
Now all that required is edit a little WEATHDEF file (instruction included in it, its simple, I hope), and boom, snow/rain now attached to the specific map.
User avatar
Hidden Hands
Posts: 1053
Joined: Tue Sep 20, 2016 8:11 pm
Discord: VGCtm
Location: London, England

Re: [Zsript] Very simple weather effects

Post by Hidden Hands »

I'm trying to download this and I honestly just cannot pull it off. How do I download this file?? Theres no green button for download there. I can "view code" but cannot download the zip.

Okay I managed to download it but I just cannot get this to work. I've been trying for over an hour. I get hundreds of errors and I just don't know why. I can never get this stuff to work, every time I try I always get error after error after error and I end up having to go without.

PLEASE can someone help me with what's wrong. I really really need this to work.
You do not have the required permissions to view the files attached to this post.
User avatar
wildweasel
Moderator Team Lead
Posts: 21384
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support

Re: [Zsript] Very simple weather effects

Post by wildweasel »

I would presume that the "MarkSound" function is newer than whatever version of GZDoom you're using.

[edit] Then again this is marked for version 3.5, so, I'm probably wrong.
User avatar
Apeirogon
Posts: 1592
Joined: Mon Jun 12, 2017 12:57 am

Re: [Zsript] Very simple weather effects

Post by Apeirogon »

Hidden Hands wrote:I'm trying to download this and I honestly just cannot pull it off. How do I download this file?? Theres no green button for download there. I can "view code" but cannot download the zip.

Okay I managed to download it but I just cannot get this to work. I've been trying for over an hour. I get hundreds of errors and I just don't know why. I can never get this stuff to work, every time I try I always get error after error after error and I end up having to go without.

PLEASE can someone help me with what's wrong. I really really need this to work.
LZdoom, according to your previous messages on forum?!
How I can recreate problem?

Return to “Script Library”