ItsMods

Full Version: Adding rain and lighting to all maps
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
In this tutorial i will show how to make rain and lighting on maps

1) First of all you need mod with the following folders:

Code:
mp_MODNAME\maps\mp\mp_MAPNAME.gsc

ADDING FX IN ZONE FILE

2)Add this lines to zone source file
Code:
fx,env\weather\fx_rain_heavy
fx,env\weather\fx_rain_heavy_looping
fx,env\weather\fx_lightning_flash_run
fx,env\weather\fx_rain_downpour_looping_md
fx,env\weather\fx_lightning_flash_single
fx,env\weather\fx_rain_splash_area_500_hvy_lp

3)You need FXs files! You can find them in YOURBlackOpsDirectory\raw\fx\env\weather AND place them to mp_YOURMOD\fx\env\weather

ADDING FXs TO MAP

4) Add those lines before "MAPS\MP\_LOAD.GSC" in mp_MAPNAME.gsc
PHP Code:
    level._effect["rain_downpour"] = loadfx("env/weather/fx_rain_downpour_looping_md"); // RAIN 1
    
level._effect["rain_heavy2"] = loadfx("env/weather/fx_rain_heavy_looping"); // RAIN 2
    
level._effect["lightingFlash"] = loadfx("env/weather/fx_lightning_flash_single");  // LIGHTING FLASH
    
level._effect["rainsplash_500x500"]  = loadfx("env/weather/fx_rain_splash_area_500_hvy_lp"); // RAIN SPLASHES 

SPAWNING FX

5) Add those lines in 'main()' function ending
PHP Code:
    wait 4// ADD WAIT OR THIS NOT WILL WORK!
    
    
playFX(level._effect["rain_heavy2"], (XYZ) + (0,0,300)); 
    
playFX(level._effect["rain_downpour"], (XYZ) + (0,0,300));
    
playFX(level._effect["rain_heavy2"], (XYZ) + (0,0,300));
    
wait 2// WAIT
    
playFX(level._effect["rainsplash_500x500"], (XYZ));
    
wait 2;
    for(;;)
    {
        
playFX(level._effect["lightingFlash"], (XYZ)); 
        
wait 5// LIGHTING FLASH WAIT TIME
    


NOTE: X, Y, Z - YOUR POSITION, DO NOT CHANGE + (0,0,300));

You can download done FILE (mp_nuked.gsc) as Tutorial
[attachment=699]

Problems? Post your problem here.
File aproved.
Night and rain in Jungle map can be fain...
Have you try different Fx file like mosquito (only for player) or wind and sand (for all players)?
Ill try nuke now thank
I have used your mp_nuked file and I get error: server script error uninitialised variable '"Z"
(06-30-2011, 13:00)ian_d_h Wrote: [ -> ]I have used your mp_nuked file and I get error: server script error uninitialised variable '"Z"

lol

I thought is easier to modify all this in the map fx gsc file.
(06-30-2011, 13:00)ian_d_h Wrote: [ -> ]I have used your mp_nuked file and I get error: server script error uninitialised variable '"Z"

Ohh god, you have to change the (X, Y, Z) part >_<

for example ( 0, 0, 0 )
Nice : )
But isnt there a map_fx.gsc already? o.0

Dunno, im not really good with FXes(and TexturesTongue )
.
Good work Se7en
Very good work Se7en, some maps looks incredibles with this effects!

Thanks Barata...
When I change X Y Z, i get bad syntax D:
Pages: 1 2