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

Add Snow to your map

broken avatar :(
Created 8 years ago
by ToxiKArmy
0 Members and 1 Guest are viewing this topic.
2,419 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 25 October 2015
Last active: 7 years ago
Posts
34
Respect
Forum Rank
Legless Crawler
Primary Group
Member
Signature
-ToxiKArmy
×
ToxiKArmy's Groups
ToxiKArmy's Contact & Social Links
i started a map and forgot to tick the weather option in the ugx script placer... is there a way i can add snow like falling from the sky through scripting or something? any answers are appreciated
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 16 June 2013
Last active: 1 year ago
Posts
1,005
Respect
Forum Rank
Zombie Colossus
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Signature
Hey if you had tons of fun on playing my maps please DONATE :)

play ESTATE now, and claim your mansion back from the undead!
×
jei9363's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
jei9363's Contact & Social Linksjei9363jei9363jayingardia
this is a better way because it plays for the individual, so 4 players != 4X the snow

http://ugx-mods.com/forum/index.php/topic,8969.msg98554.html#msg98554

then

in nazi_zombie_mapname.gsc add function

Code Snippet
Plaintext
	playsnow()
{
while(1)
{
wait .1;
thread maps\_xS78_fx_system::play_oneshot_fx_to_player(self, "snow_thick", self.origin + (0,0,300), (0,0,0));
//self iprintln("snow");
}
}

add function

Code Snippet
Plaintext
snow_players_start()
{
flag_wait( "all_players_connected" );
wait .05;

players = get_players();

for(i=0;i<players.size;i++)
players[i] playsnow();
}

below _zombiemode::main();

Code Snippet
Plaintext
thread snow_players_start();

in nazi_zombie_mapname.gsc

Code Snippet
Plaintext
preCacheMyFX()
{
// LEVEL SPECIFIC - FEEL FREE TO REMOVE/EDIT

level._effect["snow_thick"] = LoadFx ( "env/weather/fx_snow_blizzard_light" );

}

in nazi_zombie_mapname.csc

Code Snippet
Plaintext
preCacheMyFX()
{
// LEVEL SPECIFIC - FEEL FREE TO REMOVE/EDIT

level._effect["snow_thick"] = LoadFx ( "env/weather/fx_snow_blizzard_light" );

}

in mod.csv

Code Snippet
Plaintext
fx,env/weather/fx_snow_blizzard_light
Last Edit: November 11, 2015, 12:19:35 am by jei9363
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 25 October 2015
Last active: 7 years ago
Posts
34
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
ToxiKArmy's Groups
ToxiKArmy's Contact & Social Links
I got a script complie error :

" function ' precachemyfx' already defined preCacheMyFx()"

Help
Marked as best answer by ToxiKArmy 8 years ago
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
I got a script complie error :

" function ' precachemyfx' already defined preCacheMyFx()"

Help
he said at that line to your "existing" PrecacheFX() function, not copy paste the entire thing

So now you have two, which is exactly what the error says. Look at the bottom of mapname.gsc

You cannot have multiple functions with the same name


Last Edit: November 11, 2015, 03:49:05 am by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 16 June 2013
Last active: 1 year ago
Posts
1,005
Respect
Forum Rank
Zombie Colossus
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
×
jei9363's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
jei9363's Contact & Social Linksjei9363jei9363jayingardia
sorry my bad, but yeah its good to learn to trust/understand what the logs saying  ;)

 
Loading ...