Clocks

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
LEgionOfDeicide
Lance Corporal
Posts: 14
Joined: Mon Feb 24, 2003 4:43 pm

Clocks

Post 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.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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 :(
Image
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

where are those clocks??????
Live to map, not map to live.
-mohaa_rox, .map
moderator
LEgionOfDeicide
Lance Corporal
Posts: 14
Joined: Mon Feb 24, 2003 4:43 pm

Post 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.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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 :wink:
Image
LEgionOfDeicide
Lance Corporal
Posts: 14
Joined: Mon Feb 24, 2003 4:43 pm

Post by LEgionOfDeicide »

If only we could link the clock hands to the time. This would be so cool.
Post Reply