ItsMods
[Tutorial] Adding rain and lighting to all maps - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: [Tutorial] Adding rain and lighting to all maps (/Thread-Tutorial-Adding-rain-and-lighting-to-all-maps.html)

Pages: 1 2


Adding rain and lighting to all maps - Nekochan - 06-30-2011

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"], (X, Y, Z) + (0,0,300)); playFX(level._effect["rain_downpour"], (X, Y, Z) + (0,0,300)); playFX(level._effect["rain_heavy2"], (X, Y, Z) + (0,0,300)); wait 2; // WAIT playFX(level._effect["rainsplash_500x500"], (X, Y, Z)); wait 2; for(;;) { playFX(level._effect["lightingFlash"], (X, Y, Z)); 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.


RE: Adding rain and lighting to all maps - surtek - 06-30-2011

File aproved.


RE: Adding rain and lighting to all maps - Gladio - 06-30-2011

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


RE: Adding rain and lighting to all maps - ian_d_h - 06-30-2011

I have used your mp_nuked file and I get error: server script error uninitialised variable '"Z"


RE: Adding rain and lighting to all maps - Yamato - 06-30-2011

(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.


RE: Adding rain and lighting to all maps - iAegle - 06-30-2011

(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 )


RE: Adding rain and lighting to all maps - Tomsen1410 - 06-30-2011

Nice : )
But isnt there a map_fx.gsc already? o.0

Dunno, im not really good with FXes(and TexturesTongue )


RE: Adding rain and lighting to all maps - Trojan - 06-30-2011

.
Good work Se7en


RE: Adding rain and lighting to all maps - barata - 06-30-2011

Very good work Se7en, some maps looks incredibles with this effects!

Thanks Barata...


RE: Adding rain and lighting to all maps - mitchhacker - 06-30-2011

When I change X Y Z, i get bad syntax D: