Page 1 of 1

Adding rain and changing the rain

Posted: Sat Mar 28, 2009 11:56 am
by fai222
Hello, i dont know if anyone has posted anything like this before but i didnt see it in the FAQ so here it is, i know this will be very useful for new modders.
fai222: hi, do you mind if i ask you a question?
TheUltimat: sure
fai222: do you know how to add rain to a map in swbf2?
TheUltimat: yup
TheUltimat: go to the assets\ worlds\ KAM\ world1
TheUltimat: copy the file called kamino1.fx
fai222: ok
TheUltimat: and paste it into your maps world1 folder
fai222: ok
TheUltimat: then rename to ***.fx
TheUltimat: if *** is ur maps ID
TheUltimat: wait u want the lightening aswell?
fai222: what if i already got a fx file?
TheUltimat: oh right
TheUltimat: sry
fai222: and no, i dont want the lightning
TheUltimat: open up the kamino1.fx file
fai222: ok
TheUltimat: find the Effect("Precipitation")
{
TheUltimat: bit
fai222: ok
TheUltimat: copy it all down to above Effect("Lightning")
{
TheUltimat: so its
Effect("Precipitation")
{
Enable(1);
Type("Streaks");
Range(12.5);
Color(216, 220, 228);
VelocityRange(1.0);
ParticleDensityRange(0.0);
CameraCrossVelocityScale(0.2);
CameraAxialVelocityScale(1.0);

GroundEffect("com_sfx_rainsplash");
GroundEffectSpread(8);

PS2()
{
AlphaMinMax(0.8, 1.0);
ParticleSize(0.06);
ParticleDensity(80.0);
Velocity(8.0);
StreakLength(1.7);
GroundEffectsPerSec(7);
}
XBOX()
{
AlphaMinMax(0.2, 0.3);
ParticleSize(0.02);
ParticleDensity(256.0);
Velocity(9.0);
StreakLength(1.0);
GroundEffectsPerSec(15);
}
PC()
{
AlphaMinMax(0.3, 0.45);
ParticleSize(0.02);
ParticleDensity(256.0);
Velocity(9.0);
StreakLength(1.0);
GroundEffectsPerSec(15);
}
}
fai222: got it
TheUltimat: k
TheUltimat: then munge
TheUltimat: think thats all
fai222: is it any special place i need to paste it in my fx file?
TheUltimat: erm
TheUltimat: inside the 2 main brackets
fai222: ok
TheUltimat: oh wait
TheUltimat: no
TheUltimat: there arent any main brackets
TheUltimat: anywhere will do
fai222: ok, thanks
TheUltimat: okay
fai222: can i ajust the rain to be heavier or lighter in the fx file?
TheUltimat: yes
TheUltimat: you can
fai222: it worked, thanks for the help!
TheUltimat: okay
TheUltimat: do u wanna know how to change its density?
fai222: yeah sure
TheUltimat: find
TheUltimat: PC()
{
AlphaMinMax(0.3, 0.45);
ParticleSize(0.02);
ParticleDensity(256.0);
Velocity(9.0);
StreakLength(1.0);
GroundEffectsPerSec(15);
}
fai222: ok, got it
TheUltimat: try changing the ParticleDensity
TheUltimat: and the GroundEffectsPerSec will make it look more realistic
TheUltimat: and if u want it to have longer streaks, change StreakLenght
fai222: the ParticleDensity is on 156.0, what happends if i lower it?
fai222: oh, sorry. its on 256.0
TheUltimat: it should, in theory, make the rain appear to be thinner, or so that there's less of it at one time
fai222: ok, but what exactly does the GroundEffectsPerSec do?
TheUltimat: u know the ripple things on the ground?
fai222: yeah
TheUltimat: thats those, i think
fai222: ok, so if i make the GroundEffectsPerSec, lets say 30, it will get more of the ripple things?
TheUltimat: in theory, yes
fai222: ok, thanks for all the help
I hope this will be useful.
EDIT: If anyone wants to fill out the rest about metods to change the rain feel free to post them here. :wink:

Re: Adding rain and changing the rain

Posted: Sat Mar 28, 2009 12:03 pm
by Fiodis
To change the ground splash effect, I think you need to set up a custom ingame.lvl.


To make spots where it isn't raining (i.e., the Kamino buildings. Kinda wierd if it rains indoors) then make a region, any shape will do, where you want no rain (or precipitation of any sort, really). It doesn't matter what you name it as long as you set its property as "rainshadow".

Re: Adding rain and changing the rain

Posted: Sat Mar 28, 2009 12:53 pm
by B.I.G_Cookie
very useful, thanks fai222 :thumbs:

Re: Adding rain and changing the rain

Posted: Sat Mar 28, 2009 12:57 pm
by YaNkFaN
also rainshadow regions cannot overlap i repeat cannot otherwise weird stuff happens maybe ctd but i know you cannot overlap them