Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial Adding rain and lighting to all maps
#1
Information 
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.


Attached Files
.rar   mp_nuked.rar (Size: 2.65 KB / Downloads: 99)
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#2
File aproved.
Reply

#3
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
Reply

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

#5
(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.
Reply

#6
(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 )
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

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

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

#8
.
Good work Se7en
Reply

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

Thanks Barata...
Reply

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



Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with Rain Effects on Maps mitchhacker 5 4,472 10-22-2013, 00:46
Last Post: mitchhacker
Star [Release] 8 new Zombie maps for ItsZombieMod mahafy00 31 31,957 07-20-2013, 07:28
Last Post: benm4a
  [Release] Clean Maps of DObjs Yamato 13 8,662 06-15-2013, 10:51
Last Post: Yamato
Information [Tutorial] Adding DLC Maps as Custom Maps. Nekochan 151 139,665 05-25-2013, 01:05
Last Post: Nero Z zero
  QS Mod by GeKKo v 6.5 with Custom Maps GeKKoFL0X 35 28,927 05-21-2013, 19:30
Last Post: [HARD] Tony.
  [HELP]Adding Spaces in a String dhanin 1 1,793 03-30-2013, 16:09
Last Post: Nukem
  Playable DLC maps. Erik The Born 4 3,835 03-08-2013, 17:30
Last Post: Erik The Born
  for new DLC maps First_Semyon 4 3,457 02-04-2013, 12:03
Last Post: JariZ
  [Release] Names/Images of Zombie DLC weapons, maps, and gamemodes. JariZ 13 10,651 01-28-2013, 15:33
Last Post: JariZ
  private match maps won't work with mods! leereef 1 2,348 01-13-2013, 12:01
Last Post: surtek

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.