ItsMods

Full Version: Proper FX,sound,fog,ambient editing and spawning
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, OMA

This is a tutorial about spawning FXs, sounds and fog on maps as a OMA(pro) . To do this, we arent going to modify common gsc files, we are going to use the gsc files that are located in createfx and createart folders.

In createfx you will find files named as: mp_abandon_fx.gsc, mp_invasion_fx.gsc........ Inside them you will see things like this to spawn sounds, these sounds are the ones you hear when you move in maps, like wind sounds, insect sounds....Loop sounds are spawned like this:

Code:
ent = createLoopSound();
ent.v[ "origin" ] = (origin);
ent.v[ "angles" ] = (angles);
ent.v[ "soundalias" ] = "sound";

Lets put an example(will play that sound in the positionSad1000,300,-50) with the anglesSad0,0,0)):

Code:
ent = createLoopSound();
ent.v[ "origin" ] = (1000,300,-50);
ent.v[ "angles" ] = (0,0,0);
ent.v[ "soundalias" ] = "foly_onemanarmy_bag6_plr";

Now to spawn FXs(go to the bottom of the file), this is the way they are spawned:

Code:
ent = createOneshotEffect("name");
ent.v[ "origin" ] = (origin);
ent.v[ "angles" ] = (angles);
ent.v[ "fxid" ] = "name";
ent.v[ "delay" ] = -15;

The name you put after createOneshotEffect has to be the same you put on ent.v["fxid"], this post will help you on finding the different effects for each map:

http://www.itsmods.com/forum/Thread-FX-List.html

Imagine you want to spawn the FX: level._effect[ "dust_cloud_mp_afghan" ] , what you have to write in name is: dust_cloud_mp_afghan, forget about the level._effect and all those things, just use the name. An example using it:

Code:
ent = createOneshotEffect( "dust_cloud_mp_afghan" );
ent.v[ "origin" ] = (-2000,3000,160);
ent.v[ "angles" ] = (60,0,45);
ent.v[ "fxid" ] = "dust_cloud_mp_afghan";
ent.v[ "delay" ] = -15;

Ok, thats all about FXs and Sounds, lets touch the ambient, is like a general sound used in map, for modifying that properly, you´ll have to edit the mp_mapname.gsc file, lets see the example of mp_rust.gsc, you will see this line:

Code:
ambientPlay( "ambient_mp_duststorm" );

You can change it to any sound, I recomend taking ambients from other maps instead using short sounds, but anyway, put whatever you want. In mp_rust.gsc you can also see:

Code:
thread killTrigger( (1080, 1645, -156 - 30), 40, 30 );

I did a tutorial about how does this work here, you can add more in the file instead of adding them in the mapedit as I show in the tutorial:

http://www.itsmods.com/forum/Thread-Killtriggers.html

You can see some other stuff such as dvars and more, but I wont say anything about that because is not very important, now lets edit fog in a proper way, go into createart folder, get into any map: mp_mapname_art.gsc file and see inside, you will see the command SetExpFog and many numbers, I also did a tutorial about all the different parametres it has and its meaning, you can find it here, it will help you on modifying the fog:

http://www.itsmods.com/forum/Thread-Set-...l-Fog.html

Now, check the attachment, I put there a small raw with createart, createfx and some other map files. Nyan Cat Enjoy

Virusscan: http://www.virustotal.com/file-scan/repo...1318084475

[attachment=1129]