UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Mapping => Topic started by: dondogs123 on October 31, 2016, 04:19:51 pm

Title: How can i add snow or rain to my map? Help Please
Post by: dondogs123 on October 31, 2016, 04:19:51 pm
I need some help on how to add snow to my map, any help will be very much appreciated.

Thank you
Title: Re: How can i add snow or rain to my map? Help Please
Post by: Poyuma on November 01, 2016, 12:04:25 am
The way I have been doing has been with using multiple snow 'fx' in the fx Browser.
Title: Re: How can i add snow or rain to my map? Help Please
Post by: Taven on November 01, 2016, 01:34:20 am
Can do it in scripts or be lazy like me and just do a ton of FX from the FX browser (not ideal)
Title: Re: How can i add snow or rain to my map? Help Please
Post by: JBird632 on November 01, 2016, 06:21:53 am
Ya the most optimized way to do it would be to do a client script, where each player plays the snow fx on the players origin. This is ideal so the snow isn't being played at every point of the map and only at the player's location which will allow for higher frame rate.
Title: Re: How can i add snow or rain to my map? Help Please
Post by: dondogs123 on November 01, 2016, 12:08:23 pm
Any idea on how i could do that? :S
Title: Re: How can i add snow or rain to my map? Help Please
Post by: reckfullies on November 02, 2016, 01:43:04 am
Any idea on how i could do that? :S

Get the players origin and play an fx on it. You would need to mess around like making it only do it when they are outside but I'm not going to figure out a way for you since I'm not using this method.
Title: Re: How can i add snow or rain to my map? Help Please
Post by: ItsJasonn on November 03, 2016, 05:28:44 pm
Ya the most optimized way to do it would be to do a client script, where each player plays the snow fx on the players origin. This is ideal so the snow isn't being played at every point of the map and only at the player's location which will allow for higher frame rate.

Maybe an idea for a new tutorial episode? :)
Title: Re: How can i add snow or rain to my map? Help Please
Post by: IDontEvenKnow on November 03, 2016, 11:24:39 pm
Maybe an idea for a new tutorial episode? :)

Main, this will fire when someone spawns
Code Snippet
Plaintext
callback::on_spawned( &on_player_spawned );

Then in the same file
Code Snippet
Plaintext
function on_player_spawned()
{
self PlayFX(<fx name>, self.origin);
}

You might have to get the origin of the player another way as I am not sure if they have an origin property.

If that fails, try
Code Snippet
Plaintext
function on_player_spawned()
{
self PlayFX(<fx name>, GetOrigin(self);
}

You will probably have to precache the fx you're using so you'd do this, put it up with all the #using directives.
Code Snippet
Plaintext
#precache( "fx", "<fx name>" );
Title: Re: How can i add snow or rain to my map? Help Please
Post by: ItsJasonn on November 13, 2016, 01:44:05 pm
But what if the player is not outside. Will the FX still show?
Title: Re: How can i add snow or rain to my map? Help Please
Post by: reckfullies on November 13, 2016, 02:42:01 pm
But what if the player is not outside. Will the FX still show?

Yes, it will. I suppose you could setup a way to detect when a player is inside by either having a volume that can detect it or some other way. Either way it seems like it would be kind of complicated to someone not competent in scripting for this game.
Title: Re: How can i add snow or rain to my map? Help Please
Post by: IDontEvenKnow on November 14, 2016, 05:06:48 am
But what if the player is not outside. Will the FX still show?

Put a trigger_touch around the map, then put a
Code Snippet
Plaintext
waittill("triggered",who");