How To Use Global Fx
You will need to copy _global_fx from raw/clientscripts and raw/maps into your mod clientscripts and maps folder
Now we need to edit the scripts
They already have some global_FX setup but some of them dont work
As you can read at the top of the script its pretty easy to use
I made some changes to an existing one to show how it works:
//your targetname //FxID //your fx //delay //soundalias
global_FX( "barrel_fireFX", "global_barrel_fire", "env/fire/fx_fire_barrel_pm
", randomStartDelay, "amb_fire" ); Using the default zombie_theater soundaliase (you can find amb_fire in raw/soundaliases/zones/zmb_theater.all.csv)
Make sure to add your changes in both scripts _global_fx.csc and gsc (copy and paste)
Now in radiant you need to add a script_struct with the targetname you have on the scripts
It can read the angles too so you can rotate the fx if you want
Add the fx to your mod.csv or zone_source/mapname_fx.csv
fx,env/fire/fx_fire_barrel_pm
Compile Map, Build Mod ff or IWD with the scripts inside