Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial Adding FXs from SP (zm) to MP
#1
Information 
In this tutorial i will show how to import FXs from SP (zm too) to MP

1) First of all you need mod with the following folders (again Tongue):
<blops directory>\mods\mp_YOURMOD\fx

2)Importing
Go to <blops dir>\raw\fx and choose your favorite FX from folders and copy it to <blops directory>\mods\mp_YOURMOD\fx
Example (my fav fx):
<blops dir>\raw\fx\maps\zombie\fx_defense_zombie_boss3.efx to <blops directory>\mods\mp_YOURMOD\fx\maps\zombie\fx_defense_zombie_boss3.efx

3)Adding to Zone Source (mod.csv) file
Open your mod.csv file and put following lines:
Quote:fx, <your fx with folder>
Example:
Quote:fx,maps\zombie\fx_defense_zombie_boss3
Save mod.csv file.

5)Spawn FX in game
Open your GSC file(like your map building thing) and put this in init(), main():
Quote:loadFx("<YOUR FX>");
level._CUSTOM_FX_NAME = loadfx("<YOUR FX>");
Example;
Quote:loadFx("maps/zombie/fx_defense_zombie_boss3");
level._CUSTOM_FX_NAME = loadFx("maps/zombie/fx_defense_zombie_boss3");
NOTE! "\" (slash) need change to "/" (slash) in gsc script(loadFx) or this will not work!
Spawn:
Quote:spawnMyFx()
{
playFX(level._CUSTOM_FX_NAME, ORIGIN);
}
Thanks to iAegle for this:
effect = spawnEffect( ( 0, 0, 0 ), level._CUSTOM_FX_NAME );
for delete:
effect delete();
NOTE: With some FX need loop thread, because some fx have time!
Example
Quote:spawnMyFx()
{
for(;Wink
{
playFX(level._CUSTOM_FX_NAME, ORIGIN);
wait <time>;
}
}

4) Build your mod!
Sorry, if bad tutorial Tongue
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#2
Nice tutorial 7 Tongue
[Image: lQDUjba.jpg]
Reply

#3
You can also use

Code:
spawnEffect( location, effect )
{
    baseEffect = spawnFx( effect, location + (0, 0, 1) );
    baseEffect.angles = ( 270, 0, 0 );
    triggerFx( baseEffect );
    
    return baseEffect;
}

and then use
Code:
effect = spawnEffect( ( 0, 0, 0 ), level._CUSTOM_FX_NAME );

so you can easily delete it like this:
Code:
effect delete();
(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

#4
Nice! You don't need the LoadFX twice though.
Also, is the smiley required in your mod? *grin*
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Information [Tutorial] Adding DLC Maps as Custom Maps. Nekochan 151 156,271 05-25-2013, 01:05
Last Post: Nero Z zero
  [HELP]Adding Spaces in a String dhanin 1 1,944 03-30-2013, 16:09
Last Post: Nukem
  Adding weapons in SP levels shafiq0895 2 3,340 12-13-2012, 16:13
Last Post: shafiq0895
  [Tutorial] Adding sounds to SP weapons (in multiplayer) Nukem 54 36,076 11-09-2012, 18:59
Last Post: The Tronuo
  Bo adding sounds need help! Will thank SamuelGrund 0 2,441 08-30-2012, 14:54
Last Post: SamuelGrund
  custom weapon intervention and adding 2+ custom weapons Gamemaster20 9 5,242 07-03-2012, 12:13
Last Post: zxz0O0
  Adding multiple attachments to guns. frozenliquid 2 2,802 01-05-2012, 17:00
Last Post: zabidenu
  Help Adding a new game mode! thethiny 6 3,193 10-17-2011, 17:41
Last Post: crAyon
  Adding music to mod? cervantes 7 3,764 09-21-2011, 11:34
Last Post: prisma
Rainbow [Tutorial] Adding Localized Strings! iAegle 14 13,612 08-18-2011, 08:24
Last Post: rotceh_dnih

Forum Jump:


Users browsing this thread:
1 Guest(s)

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