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

snow like fx in map?

broken avatar :(
Created 12 years ago
by Deleted User
0 Members and 1 Guest are viewing this topic.
2,954 views
broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
how do i put this fx in my map: fx_ash_embers_light
I want it to be like the snow fx thingy, where if your indoors it doesnt play
Last Edit: January 07, 2014, 08:55:08 pm by n123q45
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 6 years ago
Posts
941
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
just place it as any other fx using ugx_easy_fx just put the struct anywhere in your open area and it wont spawn inside buildings :)
broken avatar :(
×
broken avatar :(
Former UGX Lead Asset Creator
Location: ca
Date Registered: 17 August 2012
Last active: 7 years ago
Posts
1,932
Respect
Forum Rank
Zombie Destroyer
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
Eh?
Signature

(Click to enter portfolio)
×
SajeOne's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
*NAME* - refers to a name you pick for your FX, not the FX name.
*FXPATH* - refers to the directory in which your FX exists.

Weather FX doesn't go through brushes(at least in my experience)unless they have no collision.

The _weather script as far as I know doesn't support that FX. But you can copy the function "player_weather_loop()" in _weather.gsc.

Place it in either a separate file or in mapname.gsc.

Then replace the line:
Code Snippet
Plaintext
PlayFX( level._effect["rain_drops"], self.origin + (0,0,650) );
with:
Code Snippet
Plaintext
PlayFX( level._effect["*NAME*"], self.origin + (0,0,650) );

Now add the line:
Code Snippet
Plaintext
level._effect["*NAME*"] = LoadFX("*FXPATH*");
within the function "preCacheMyFX()" in mapname.gsc

Create a for loop for the players and thread the function that you added:

Code Snippet
Plaintext
players = getPlayers();
for(int i = 0; i < players.size; i++)
    players[i] thread player_weather_loop();

Then lastly of course remember to add your fx to your map's CSV with a prefix of "fx,".

That should be all, if you have additional problems feel free to post.

Post Merge: January 07, 2014, 09:42:56 pm
just place it as any other fx using ugx_easy_fx just put the struct anywhere in your open area and it wont spawn inside buildings :)
Easy FX isn't designed for weather. It's also not a good idea to use a struct for weather FX especially in large maps as the snow won't be infinite and will cause you to need multiple FX structs around the map. The method treyarch has implemented uses the players positions to play the FX, that way you only need four that will move with the player, making snow easier to manage in larger maps, as well as improving performance.
Last Edit: January 07, 2014, 09:42:56 pm by SajeOne
broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
i get this error:
broken avatar :(
×
broken avatar :(
Former UGX Lead Asset Creator
Location: ca
Date Registered: 17 August 2012
Last active: 7 years ago
Posts
1,932
Respect
Forum Rank
Zombie Destroyer
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
Eh?
×
SajeOne's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
i get this error: (Image removed from quote.)
oops, too used to C#, take out "int". The engine manages data types in gsc.
broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
lol they are similar but little stuff like that slips your mind :)

Post Merge: January 08, 2014, 03:42:51 am
still didnt work but there is no error
Last Edit: January 08, 2014, 03:42:51 am by n123q45
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 6 years ago
Posts
941
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
That should be all, if you have additional problems feel free to post.

Post Merge: January 07, 2014, 09:42:56 pm
Easy FX isn't designed for weather. It's also not a good idea to use a struct for weather FX especially in large maps as the snow won't be infinite and will cause you to need multiple FX structs around the map. The method treyarch has implemented uses the players positions to play the FX, that way you only need four that will move with the player, making snow easier to manage in larger maps, as well as improving performance.

lol my bad xP i thought that fx was like the ashes(those little little red balls) that you can see here:
i placed it with ugx_easy_fx and it spawned in all my map .-. do you know if i should use this method instead?

 
Loading ...