UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Global Fx (With soundaliases)

broken avatar :(
Created 4 months ago
by Blitzc
0 Members and 1 Guest are viewing this topic.
267 views
broken avatar :(
×
broken avatar :(
Location: do
Date Registered: 11 February 2020
Last active: 4 minutes ago
Posts
13
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Blitzc's Groups
Blitzc's Contact & Social Links

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


 

 
Last Edit: January 20, 2026, 12:55:07 am by Blitzc
:D1

 
Loading ...