@Loopix: Something like this should do it
Code:
define hours_a_day, 24;
define days_a_month, 30;
define months_a_year, 12;
define time_offset, 6;
var time_hour;
var time_day;
var time_month;
var time_year;
function TimeCounter()
{
var check;
while(1)
{
while(1)
{
time_hour = sun_angle.pan/(360/hours_a_day);
time_hour += time_offset;
time_hour %= hours_a_day;
if(time_hour > 0.9){check = 1;}
if(time_hour < 0.5 && check){check = 0; break;}
wait(1);
}
time_day += 1;
if(time_day == days_a_month)
{
time_day = 0;
time_month += 1;
if(time_month == months_a_year)
{
time_year += 1;
time_month = 0;
}
}
wait(1);
}
}
@Manslayer101: I don´t know either what you mean with quake3 style...