Hi guys, was wondering, The heavy script coders among you think its possible to make the time of day different for a player depending on where he is on the map, like two time zones, i want the coast to be pitch black night and then as you pass say Zelen it needs to become dawn, so essentially the further north you go the closer it gets to 12'clock noon, and the further south you go the closer it gets to 12'o clock midnight? any one up for this challange?
and is it possible. if so what are the major pro's and cons?
I feel Chernarus is big enough to make this seemless, if its possible in code?
I'm sitting on an idea to spice dayz up a bit and this is the main component for what I am planning.
If a script, Pseudo code speaking, Could check players POS on the Y axis (between north and south)
and set the time accordingly as they move about. then this will work.
Chernarus has a Ymax of 15360 if memory serves, so then from twelve noon at max north
devide 15360 by 12 hours = 1280 (12 hours not 24, cuz we only go from noon to midnight)
you can advance time or rewind time by ONE hour for every 1280 units a player moves in one or the other direction between north and south.
Also since I don't want to change Spawn points for players, essentially you will always spawn in the dark on the coast, at 12 midnight or close to it, and from there the magic should start to work.
and optionally after 12hours this entire math could flip over and south becomes day and north night, but that is not important, just a footnote.
Over to you guys...
and is it possible. if so what are the major pro's and cons?
I feel Chernarus is big enough to make this seemless, if its possible in code?
I'm sitting on an idea to spice dayz up a bit and this is the main component for what I am planning.
If a script, Pseudo code speaking, Could check players POS on the Y axis (between north and south)
and set the time accordingly as they move about. then this will work.
Chernarus has a Ymax of 15360 if memory serves, so then from twelve noon at max north
devide 15360 by 12 hours = 1280 (12 hours not 24, cuz we only go from noon to midnight)
you can advance time or rewind time by ONE hour for every 1280 units a player moves in one or the other direction between north and south.
Also since I don't want to change Spawn points for players, essentially you will always spawn in the dark on the coast, at 12 midnight or close to it, and from there the magic should start to work.
and optionally after 12hours this entire math could flip over and south becomes day and north night, but that is not important, just a footnote.
Over to you guys...