Project 1999

Go Back   Project 1999 > Blue Community > Blue Server Chat

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 04-24-2013, 04:32 PM
seped seped is offline
Skeleton


Join Date: Apr 2013
Posts: 15
Default

Quote:
Originally Posted by LiQuid [You must be logged in to view images. Log in or Register.]
And when it does rain it seems to rain way too long... If I'm camping something outdoors and it starts to rain I prepare to hate my life for the next few hours at least.

Stupid rain.
Not too surprising, here's your culprit

Code:
if(zone->zone_weather != zone->weather_type)
weatherTime = (MakeRandomInt(1800, 7200) + 30) * 2000;
else
weatherTime = (MakeRandomInt(900, 2700) + 30) * 1000;
Assuming milliseconds, you're looking at a minimal of an hour of rain as soon as it starts, up to 4 hours and change before it even has a chance to stop raining, and then it only has a 20% chance to stop raining at each check. Unless I'm missing something (which with a scary code base like this is likely) it's going to be an average of 2.5 hours per check while raining, then 30 minutes per check while not raining. It really seems like this if statement should be reversed to give the desired behavior, unless counter-intuitively zone->weather_type is not the default weather state of a zone (dry/raining). Huge caveats as I've never looked at the code base before just now.
__________________
Enacra - DE Necro
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:05 AM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.