How-To: Basic Rainspawner for idiots

Handy guides on how to do things, written by users for users.

Moderators: GZDoom Developers, Raze Developers

Forum rules
Please don't start threads here asking for help. This forum is not for requesting guides, only for posting them. If you need help, the Editing forum is for you.

How-To: Basic Rainspawner for idiots

Postby Gunslaher_Pi » Sat Jan 23, 2021 7:08 am

y0,

Alright y'all,

If you wanna get your sectors dripping with watery goodness or whatever.
First goto Realm667 and download the rain effect pack.

Then to use it in your builder application,add the .wad file to your file config.
If you haven't already, you'll need Slade3. Open the .wad up in Slade and then
view DECORATE as text. Make sure your text code looks exactly like this. With
the exception of the indented ( { ) of course.

//**************** WEATHER ZONE BOUNDARY **********************
//Boundary object for weather zones
Actor Rainspawner 30000
{
Radius 1
Height 1
+NoClip
+ClientSideOnly
+SpawnCeiling
+NoGravity
States
{
Spawn:
TNT1 A 0
TNT1 A 0 A_JumpIf(Args[2] > 0, "NoSound")
TNT1 A 0 A_JumpIf(Args[3] > 0, "Circle")
TNT1 A 0 A_PlaySoundEx("Ambient/Rain", "SoundSlot7", 1)
TNT1 A 2 A_SpawnItemEx("RainDrop", Random(-Args[0], Args[0]), Random(-Args[0], Args[0]), -2, 0, 0, 0, 0, 128, Args[1])
Loop
Circle:
TNT1 A 2 A_SpawnItemEx("RainDrop", Random(-Args[0], Args[0]), 0, -2, 0, 0, 0, Random(0, 360), 128, Args[1])
NoSound:
TNT1 A 0 A_Jumpif(Args[3] > 0, "NoSoundCircle")
TNT1 A 2 A_SpawnItemEx("RainDrop", Random(-Args[0], Args[0]), Random(-Args[0], Args[0]), -2, 0, 0, 0, 0, 128, Args[1])
Loop
NoSoundCircle:
TNT1 A 2 A_SpawnItemEx("RainDrop", Random(-Args[0], Args[0]), 0, -2, 0, 0, 0, Random(0, 360), 128, Args[1])
Loop
}
}

Actor RainDrop
{
+Missile
+NoBlockMap
-NoGravity
Height 2
Radius 2
Renderstyle Translucent
Alpha 0.6
Scale 0.2
States
{
Spawn:
RNDR A 1 A_JumpIf(WaterLevel > 0, "Death")
Loop
Death:
RNDR BCDEFGH 3 A_FadeOut(0.15)
Stop
}
}


The DoomEdnum or Doom Editor number is used to tell your doom editor to assign DECORATE to your
things menu.

Once injected into the builder you can place the Rainspawner as a thing on your map. It will appear as a yellowish
folder on the "things" list. The next part is very important. You'll have a list of arguments. The Rainspawner won't
have an action so that value can stay at 0.

This is important stuff. Controls the behavior of the spawner.

Place the RainDropSpawner on your map, and use values set on the specials tab to modify it

The first argument controls its area. 128, for example makes it a 256x256 square or 256-radius
circle (See fourth argument)

The second argument controls its frequency. The lower the number, the heavier the rainfall

The third argument controls whether or not it plays its ambient sound. 0 will play the sound,
1 will not

The fourth argument controls the area type. 0 is a square, 1 is a circle


Do all this correctly and you'll have a nice rainy map.

:)
User avatar
Gunslaher_Pi
 
Joined: 17 Jan 2021
Location: Aussieland
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Intel (Modern GZDoom)

Re: How-To: Basic Rainspawner for idiots

Postby Blue Shadow » Sat Jan 23, 2021 7:56 am

To me, this is more like a tutorial, so I moved it.
User avatar
Blue Shadow
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: How-To: Basic Rainspawner for idiots

Postby Gunslaher_Pi » Sun Jan 24, 2021 12:27 am

Thanks man. Still navigating the forum. Appreciate it.
User avatar
Gunslaher_Pi
 
Joined: 17 Jan 2021
Location: Aussieland
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Intel (Modern GZDoom)


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest