Page 1 of 1
Clocks
Posted: Tue Jun 03, 2003 3:27 pm
by LEgionOfDeicide
I have noticed that the clocks in the game actually have hands that change over time. Is it possible to set the clocks to the server time? This would be a really nice feature on the late night DM's. You could actually read the time and no that you have stayed awake for far to long.
Posted: Tue Jun 03, 2003 5:54 pm
by jv_map
Hmm if there only was a time cvar. Maybe you can retrieve the server time from the sv_serverid cvar

Then it should be possible 8).
BTW I never noticed these moving clocks

Posted: Wed Jun 04, 2003 10:58 am
by mohaa_rox
where are those clocks??????
Posted: Thu Jun 05, 2003 9:57 am
by LEgionOfDeicide
I find them under Static/Furniture then there are about 3 clocks. It seems that when I start a new server, it sets the time at 3 oclock. If the server has been running awhile and had gone through several maps, the time is still constant. It must be reading a time or clock from somewhere.
Posted: Thu Jun 05, 2003 11:43 am
by jv_map
I found this in clock.shader:
Code: Select all
static_clockface1
{
qer_editorimage textures/clock/clockface1.tga
nomipmaps
nopicmip
{
clampmap textures/clock/clockface1.tga
depthwrite
}
///////////////////////////////////////////
///hourhand
///////////////////////////////////////////
{
clampmap textures/clock/hourhand.tga
alphafunc GE128
tcMod rotate .008333333 180
}
///////////////////////////////////////////
///minutehand
///////////////////////////////////////////
{
clampmap textures/clock/minutehand.tga
alphafunc GE128
tcMod rotate .1 45
}
{
map $lightmap
rgbGen static
blendFunc GL_DST_COLOR GL_ZERO
depthfunc equal
}
}
As you can see both hands rotate slowly, both a different speed. Nice detail, and nicely spotted

Posted: Thu Jun 05, 2003 12:40 pm
by LEgionOfDeicide
If only we could link the clock hands to the time. This would be so cool.