DieHard Wolfers Forum Index DieHard Wolfers
A Wolfenstein 3d Fan Community


  Hosted by: MCS & Areyep.com - Designed by: BrotherTank

Original Yahoo Forum - Die Hard Archives

AReyeP HomepageAreyep Homepage DieHard Wolfenstein BunkerDieHard Wolfenstein Bunker Log inLog in RegisterRegister Banlist FAQFAQ Search ForumsSearch

  Username:    Password:      Remember me       

Amount of snow falling
Page 1 of 1
DieHard Wolfers Forum Index -> SDL Code Crackers View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page BottomView Next Topic
Post new topicReply to topic
Author Message
ronwolf1705
Moderator
<B>Moderator</B>


Joined: 31 Jul 2006
Last Visit: 0:07 ago.

Topics: 73
Posts: 3765

blank.gif

PostPosted: Fri Sep 05, 2014 5:31 am
   Subject: Amount of snow falling
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

If one would want to change the amount of snow falling, which numbers do you have to change in order to, for instance, have fewer snowflakes fall from the sky?
AlumiuN
DieHard Wolfer
DieHard Wolfer


Joined: 29 Nov 2007
Last Visit: 1:21 ago.

Topics: 38
Posts: 2483
Location: Christchurch, New Zealand
newzealand.gif

PostPosted: Fri Sep 05, 2014 5:03 pm
   Subject: Re: Amount of snow falling
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

I think this is what you have to do. In the DrawSnow function, change the line:

::: CODE :::
for(int i = 0; i < MAXPOINTS; i++)


to

::: CODE :::
for(int i = 0; i < snowAmount; i++)


Where snowAmount is the amount of snow you want. However, you can't make it any more than MAXPOINTS, so if you want to make it heavier I'm not sure what you'd have to do.
Tricob
Moderator
<B>Moderator</B>


Joined: 14 Mar 2005
Last Visit: 5:19 ago.

Topics: 163
Posts: 8194
Location: Neo-traditions, Inc.
usa.gif

PostPosted: Fri Sep 05, 2014 5:17 pm
   Subject: Re: Amount of snow falling
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

AlumiuN wrote:
::: CODE :::
for(int i = 0; i < snowAmount; i++)


Where snowAmount is the amount of snow you want. However, you can't make it any more than MAXPOINTS, so if you want to make it heavier I'm not sure what you'd have to do.

In WL_ATMOS.CPP, look for the line:
::: CODE :::
#define MAXPOINTS 400
Change this to whatever you want the maximum number of snowflakes/raindrops you want.
This does increase the amount of stars in the sky though, so let's fix that. In the DrawStarSky function, change MAXPOINTS to 400, and you're good to go.

I believe that's all you need to do.
ronwolf1705
Moderator
<B>Moderator</B>


Joined: 31 Jul 2006
Last Visit: 0:07 ago.

Topics: 73
Posts: 3765

blank.gif

PostPosted: Fri Sep 05, 2014 5:53 pm
   Subject: Re: Amount of snow falling
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Thanks for the help, guys! I went with AlumiuN's method, as it allows me some more flexibility with regards to the amount of snowfall on different levels as well (e.g. on one level it can be snowing heavily, on another just lightly).
Tricob
Moderator
<B>Moderator</B>


Joined: 14 Mar 2005
Last Visit: 5:19 ago.

Topics: 163
Posts: 8194
Location: Neo-traditions, Inc.
usa.gif

PostPosted: Fri Sep 05, 2014 7:37 pm
   Subject: Re: Amount of snow falling
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Ron - All my code does is increase the maximum amount of snow or rain the code can use. It's meant to be used with AlumiuN's code, not in lieu of it. Smile
ronwolf1705
Moderator
<B>Moderator</B>


Joined: 31 Jul 2006
Last Visit: 0:07 ago.

Topics: 73
Posts: 3765

blank.gif

PostPosted: Sat Sep 06, 2014 7:51 am
   Subject: Re: Amount of snow falling
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

Ah, I see. Thanks! Though I might not need it now, perhaps it could be useful in the feature (or for anyone else wanting to increase the max). Smile
Display posts from previous:   
Post new topicReply to topic Time synchronized with the forum server time
DieHard Wolfers Forum Index -> SDL Code Crackers View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page TopView Next Topic
Page 1 of 1
Jump to:  

Related topics
 Topics   Replies   Views   Last Post 
No new posts Starry sky?
Author: Raziel
11 1750 Wed Jun 07, 2017 1:21 pm
Tricob View latest post
No new posts [Help] Two or Three Weapons One Button (W/ WSJ Reload code)
Author: RichterBelmont12
25 3079 Wed Nov 11, 2009 8:39 pm
WSJ View latest post
No new posts [Help} Rain, Star Sky and Snow wried colors Using Doom Color
Author: RichterBelmont12
5 1039 Fri Nov 06, 2009 6:10 am
ronwolf1705 View latest post
No new posts (HElp) Getting Rid of the Change Screen Size opition
Author: RichterBelmont12
3 831 Wed Jul 22, 2009 7:07 pm
RichterBelmont12 View latest post
No new posts [Tutorial] Three Solutions in One - Enemy AI
Author: BrotherTank
0 1271 Wed Feb 11, 2009 9:45 pm
BrotherTank View latest post
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
   You cannot delete your posts in this forum
You cannot vote in polls in this forum


Copyright ©2003-2008 DieHard Wolfers
A Modified subBunker Theme by BrotherTank
Powered by phpBB © 2001, 2005 phpBB Group