Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
G2O Weather/Time control functions
#1
Hi everyone. I've recently got an idea what you can add in G2O. Here are some functions examples with short descriptions:

Java
  1. void setMinuteDuration(int time_in_miliseconds) // this function change minute duration in game. Default minute duration is about 4 seconds.
  2.  
  3. void setWeatherConditions(int id) // this function sets weather conditions. Default is raining, we can change it to snowing or completly disable weather conditions.
  4.  
  5. void setWeatherBeginTime(int hour,int minute) // this function sets time when it start rains/snows.
  6.  
  7. void setWeatherEndTime(int hour, int minute) // this function sets time when the rain/snow ends.



Of course these are only examples. I don't know if return functions also could be useful in some way. What do you think guys?
If any of these functions can be implement?

(btw sorry for my english, i'm still learning this language Wink)
Reply
#2
In dev version is function called setDayLength, wich is almost equal to setMinuteDuration. Weather is in plans, but for now I don't know how to change it. I just know that Gothic have some predefined peroids where weather is changing.
Reply
#3
Bimbol Wrote:In dev version is function called setDayLength, wich is almost equal to setMinuteDuration. Weather is in plans, but for now I don't know how to change it. I just know that Gothic have some predefined peroids where weather is changing.

Thanks for reply, anyway, this can be very interesting feature if you learn how to set wheather periods and change weather.
Reply
#4
(20.03.2017, 21:28)Bimbol Wrote: In dev version is function called setDayLength, wich is almost equal to setMinuteDuration. Weather is in plans, but for now I don't know how to change it. I just know that Gothic have some predefined peroids where weather is changing.

Maybe this will help:

In single game

B MELLVILE B - starting rain
B TICKTOCK B - starting rain with thunderstorm

B SOUTHPARK B - the acceleration of the game
B CLERKS B - slow motion (maybe there would be some function to enable/disable this)
Discord: I'm not a spy...#9943.
GG: 60474243.

[Image: OsmithREV.gif]
[Image: 76561198181768479.png]
Reply
#5
Tkanks, I will take a look at this Smile
Reply
#6
Also useful could be these commands in single-player console (F2):
zStartRain
zStartSnow
Reply
#7
(22.03.2017, 11:41)Patrix Wrote: Also useful could be these commands in single-player console (F2):
zStartRain
zStartSnow

rly? Need to check
Discord: I'm not a spy...#9943.
GG: 60474243.

[Image: OsmithREV.gif]
[Image: 76561198181768479.png]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  G2O Missing functions to add Mattwell 6 6,698 03.02.2018, 00:53
Last Post: Marko
  Time stamp in game and the server console Silvio 0 1,630 10.10.2015, 09:52
Last Post: Silvio

Forum Jump:


Users browsing this thread: 1 Guest(s)