Clock

From Custom Map Makers Wiki
Revision as of 11:00, 9 November 2013 by JRandomNoob (talk | contribs) (Created page with "This clock is similar to the one found in Swim, composed of three func_rotating entities, but the hands rotate around origin brushes instead which...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This clock is similar to the one found in Swim, composed of three func_rotating entities, but the hands rotate around origin brushes instead which allows you to easily move it to an arbitrary spot on your map. The speed values are exactly the same (specified in degrees per second). UrT has no provisions for a true real-time clock so the hands always start from the same position on every map load or round start.

Save the following code as a plain text file with .map extension and import it into Radiant (File -> Import). The hour marks are a single func_group so you can delete them easily. If you need to rotate the clock by 90 or 270 degrees around the Z (vertical) axis, you have to change the rotation plane for each hand: select a hand, press N to open the entity inspector, and untick “y_axis” and tick “x_axis” (alternatively you can set "spawnflags" "4"). Otherwise the hands will start rotating through the clock face;-) If you rotate the clock around the Z axis by 180 or 270 degrees you (also) have to change the direction of rotation for each hand (remove the minus from the speed value), otherwise you’ll get a, well, counter-clock.

// entity 0
{
"classname" "worldspawn"
// brush 0
{
( 13 1 16 ) ( 13 0 16 ) ( -16 1 16 ) common/caulk 56 48 0 0.125 0.125 134217728 0 0
( 13 2 16 ) ( -16 2 16 ) ( 13 2 -9 ) common/caulk 56 0 0 0.125 0.125 134217728 0 0
( 16 1 17 ) ( 16 1 -8 ) ( 16 0 17 ) common/caulk 16 8 0 0.125 0.125 134217728 0 0
( -15 0 -16 ) ( 14 0 -16 ) ( -15 1 -16 ) common/caulk 48 48 0 0.125 0.125 134217728 0 0
( -16 0 -9 ) ( -16 0 16 ) ( 13 0 -9 ) common/caulk 56 0 0 0.125 0.125 134217728 0 0
( -16 0 -9 ) ( -16 1 -9 ) ( -16 0 16 ) common/caulk 16 0 0 0.125 0.125 134217728 0 0
}
}
// entity 1
// seconds
{
"classname" "func_rotating"
"speed" "-6"
"spawnflags" "8"
// brush 0
{
( 1 5 1 ) ( 1 4 1 ) ( -1 5 1 ) common/origin 0 26 0 0.5 0.5 134217728 0 0
( 1 5 1 ) ( -1 5 1 ) ( 1 5 -1 ) common/origin 0 10 0 0.5 0.5 134217728 0 0
( 1 5 1 ) ( 1 5 -1 ) ( 1 4 1 ) common/origin 38 10 0 0.5 0.5 134217728 0 0
( -1 4 -1 ) ( 1 4 -1 ) ( -1 5 -1 ) common/origin 0 26 0 0.5 0.5 134217728 0 0
( -1 4 -1 ) ( -1 4 1 ) ( 1 4 -1 ) common/origin 0 10 0 0.5 0.5 134217728 0 0
( -1 4 -1 ) ( -1 5 -1 ) ( -1 4 1 ) common/origin 38 10 0 0.5 0.5 134217728 0 0
}
// brush 1
{
( -1 4 -58 ) ( -1 4 -122 ) ( -1 5 -122 ) common/caulk 32 0 -90 0.125 0.125 134217728 0 0
( 1 5 -58 ) ( 1 5 -122 ) ( 1 4 -122 ) common/caulk 32 0 -90 0.125 0.125 134217728 0 0
( 1 4 -58 ) ( 1 4 -122 ) ( -1 4 -122 ) common/caulk 32 0 -90 0.125 0.125 134217728 0 0
( -1 5 -58 ) ( -1 5 -122 ) ( 1 5 -122 ) common/caulk 32 0 -90 0.125 0.125 134217728 0 0
( -1 5 -122 ) ( -1 4 -122 ) ( 1 4 -122 ) common/caulk 0 0 90 0.125 -0.125 134217728 0 0
( -5 4 6 ) ( -5 5 6 ) ( -3 5 6 ) common/caulk 0 0 90 0.125 -0.125 134217728 0 0
}
}
// entity 2
// minutes
{
"classname" "func_rotating"
"speed" "-0.1"
"spawnflags" "8"
// brush 0
{
( 1 4 1 ) ( 1 3 1 ) ( -1 4 1 ) common/origin 0 24 0 0.5 0.5 134217728 0 0
( 1 4 1 ) ( -1 4 1 ) ( 1 4 -1 ) common/origin 0 10 0 0.5 0.5 134217728 0 0
( 1 4 1 ) ( 1 4 -1 ) ( 1 3 1 ) common/origin 40 10 0 0.5 0.5 134217728 0 0
( -1 3 -1 ) ( 1 3 -1 ) ( -1 4 -1 ) common/origin 0 24 0 0.5 0.5 134217728 0 0
( -1 3 -1 ) ( -1 3 1 ) ( 1 3 -1 ) common/origin 0 10 0 0.5 0.5 134217728 0 0
( -1 3 -1 ) ( -1 4 -1 ) ( -1 3 1 ) common/origin 40 10 0 0.5 0.5 134217728 0 0
}
// brush 1
{
( -65 3 -42 ) ( -103 3 3 ) ( -100 3 5 ) common/caulk 16 0 0 0.125 0.125 134217728 0 0
( -62 4 -40 ) ( -100 4 5 ) ( -103 4 3 ) common/caulk 16 0 0 0.125 0.125 134217728 0 0
( -99 64 3 ) ( -97 64 3 ) ( -99 -64 3 ) common/caulk 16 0 0 0.125 0.125 134217728 0 0
( -95 64 -3 ) ( -100 64 -3 ) ( -95 -64 -3 ) common/caulk 16 0 0 0.125 0.125 134217728 0 0
( -103 64 -1 ) ( -103 64 1 ) ( -103 -64 -1 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 6 64 3 ) ( 6 64 0 ) ( 6 -64 3 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
}
}
// entity 3
// hours
{
"classname" "func_rotating"
"speed" "-0.00833333333333333333333333333333333"
"spawnflags" "8"
// brush 0
{
( 1 3 1 ) ( 1 2 1 ) ( -1 3 1 ) common/origin 0 22 0 0.5 0.5 134217728 0 0
( 1 3 1 ) ( -1 3 1 ) ( 1 3 -1 ) common/origin 0 10 0 0.5 0.5 134217728 0 0
( 1 3 1 ) ( 1 3 -1 ) ( 1 2 1 ) common/origin 42 10 0 0.5 0.5 134217728 0 0
( -1 2 -1 ) ( 1 2 -1 ) ( -1 3 -1 ) common/origin 0 22 0 0.5 0.5 134217728 0 0
( -1 2 -1 ) ( -1 2 1 ) ( 1 2 -1 ) common/origin 0 10 0 0.5 0.5 134217728 0 0
( -1 2 -1 ) ( -1 3 -1 ) ( -1 2 1 ) common/origin 42 10 0 0.5 0.5 134217728 0 0
}
// brush 1
{
( 2 2 -7 ) ( -23 2 19 ) ( -19 2 23 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 7 3 -2 ) ( -19 3 23 ) ( -23 3 19 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 2 1880 -6 ) ( -1 1880 -6 ) ( 2 1752 -6 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -5 64 -7 ) ( -5 64 -4 ) ( -5 -64 -7 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 5 64 -1 ) ( 5 64 -2 ) ( 5 -64 -1 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -2 64 88 ) ( 2 64 88 ) ( -2 -64 88 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
}
}
// entity 4
// the hour marks
{
"classname" "func_group"
// brush 0
{
( -96 1 -7 ) ( -96 -7 -7 ) ( -96 1 2 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -96 1 -4 ) ( -110 1 -4 ) ( -96 -7 -4 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -128 -7 1 ) ( -128 -7 -8 ) ( -128 1 1 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -110 0 2 ) ( -96 0 2 ) ( -110 0 -7 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -110 -7 4 ) ( -110 1 4 ) ( -96 -7 4 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -100 1 -512 ) ( -98 1 -512 ) ( -100 1 -384 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
}
// brush 1
{
( -113 1 61 ) ( -113 0 61 ) ( -85 1 45 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -85 0 44 ) ( -95 0 44 ) ( -85 0 54 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -85 1 45 ) ( -85 0 45 ) ( -81 1 52 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -109 0 68 ) ( -109 1 68 ) ( -81 1 52 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -95 1 54 ) ( -95 1 44 ) ( -85 1 54 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -109 1 68 ) ( -109 0 68 ) ( -113 0 61 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
}
// brush 2
{
( -113 0 -61 ) ( -113 1 -61 ) ( -85 0 -45 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -85 1 -44 ) ( -95 1 -44 ) ( -85 1 -54 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -85 0 -45 ) ( -85 1 -45 ) ( -81 0 -52 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -109 1 -68 ) ( -109 0 -68 ) ( -81 0 -52 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -95 0 -54 ) ( -95 0 -44 ) ( -85 0 -54 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -109 0 -68 ) ( -109 1 -68 ) ( -113 1 -61 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
}
// brush 3
{
( -45 0 85 ) ( -45 1 85 ) ( -52 1 81 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -45 0 81 ) ( -52 0 81 ) ( -45 0 96 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -61 0 113 ) ( -61 1 113 ) ( -45 1 85 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -61 1 113 ) ( -61 0 113 ) ( -68 1 109 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -52 1 96 ) ( -52 1 81 ) ( -45 1 96 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -68 1 109 ) ( -68 0 109 ) ( -52 0 81 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
}
// brush 4
{
( 7 1 128 ) ( 7 -7 128 ) ( -2 1 128 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 4 1 128 ) ( 4 1 114 ) ( 4 -7 128 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -1 -7 96 ) ( 8 -7 96 ) ( -1 1 96 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -2 0 114 ) ( -2 0 128 ) ( 7 0 114 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -4 -7 114 ) ( -4 1 114 ) ( -4 -7 128 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -100 1 -512 ) ( -98 1 -512 ) ( -100 1 -384 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
}
// brush 5
{
( -45 1 -85 ) ( -45 0 -85 ) ( -52 0 -81 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -45 1 -81 ) ( -52 1 -81 ) ( -45 1 -96 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -61 1 -113 ) ( -61 0 -113 ) ( -45 0 -85 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -61 0 -113 ) ( -61 1 -113 ) ( -68 0 -109 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -52 0 -96 ) ( -52 0 -81 ) ( -45 0 -96 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -68 0 -109 ) ( -68 1 -109 ) ( -52 1 -81 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
}
// brush 6
{
( 45 1 85 ) ( 45 0 85 ) ( 52 0 81 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 45 1 81 ) ( 52 1 81 ) ( 45 1 96 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 61 1 113 ) ( 61 0 113 ) ( 45 0 85 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 61 0 113 ) ( 61 1 113 ) ( 68 0 109 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 52 0 96 ) ( 52 0 81 ) ( 45 0 96 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 68 0 109 ) ( 68 1 109 ) ( 52 1 81 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
}
// brush 7
{
( 7 1 -96 ) ( 7 -7 -96 ) ( -2 1 -96 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 4 1 -96 ) ( 4 1 -110 ) ( 4 -7 -96 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -1 -7 -128 ) ( 8 -7 -128 ) ( -1 1 -128 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -2 0 -110 ) ( -2 0 -96 ) ( 7 0 -110 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -4 -7 -110 ) ( -4 1 -110 ) ( -4 -7 -96 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -100 1 -512 ) ( -98 1 -512 ) ( -100 1 -384 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
}
// brush 8
{
( 113 0 61 ) ( 113 1 61 ) ( 85 0 45 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 85 1 44 ) ( 95 1 44 ) ( 85 1 54 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 85 0 45 ) ( 85 1 45 ) ( 81 0 52 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 109 1 68 ) ( 109 0 68 ) ( 81 0 52 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 95 0 54 ) ( 95 0 44 ) ( 85 0 54 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 109 0 68 ) ( 109 1 68 ) ( 113 1 61 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
}
// brush 9
{
( 128 1 -7 ) ( 128 -7 -7 ) ( 128 1 2 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 128 1 -4 ) ( 114 1 -4 ) ( 128 -7 -4 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 96 -7 1 ) ( 96 -7 -8 ) ( 96 1 1 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 114 0 2 ) ( 128 0 2 ) ( 114 0 -7 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 114 -7 4 ) ( 114 1 4 ) ( 128 -7 4 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( -100 1 -512 ) ( -98 1 -512 ) ( -100 1 -384 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
}
// brush 10
{
( 45 0 -85 ) ( 45 1 -85 ) ( 52 1 -81 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 45 0 -81 ) ( 52 0 -81 ) ( 45 0 -96 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 61 0 -113 ) ( 61 1 -113 ) ( 45 1 -85 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 61 1 -113 ) ( 61 0 -113 ) ( 68 1 -109 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 52 1 -96 ) ( 52 1 -81 ) ( 45 1 -96 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 68 1 -109 ) ( 68 0 -109 ) ( 52 0 -81 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
}
// brush 11
{
( 113 1 -61 ) ( 113 0 -61 ) ( 85 1 -45 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 85 0 -44 ) ( 95 0 -44 ) ( 85 0 -54 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 85 1 -45 ) ( 85 0 -45 ) ( 81 1 -52 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 109 0 -68 ) ( 109 1 -68 ) ( 81 1 -52 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 95 1 -54 ) ( 95 1 -44 ) ( 85 1 -54 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
( 109 1 -68 ) ( 109 0 -68 ) ( 113 0 -61 ) common/caulk 0 0 0 0.125 0.125 134217728 0 0
}
}