Snarkpit Articles


In this tutorial we will learn how to add looped effects into our maps, for this tutorial we will presume you have a map ready for this.

In this map I have a house & I wish to add smoke coming out of the chimney. Look through Call Of Duty/Main/pak5.pk3 in the fx/ folder for your chosen effect, I have chosen fx/smoke/ash_smoke.efc.

Now in radiant you will need to select the chimney brush so that I know exactly where I want my effect to be placed (zoom in to this point).



Now, once you are zoomed in, look in the XY Top view & move your mouse over the middle point you want your fx to be. Now check your XY co-ordiantes. (mine are: 412.0 -120.0)



Now look in your YZ Side view & find the bottom point of where your effect will be, now check your Z co-ordinate. (mine is: 448.0)



Once you have these co-ordinates jotted down, open your .gsc file for your map & into it ( below main(){ ) enter the following script:

level._effect["alias"] = loadfx ("efx path");
mapsmp_fx::loopfx("alias", (X, Y, Z), wait time);

So, our script looks like this:



and our .gsc looks roughly like this:



Once you have saved your .gsc file, load up your map in game & look at your pretty effect.



Post ReplyView Topic
Discussion
There are not yet any comments for this article
Post ReplyView Topic