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:
ADDING FX IN ZONE FILE
2)Add this lines to zone source file
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
SPAWNING FX
5) Add those lines in 'main()' function ending
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.
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.