Adding rain and changing the rain

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
fai222
Command Sergeant Major
Command Sergeant Major
Posts: 254
Joined: Wed Jul 30, 2008 2:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Norway, Xfire: Fai222

Adding rain and changing the rain

Post 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:
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Adding rain and changing the rain

Post 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".
User avatar
B.I.G_Cookie
High General
High General
Posts: 839
Joined: Sun Feb 22, 2009 4:28 pm
Games I'm Playing :: Battlefield 4
Location: Frankfurt, Germany

Re: Adding rain and changing the rain

Post by B.I.G_Cookie »

very useful, thanks fai222 :thumbs:
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Adding rain and changing the rain

Post by YaNkFaN »

also rainshadow regions cannot overlap i repeat cannot otherwise weird stuff happens maybe ctd but i know you cannot overlap them
Post Reply