Raised This Month: $32 Target: $400
 8% 

Simple, random chance of rain with skymap change


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 08-01-2022 , 17:14   Simple, random chance of rain with skymap change
Reply With Quote #1

I know there is a plugin based on locations... overkill.

Does it exist a simple plugin that can do rain and cloudy skymap with percentage chance?
i dont want snow.
i want normal map vs probability of rain.


this is not what i am looking for:
https://forums.alliedmods.net/showthread.php?p=358960
Ark_Procession is offline
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 08-02-2022 , 09:32   Re: Simple, random chance of rain with skymap change
Reply With Quote #2

I'm not even sure you can change the sky texture once a map was already loaded, I think you can only do it on map change because I tried to once and it wouldn't change until a map change occurred but who knows... maybe with Orpheu?

Rain could be easily added though.
__________________
deprale is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 08-02-2022 , 11:13   Re: Simple, random chance of rain with skymap change
Reply With Quote #3

This should do the trick.

Link.
__________________

Last edited by DJEarthQuake; 08-02-2022 at 11:19. Reason: URL
DJEarthQuake is offline
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 08-02-2022 , 22:30   Re: Simple, random chance of rain with skymap change
Reply With Quote #4

Quote:
Originally Posted by deprale View Post
I'm not even sure you can change the sky texture once a map was already loaded, I think you can only do it on map change because I tried to once and it wouldn't change until a map change occurred but who knows... maybe with Orpheu?

Rain could be easily added though.
i mean i think if the plugin applies on changelevel should be fine
Ark_Procession is offline
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 08-02-2022 , 22:32   Re: Simple, random chance of rain with skymap change
Reply With Quote #5

Quote:
Originally Posted by DJEarthQuake View Post
This should do the trick.

Link.
Heey! thanks for having my back again.

it works but can the sky be more cloudy and grey? i have a few skymaps i would like to use, mind telling me how to update them? they are no attached to any map. they are custom.

The splash sound from walking is too loud, can it be lowered it's volume/ add better splash/ be removed?

The rain has no sound, is that intended? if you can add it can you make it so, unlike rainysnowy, the loop is longer and not so white noisy and loud?

Last edited by Ark_Procession; 08-02-2022 at 22:33.
Ark_Procession is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 08-04-2022 , 10:44   Re: Simple, random chance of rain with skymap change
Reply With Quote #6

Welcome. VOL_NORM is how it is set. Edit it how you like. Env_rain does not come with sound. Custom skies and sounds are a lot more work. Look at one of the other plugins for those details.
__________________
DJEarthQuake is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-04-2022 , 11:51   Re: Simple, random chance of rain with skymap change
Reply With Quote #7

Quote:
Originally Posted by deprale View Post
I'm not even sure you can change the sky texture once a map was already loaded, I think you can only do it on map change because I tried to once and it wouldn't change until a map change occurred but who knows... maybe with Orpheu?

Rain could be easily added though.
It can be done without a mapchange, but the client has to reconnect before seeing the new sky.
__________________
HamletEagle is offline
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 08-06-2022 , 00:14   Re: Simple, random chance of rain with skymap change
Reply With Quote #8

Quote:
Originally Posted by HamletEagle View Post
It can be done without a mapchange, but the client has to reconnect before seeing the new sky.
I would really love this plugin, is quite weird that it doesn't exist publicly at least.

Using sync with weather websites it's just not what im looking for. im all up for offline lan parties(?

but seriously, if anyone read this and have something similar , pm me or post here.

basically a plugin that makes random rain chance with de_aztec sky or editable hardcoded or not doesnt matter.
Ark_Procession is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 08-07-2022 , 04:06   Re: Simple, random chance of rain with skymap change
Reply With Quote #9

Change the script sky to doom1 like aztec. I lowered the footstep sound, added ambience for rain, and added a cvar to change skies with. If you want to use a custom sky be sure to add those files into the precache.
__________________

Last edited by DJEarthQuake; 08-08-2022 at 10:23.
DJEarthQuake is offline
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 08-08-2022 , 12:25   Re: Simple, random chance of rain with skymap change
Reply With Quote #10

Quote:
Originally Posted by DJEarthQuake View Post
Change the script sky to doom1 like aztec. I lowered the footstep sound, added ambience for rain, and added a cvar to change skies with. If you want to use a custom sky be sure to add those files into the precache.
Woah! thanks

did not understand how to precache custom skies.

Footstep is just right now!!

ambience rain is smooth thanks, i noticed the water steps don't apply when you are behind cover, that is amazing. can not rain do the same? like, rain lowers volume when behind cover? that would be crazy!

also noticed that when it's not raining a nice sky is applied to maps, can they just be default skies when it's not raining?
for example: aztec has a pleasant day when it's not raining and i would like to be forever stormy,
Also to not break immersion in dust, or any other map that have a desert theme, etc.

Edit:

Currently running a plugin that alternates skyboxes to simulate a simple weather change, i have 4 skies: cloudy, morning sunny, afternoon cloudy sunset and night. it is not compatible with yours since it's replacing the skies in your plugin.

what if, you add the option to list the skies you want to randomize while it's not raining and which skies when it IS raining.
that would complete the plugin 101%.

Code i am using for random skies:

HTML Code:
#include < amxmodx >

new gPluginMode;

new const gSkies[ ][ ] =
{
	
	"DUSK", 
	"MORNINGDEW", 
	"NIGHT",  
         "CLOUDY", 
	};

public plugin_init( )
{
	register_plugin( "Random Skies", "2.0.0", "tuty" );
	
	gPluginMode = register_cvar( "sv_skies_mode", "1" );  // 0 - disabled, 1 - random skies
}

public plugin_end( )
{
	if( get_pcvar_num( gPluginMode ) == 1 )
	{
		server_cmd( "sv_skyname %s", gSkies[ random_num( 0, charsmax( gSkies ) ) ] );
	}
}

Last edited by Ark_Procession; 08-08-2022 at 12:49. Reason: yet another request
Ark_Procession is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode