Joe Mama@Posted: Sun Oct 14, 2007 1:50 am :
Well, for whatever reason, I decided to create a digital clock on a wall. :D

Constructing it was easy, but coding is where I am in deep.

I have a very bad method for the clock as seen below.

I don't want to spend the next three weeks typing in the individual codes for each of the 7-segment numbers.
How could I create a script that will count down one minute without entering each number?

My size function does not work, please forgive me!
"intro.script"
Code:
#include "maps/will/uacsec/times.script"


void clear_clock ()
{
   $hr1_1.setColor (.1,.1,0);
   $hr1_2.setColor (.1,.1,0);
   $hr1_3.setColor (.1,.1,0);
   $hr1_4.setColor (.1,.1,0);
   $hr1_5.setColor (.1,.1,0);
   $hr1_6.setColor (.1,.1,0);
   $hr1_7.setColor (.1,.1,0);
   $hr2_1.setColor (.1,.1,0);
   $hr2_2.setColor (.1,.1,0);
   $hr2_3.setColor (.1,.1,0);
   $hr2_4.setColor (.1,.1,0);
   $hr2_5.setColor (.1,.1,0);
   $hr2_6.setColor (.1,.1,0);
   $hr2_7.setColor (.1,.1,0);

   $min1_1.setColor (.1,.1,0);
   $min1_2.setColor (.1,.1,0);
   $min1_3.setColor (.1,.1,0);
   $min1_4.setColor (.1,.1,0);
   $min1_5.setColor (.1,.1,0);
   $min1_6.setColor (.1,.1,0);
   $min1_7.setColor (.1,.1,0);
   $min2_1.setColor (.1,.1,0);
   $min2_2.setColor (.1,.1,0);
   $min2_3.setColor (.1,.1,0);
   $min2_4.setColor (.1,.1,0);
   $min2_5.setColor (.1,.1,0);
   $min2_6.setColor (.1,.1,0);
   $min2_7.setColor (.1,.1,0);

   $sec1_1.setColor (.1,.1,0);
   $sec1_2.setColor (.1,.1,0);
   $sec1_3.setColor (.1,.1,0);
   $sec1_4.setColor (.1,.1,0);
   $sec1_5.setColor (.1,.1,0);
   $sec1_6.setColor (.1,.1,0);
   $sec1_7.setColor (.1,.1,0);
   $sec2_1.setColor (.1,.1,0);
   $sec2_2.setColor (.1,.1,0);
   $sec2_3.setColor (.1,.1,0);
   $sec2_4.setColor (.1,.1,0);
   $sec2_5.setColor (.1,.1,0);
   $sec2_6.setColor (.1,.1,0);
   $sec2_7.setColor (.1,.1,0);
}


void clock_idle ()
{
/*********************************
********CLOCK*IDLE****************
*********************************/
while (1) {
   $hr1_2.setColor (.1,.1,0);
   $hr1_6.setColor (.5,.15,0);
   $hr1_1.setColor (1,.5,.25);
   $hr1_7.setColor (.5,.15,0);
   $hr1_3.setColor (1,.5,.25);
sys.wait(0.1);
   $hr1_6.setColor (.1,.1,0);
   $hr1_1.setColor (.5,.15,0);
   $hr2_1.setColor (1,.5,.25);
   $hr1_7.setColor (.1,.1,0);
   $hr1_3.setColor (.5,.15,0);
   $hr2_3.setColor (1,.5,.25);
sys.wait(0.1);
   $hr1_1.setColor (.1,.1,0);
   $hr2_1.setColor (.5,.15,0);
   $min1_1.setColor (1,.5,.25);
   $hr1_3.setColor (.1,.1,0);
   $hr2_3.setColor (.5,.15,0);
   $min1_3.setColor (1,.5,.25);
sys.wait(0.1);
   $hr2_1.setColor (.1,.1,0);
   $min1_1.setColor (.5,.15,0);
   $min2_1.setColor (1,.5,.25);
   $hr2_3.setColor (.1,.1,0);
   $min1_3.setColor (.5,.15,0);
   $min2_3.setColor (1,.5,.25);
sys.wait(0.1);
   $min1_1.setColor (.1,.1,0);
   $min2_1.setColor (.5,.15,0);
   $sec1_1.setColor (1,.5,.25);
   $min1_3.setColor (.1,.1,0);
   $min2_3.setColor (.5,.15,0);
   $sec1_3.setColor (1,.5,.25);
sys.wait(0.1);
   $min2_1.setColor (.1,.1,0);
   $sec1_1.setColor (.5,.15,0);
   $sec2_1.setColor (1,.5,.25);
   $min2_3.setColor (.1,.1,0);
   $sec1_3.setColor (.5,.15,0);
   $sec2_3.setColor (1,.5,.25);
sys.wait(0.1);
   $sec1_1.setColor (.1,.1,0);
   $sec2_1.setColor (.5,.15,0);
   $sec2_4.setColor (1,.5,.25);
   $sec1_3.setColor (.1,.1,0);
   $sec2_3.setColor (.5,.15,0);
   $sec2_5.setColor (1,.5,.25);
sys.wait(0.1);
   $sec2_1.setColor (.1,.1,0);
   $sec2_4.setColor (.5,.15,0);
   $sec2_2.setColor (1,.5,.25);
   $sec2_3.setColor (.1,.1,0);
   $sec2_5.setColor (.1,.1,0);
sys.wait(0.1);
   $sec2_4.setColor (.1,.1,0);
   $sec2_5.setColor (.1,.1,0);
   $sec2_2.setColor (.5,.15,0);
   $sec1_2.setColor (1,.5,.25);
sys.wait(0.1);
   $sec2_2.setColor (.1,.1,0);
   $sec1_2.setColor (.5,.15,0);
   $min2_2.setColor (1,.5,.25);
sys.wait(0.1);
   $sec1_2.setColor (.1,.1,0);
   $min2_2.setColor (.5,.15,0);
   $min1_2.setColor (1,.5,.25);
sys.wait(0.1);
   $min2_2.setColor (.1,.1,0);
   $min1_2.setColor (.5,.15,0);
   $hr2_2.setColor (1,.5,.25);
sys.wait(0.1);
   $min1_2.setColor (.1,.1,0);
   $hr2_2.setColor (.5,.15,0);
   $hr1_2.setColor (1,.5,.25);
sys.wait(0.1);
   $hr2_2.setColor (.1,.1,0);
   $hr1_2.setColor (.5,.15,0);
   $hr1_6.setColor (1,.5,.25);
   $hr1_7.setColor (1,.5,.25);
sys.wait(0.1);
}
}

void countdown_60sec ()
{
   sys.killthread ("clock_idle");
sys.wait(.1);
   clear_clock ();

   time60secSet ();

}

void main ()
{
   clear_clock ();
   thread clock_idle ();
}


"times.script"
Code:
void time60secCountdown ()
{   
sys.print("HELLO");
}


void time60secSet ()
{
////////////MINUTE/SET/////////////////
   $hr1_1.setColor (1,.5,.25);
   $hr1_3.setColor (1,.5,.25);
   $hr1_4.setColor (1,.5,.25);
   $hr1_5.setColor (1,.5,.25);
   $hr1_6.setColor (1,.5,.25);
   $hr1_7.setColor (1,.5,.25);
///////////////////////////////////////
   $hr2_4.setColor (1,.5,.25);
   $hr2_5.setColor (1,.5,.25);
///////////////////////////////////////

/////////SECOND/SET////////////////////
   $min1_1.setColor (1,.5,.25);
   $min1_3.setColor (1,.5,.25);
   $min1_4.setColor (1,.5,.25);
   $min1_5.setColor (1,.5,.25);
   $min1_6.setColor (1,.5,.25);
   $min1_7.setColor (1,.5,.25);
///////////////////////////////////////
   $min2_1.setColor (1,.5,.25);
   $min2_3.setColor (1,.5,.25);
   $min2_4.setColor (1,.5,.25);
   $min2_5.setColor (1,.5,.25);
   $min2_6.setColor (1,.5,.25);
   $min2_7.setColor (1,.5,.25);
///////////////////////////////////////

//////////MILISECONDS/SET//////////////
   $sec1_1.setColor (1,.5,.25);
   $sec1_3.setColor (1,.5,.25);
   $sec1_4.setColor (1,.5,.25);
   $sec1_5.setColor (1,.5,.25);
   $sec1_6.setColor (1,.5,.25);
   $sec1_7.setColor (1,.5,.25);
///////////////////////////////////////
   $sec2_1.setColor (1,.5,.25);
   $sec2_3.setColor (1,.5,.25);
   $sec2_4.setColor (1,.5,.25);
   $sec2_5.setColor (1,.5,.25);
   $sec2_6.setColor (1,.5,.25);
   $sec2_7.setColor (1,.5,.25);
///////////////////////////////////////
sys.wait(.5);
time60secCountdown ();
}


"intro.map"
Code:
Version 2
// entity 0
{
"classname" "worldspawn"
// primitive 0
{
brushDef3
{
  ( 0 0 -1 -64 ) ( ( -0.0000000042 0.03125 1.9999997616 ) ( -0.0312500037 -0.0000000042 4.0000004768 ) ) "textures/common/caulk" 0 0 0
  ( 0 -1 0 0 ) ( ( -0.0000000042 0.03125 1.9999997616 ) ( -0.0312500037 -0.0000000042 4.0000004768 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -136 ) ( ( -0.0000000042 0.03125 1.9999997616 ) ( -0.0312500037 -0.0000000042 4.0000004768 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 128 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 0 1 -16 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 1 0 -44 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
}
}
// primitive 1
{
brushDef3
{
  ( 0 0 1 -64 ) ( ( -0.0000000042 0.03125 1.9999997616 ) ( -0.0312500037 -0.0000000042 4.0000004768 ) ) "textures/common/caulk" 0 0 0
  ( 0 -1 0 0 ) ( ( -0.0000000042 0.03125 1.9999997616 ) ( -0.0312500037 -0.0000000042 4.0000004768 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -136 ) ( ( -0.0000000042 0.03125 1.9999997616 ) ( -0.0312500037 -0.0000000042 4.0000004768 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 128 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 1 0 -44 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 0 -1 48 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
}
}
// primitive 2
{
brushDef3
{
  ( 0 -1 0 0 ) ( ( -0.0000000042 0.03125 1.9999997616 ) ( -0.0312500037 -0.0000000042 4.0000004768 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -136 ) ( ( -0.0000000042 0.03125 1.9999997616 ) ( -0.0312500037 -0.0000000042 4.0000004768 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 128 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 0 -1 16 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 1 0 -44 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 0 1 -48 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
}
}
// primitive 3
{
brushDef3
{
  ( 0 0 -1 -64 ) ( ( -0.0000000042 0.03125 1.9999997616 ) ( -0.0312500037 -0.0000000042 4.0000004768 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -136 ) ( ( -0.0000000042 0.03125 1.9999997616 ) ( -0.0312500037 -0.0000000042 4.0000004768 ) ) "textures/common/caulk" 0 0 0
  ( 0 1 0 -48 ) ( ( -0.0000000042 0.03125 1.9999997616 ) ( -0.0312500037 -0.0000000042 4.0000004768 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 128 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 0 1 -16 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 -1 0 44 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
}
}
// primitive 4
{
brushDef3
{
  ( 0 0 1 -64 ) ( ( -0.0000000042 0.03125 1.9999997616 ) ( -0.0312500037 -0.0000000042 4.0000004768 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -136 ) ( ( -0.0000000042 0.03125 1.9999997616 ) ( -0.0312500037 -0.0000000042 4.0000004768 ) ) "textures/common/caulk" 0 0 0
  ( 0 1 0 -48 ) ( ( -0.0000000042 0.03125 1.9999997616 ) ( -0.0312500037 -0.0000000042 4.0000004768 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 128 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 -1 0 44 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 0 -1 48 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
}
}
// primitive 5
{
brushDef3
{
  ( 0 0 1 -64 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -136 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( 0 1 0 -192 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 128 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 0 -1 48 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 -1 0 148 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
}
}
// primitive 6
{
brushDef3
{
  ( 0 0 -1 -64 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -136 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( 0 1 0 -192 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 128 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 -1 0 148 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 0 1 -16 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
}
}
// primitive 7
{
brushDef3
{
  ( 1 0 0 -136 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( 0 1 0 -192 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 128 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 0 1 -48 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 -1 0 148 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 0 -1 16 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
}
}
// primitive 8
{
brushDef3
{
  ( 0 0 1 -64 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 -1 0 144 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -136 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 128 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 0 -1 48 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 1 0 -148 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
}
}
// primitive 9
{
brushDef3
{
  ( 0 0 -1 -64 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 -1 0 144 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -136 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 128 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 1 0 -148 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
  ( 0 0 1 -16 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
}
}
// primitive 10
{
brushDef3
{
  ( 0 -1 0 44 ) ( ( 0 0.0312500037 5.1875 ) ( 0.03125 0 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 0.7071067691 0.7071067691 -65.0538253784 ) ( ( 0 0.03125 -4.2426381111 ) ( 0.0312500037 0 3.1250004768 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -136 ) ( ( 0.0000000037 0.0312500037 5.1874995232 ) ( 0.0312500037 -0.0000000037 -2.8750009537 ) ) "textures/common/caulk" 0 0 0
  ( 0 0.7071067691 -0.7071067691 -19.7989902496 ) ( ( 0 0.03125 4.2426381111 ) ( 0.0312500037 0 3.1250004768 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 128 ) ( ( 0.0000000012 -0.0104166679 -0.2291667163 ) ( -0.03125 -0.0000000037 -1.375 ) ) "textures/base_trim/sfltrim7" 0 0 0
  ( 0 1 0 -48 ) ( ( 0.0000000012 -0.0104166679 -0.2291670442 ) ( -0.03125 -0.0000000037 4.75 ) ) "textures/base_trim/sfltrim7" 0 0 0
}
}
// primitive 11
{
brushDef3
{
  ( 0 0 1 -48 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 -0.7071067691 -0.7071067691 65.0538253784 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -136 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 0.7071067691 -0.7071067691 -70.7106781006 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 128 ) ( ( 0.010416667 0 1.5 ) ( 0 0.03125 1.5 ) ) "textures/base_trim/sfltrim7" 0 0 0
  ( 0 0 -1 44 ) ( ( 0.010416667 0 1.5 ) ( 0 0.03125 1.5 ) ) "textures/base_trim/sfltrim7" 0 0 0
}
}
// primitive 12
{
brushDef3
{
  ( 0 -1 0 48 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -136 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 1 0 -144 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 128 ) ( ( 0.010416667 0 1.5 ) ( 0 0.03125 1.5 ) ) "textures/base_trim/sfltrim7" 0 0 0
  ( 0 0 -1 20 ) ( ( 0.010416667 0 1.5 ) ( 0 0.03125 1.5 ) ) "textures/base_trim/sfltrim7" 0 0 0
  ( 0 0 1 -44 ) ( ( 0.010416667 0 1.5 ) ( 0 0.03125 1.5 ) ) "textures/base_trim/sfltrim7" 0 0 0
}
}
// primitive 13
{
brushDef3
{
  ( 0 0 -1 16 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 -0.7071067691 0.7071067691 19.7989902496 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -136 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 128 ) ( ( 0.010416667 0 1.5 ) ( 0 0.03125 1.5 ) ) "textures/base_trim/sfltrim7" 0 0 0
  ( 0 0 1 -20 ) ( ( 0.010416667 0 1.5 ) ( 0 0.03125 1.5 ) ) "textures/base_trim/sfltrim7" 0 0 0
  ( 0 0.7071067691 0.7071067691 -115.9655075073 ) ( ( 0.010416667 0 1.5 ) ( 0 0.03125 1.5 ) ) "textures/base_trim/sfltrim7" 0 0 0
}
}
// primitive 14
{
brushDef3
{
  ( 0 1 0 -148 ) ( ( 0 0.0312500037 5.1875 ) ( -0.03125 0 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 -0.7071067691 0.7071067691 70.7106781006 ) ( ( 0 0.03125 0 ) ( -0.0312500037 0 3.1250004768 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -136 ) ( ( -0.0000000037 0.0312500037 5.1875004768 ) ( -0.0312500037 -0.0000000037 3.125 ) ) "textures/common/caulk" 0 0 0
  ( 0 -0.7071067691 -0.7071067691 115.9655075073 ) ( ( 0 0.03125 0 ) ( -0.0312500037 0 3.1250004768 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 128 ) ( ( -0.0000000012 -0.0104166679 -0.2291670442 ) ( 0.03125 -0.0000000037 4.625 ) ) "textures/base_trim/sfltrim7" 0 0 0
  ( 0 -1 0 144 ) ( ( -0.0000000012 -0.0104166679 -0.2291670442 ) ( 0.03125 -0.0000000037 4.75 ) ) "textures/base_trim/sfltrim7" 0 0 0
}
}
// primitive 15
{
brushDef3
{
  ( 0 0 -1 -64 ) ( ( -0.0312500075 0.0000000084 6.0000004768 ) ( -0.0000000084 -0.0312500075 4.0000004768 ) ) "textures/common/caulk" 0 0 0
  ( 0 0 1 -64 ) ( ( -0.03125 -0.0000000084 6 ) ( 0.0000000084 -0.0312500037 -4 ) ) "textures/common/caulk" 0 0 0
  ( 0.0000002688 1 0 -191.9999237061 ) ( ( 0.0312500075 0 -4 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( -1 0.0000002687 0 -264.0000305176 ) ( ( 0.0312500075 0 5.9999990463 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( -0.0000002687 -1 0 -0.0000573369 ) ( ( 0.0312500075 0 4 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( 1 -0.0000002687 0 256.0000305176 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
}
}
// primitive 16
{
brushDef3
{
  ( 0 -1 0.0000001192 -0.0000076294 ) ( ( 0.0312500037 0 4 ) ( 0 -0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( 0 1 -0.0000001192 -192 ) ( ( 0.0312500037 0 4 ) ( 0 -0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 -0.0000001344 -255.9999847412 ) ( ( 0.0312500037 0 4 ) ( 0 -0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( -0.0000001344 0.0000001192 1 -72.0000152588 ) ( ( 0.0312500037 0 4 ) ( 0 -0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0.0000001343 -127.9999923706 ) ( ( 0.0312500037 0 4 ) ( 0 -0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( 0.0000001344 -0.0000001192 -1 64.0000076294 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
}
}
// primitive 17
{
brushDef3
{
  ( 0 -1 -0.0000001192 -0.0000076331 ) ( ( 0.0312500037 0 4 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( 0 1 0.0000001192 -192 ) ( ( 0.0312500037 0 4 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0.0000001344 -255.9999847412 ) ( ( 0.0312500037 0 4 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( -0.0000001344 0.0000001192 -1 -72.0000152588 ) ( ( 0.0312500037 0 4 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 -0.0000001343 -128 ) ( ( 0.0312500037 0 4 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( 0.0000001344 -0.0000001192 1 64 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
}
}
// primitive 18
{
brushDef3
{
  ( 0 0 -1 -64 ) ( ( 0.0000000126 0.0312500112 4.0000009537 ) ( -0.0312500075 0.0000000126 2.0000007153 ) ) "textures/common/caulk" 0 0 0
  ( 0 0 1 -64 ) ( ( 0.0000000126 -0.03125 3.9999990463 ) ( 0.0312500075 0.0000000126 -2.0000007153 ) ) "textures/common/caulk" 0 0 0
  ( 1 -0.0000004031 0 -127.9999160767 ) ( ( 0.0312500112 0 -2.0000016689 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( 0.0000004031 1 0 -200.0000152588 ) ( ( 0.0312500112 0 3.9999997616 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( -1 0.0000004031 0 -256.0000610352 ) ( ( 0.0312500112 0 2.0000016689 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( -0.0000004031 -1 0 191.9999237061 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
}
}
// primitive 19
{
brushDef3
{
  ( 0 0 -1 -64 ) ( ( -0.0000000042 -0.0312500037 1.9999997616 ) ( 0.0312500037 -0.0000000042 -4.0000004768 ) ) "textures/common/caulk" 0 0 0
  ( 0 0 1 -64 ) ( ( -0.0000000042 0.03125 1.9999997616 ) ( -0.0312500037 -0.0000000042 4.0000004768 ) ) "textures/common/caulk" 0 0 0
  ( -1 0.0000001344 0 -256 ) ( ( 0.0312500037 0 4 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( -0.0000001344 -1 0 -8.0000038147 ) ( ( 0.0312500037 0 1.9999991655 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( 1 -0.0000001343 0 -128 ) ( ( 0.0312500037 0 -4 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( 0.0000001344 1 0 0.0000117099 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
}
}
// primitive 20
{
brushDef3
{
  ( 0 0 -1 48 ) ( ( 0.03125 0 3 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 0 1 -64 ) ( ( 0.03125 0 3 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 -1 0 48 ) ( ( 0.03125 0 0 ) ( 0 0.03125 2 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -136 ) ( ( 0.03125 0 3 ) ( 0 0.03125 2 ) ) "textures/common/caulk" 0 0 0
  ( 0 1 0 -144 ) ( ( 0.03125 0 0 ) ( 0 0.03125 2 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 128 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
}
}
// primitive 21
{
brushDef3
{
  ( 0 0 -1 -64 ) ( ( 0.03125 0 3 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 0 1 -16 ) ( ( 0.03125 0 3 ) ( 0 0.03125 0 ) ) "textures/common/caulk" 0 0 0
  ( 0 -1 0 48 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( 1 0 0 -136 ) ( ( 0.03125 0 3 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( 0 1 0 -144 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0.5 ) ) "textures/common/caulk" 0 0 0
  ( -1 0 0 128 ) ( ( 0.0078125 0 -1.125 ) ( 0 0.0078125 0 ) ) "textures/base_floor/textest" 0 0 0
}
}
// primitive 22
{
patchDef2
{
  "textures/base_light/blinkydec1"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 81 39 0 0 ) ( 127.875 79 39 0 0.5 ) ( 127.875 77 39 0 1 ) )
   (  ( 127.875 81 37 0.5 0 ) ( 127.875 79 37 0.5 0.5 ) ( 127.875 77 37 0.5 1 ) )
   (  ( 127.875 81 35 1 0 ) ( 127.875 79 35 1 0.5 ) ( 127.875 77 35 1 1 ) )
  )
}
}
// primitive 23
{
patchDef2
{
  "textures/base_light/blinkydec1"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 81 29 0 0 ) ( 127.875 79 29 0 0.5 ) ( 127.875 77 29 0 1 ) )
   (  ( 127.875 81 27 0.5 0 ) ( 127.875 79 27 0.5 0.5 ) ( 127.875 77 27 0.5 1 ) )
   (  ( 127.875 81 25 1 0 ) ( 127.875 79 25 1 0.5 ) ( 127.875 77 25 1 1 ) )
  )
}
}
// primitive 24
{
patchDef2
{
  "textures/base_light/blinkydec1"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 115 39 0 0 ) ( 127.875 113 39 0 0.5 ) ( 127.875 111 39 0 1 ) )
   (  ( 127.875 115 37 0.5 0 ) ( 127.875 113 37 0.5 0.5 ) ( 127.875 111 37 0.5 1 ) )
   (  ( 127.875 115 35 1 0 ) ( 127.875 113 35 1 0.5 ) ( 127.875 111 35 1 1 ) )
  )
}
}
// primitive 25
{
patchDef2
{
  "textures/base_light/blinkydec1"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 115 29 0 0 ) ( 127.875 113 29 0 0.5 ) ( 127.875 111 29 0 1 ) )
   (  ( 127.875 115 27 0.5 0 ) ( 127.875 113 27 0.5 0.5 ) ( 127.875 111 27 0.5 1 ) )
   (  ( 127.875 115 25 1 0 ) ( 127.875 113 25 1 0.5 ) ( 127.875 111 25 1 1 ) )
  )
}
}
}
// entity 1
{
"classname" "trigger_once"
"name" "trigger_once_1"
"model" "trigger_once_1"
"origin" "32 96 0"
"call" "countdown_60sec"
// primitive 0
{
brushDef3
{
  ( 0 0 -1 -64 ) ( ( 0.0625 0 0 ) ( 0 0.0625 0 ) ) "textures/common/trigonce" 0 0 0
  ( 0 0 1 -64 ) ( ( 0.0625 0 0 ) ( 0 0.0625 0 ) ) "textures/common/trigonce" 0 0 0
  ( 0 -1 0 -96 ) ( ( 0.0625 0 0 ) ( 0 0.0625 0 ) ) "textures/common/trigonce" 0 0 0
  ( 1 0 0 -8 ) ( ( 0.0625 0 0 ) ( 0 0.0625 0 ) ) "textures/common/trigonce" 0 0 0
  ( 0 1 0 -96 ) ( ( 0.0625 0 0 ) ( 0 0.0625 0 ) ) "textures/common/trigonce" 0 0 0
  ( -1 0 0 0 ) ( ( 0.0625 0 0 ) ( 0 0.0625 0 ) ) "textures/common/trigonce" 0 0 0
}
}
}
// entity 2
{
"classname" "info_player_start"
"name" "info_player_start_2"
"origin" "-112 96 -64"
}
// entity 3
{
"classname" "func_static"
"name" "hr1_4"
"model" "hr1_4"
"origin" "127 132 37"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 133 41 0 0 ) ( 127.875 132 41 0 0.5 ) ( 127.875 131 41 0 1 ) )
   (  ( 127.875 133 37 0.5 0 ) ( 127.875 132 37 0.5 0.5 ) ( 127.875 131 37 0.5 1 ) )
   (  ( 127.875 133 33 1 0 ) ( 127.875 132 33 1 0.5 ) ( 127.875 131 33 1 1 ) )
  )
}
}
}
// entity 4
{
"classname" "func_static"
"name" "hr1_1"
"model" "hr1_1"
"origin" "127 137 42"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 133 43 0 0 ) ( 127.875 133 42 0 0.5 ) ( 127.875 133 41 0 1 ) )
   (  ( 127.875 137 43 0.5 0 ) ( 127.875 137 42 0.5 0.5 ) ( 127.875 137 41 0.5 1 ) )
   (  ( 127.875 141 43 1 0 ) ( 127.875 141 42 1 0.5 ) ( 127.875 141 41 1 1 ) )
  )
}
}
}
// entity 5
{
"classname" "light"
"name" "light_1"
"origin" "-136 96 32"
}
// entity 6
{
"classname" "func_static"
"name" "hr1_2"
"model" "hr1_2"
"origin" "127 137 32"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 133 33 0 0 ) ( 127.875 133 32 0 0.5 ) ( 127.875 133 31 0 1 ) )
   (  ( 127.875 137 33 0.5 0 ) ( 127.875 137 32 0.5 0.5 ) ( 127.875 137 31 0.5 1 ) )
   (  ( 127.875 141 33 1 0 ) ( 127.875 141 32 1 0.5 ) ( 127.875 141 31 1 1 ) )
  )
}
}
}
// entity 7
{
"classname" "func_static"
"name" "hr1_6"
"model" "hr1_6"
"origin" "127 142 37"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 143 41 0 0 ) ( 127.875 142 41 0 0.5 ) ( 127.875 141 41 0 1 ) )
   (  ( 127.875 143 37 0.5 0 ) ( 127.875 142 37 0.5 0.5 ) ( 127.875 141 37 0.5 1 ) )
   (  ( 127.875 143 33 1 0 ) ( 127.875 142 33 1 0.5 ) ( 127.875 141 33 1 1 ) )
  )
}
}
}
// entity 8
{
"classname" "func_static"
"name" "hr1_7"
"model" "hr1_7"
"origin" "127 142 27"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 143 31 0 0 ) ( 127.875 142 31 0 0.5 ) ( 127.875 141 31 0 1 ) )
   (  ( 127.875 143 27 0.5 0 ) ( 127.875 142 27 0.5 0.5 ) ( 127.875 141 27 0.5 1 ) )
   (  ( 127.875 143 23 1 0 ) ( 127.875 142 23 1 0.5 ) ( 127.875 141 23 1 1 ) )
  )
}
}
}
// entity 9
{
"classname" "func_static"
"name" "hr1_5"
"model" "hr1_5"
"origin" "127 132 27"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 133 31 0 0 ) ( 127.875 132 31 0 0.5 ) ( 127.875 131 31 0 1 ) )
   (  ( 127.875 133 27 0.5 0 ) ( 127.875 132 27 0.5 0.5 ) ( 127.875 131 27 0.5 1 ) )
   (  ( 127.875 133 23 1 0 ) ( 127.875 132 23 1 0.5 ) ( 127.875 131 23 1 1 ) )
  )
}
}
}
// entity 10
{
"classname" "func_static"
"name" "hr1_3"
"model" "hr1_3"
"origin" "127 137 22"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 133 23 0 0 ) ( 127.875 133 22 0 0.5 ) ( 127.875 133 21 0 1 ) )
   (  ( 127.875 137 23 0.5 0 ) ( 127.875 137 22 0.5 0.5 ) ( 127.875 137 21 0.5 1 ) )
   (  ( 127.875 141 23 1 0 ) ( 127.875 141 22 1 0.5 ) ( 127.875 141 21 1 1 ) )
  )
}
}
}
// entity 11
{
"classname" "func_static"
"name" "hr2_4"
"model" "hr2_4"
"origin" "127 118 37"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 119 41 0 0 ) ( 127.875 118 41 0 0.5 ) ( 127.875 117 41 0 1 ) )
   (  ( 127.875 119 37 0.5 0 ) ( 127.875 118 37 0.5 0.5 ) ( 127.875 117 37 0.5 1 ) )
   (  ( 127.875 119 33 1 0 ) ( 127.875 118 33 1 0.5 ) ( 127.875 117 33 1 1 ) )
  )
}
}
}
// entity 12
{
"classname" "func_static"
"name" "hr2_1"
"model" "hr2_1"
"origin" "127 123 42"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 119 43 0 0 ) ( 127.875 119 42 0 0.5 ) ( 127.875 119 41 0 1 ) )
   (  ( 127.875 123 43 0.5 0 ) ( 127.875 123 42 0.5 0.5 ) ( 127.875 123 41 0.5 1 ) )
   (  ( 127.875 127 43 1 0 ) ( 127.875 127 42 1 0.5 ) ( 127.875 127 41 1 1 ) )
  )
}
}
}
// entity 13
{
"classname" "func_static"
"name" "hr2_2"
"model" "hr2_2"
"origin" "127 123 32"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 119 33 0 0 ) ( 127.875 119 32 0 0.5 ) ( 127.875 119 31 0 1 ) )
   (  ( 127.875 123 33 0.5 0 ) ( 127.875 123 32 0.5 0.5 ) ( 127.875 123 31 0.5 1 ) )
   (  ( 127.875 127 33 1 0 ) ( 127.875 127 32 1 0.5 ) ( 127.875 127 31 1 1 ) )
  )
}
}
}
// entity 14
{
"classname" "func_static"
"name" "hr2_6"
"model" "hr2_6"
"origin" "127 128 37"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 129 41 0 0 ) ( 127.875 128 41 0 0.5 ) ( 127.875 127 41 0 1 ) )
   (  ( 127.875 129 37 0.5 0 ) ( 127.875 128 37 0.5 0.5 ) ( 127.875 127 37 0.5 1 ) )
   (  ( 127.875 129 33 1 0 ) ( 127.875 128 33 1 0.5 ) ( 127.875 127 33 1 1 ) )
  )
}
}
}
// entity 15
{
"classname" "func_static"
"name" "hr2_7"
"model" "hr2_7"
"origin" "127 128 27"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 129 31 0 0 ) ( 127.875 128 31 0 0.5 ) ( 127.875 127 31 0 1 ) )
   (  ( 127.875 129 27 0.5 0 ) ( 127.875 128 27 0.5 0.5 ) ( 127.875 127 27 0.5 1 ) )
   (  ( 127.875 129 23 1 0 ) ( 127.875 128 23 1 0.5 ) ( 127.875 127 23 1 1 ) )
  )
}
}
}
// entity 16
{
"classname" "func_static"
"name" "hr2_5"
"model" "hr2_5"
"origin" "127 118 27"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 119 31 0 0 ) ( 127.875 118 31 0 0.5 ) ( 127.875 117 31 0 1 ) )
   (  ( 127.875 119 27 0.5 0 ) ( 127.875 118 27 0.5 0.5 ) ( 127.875 117 27 0.5 1 ) )
   (  ( 127.875 119 23 1 0 ) ( 127.875 118 23 1 0.5 ) ( 127.875 117 23 1 1 ) )
  )
}
}
}
// entity 17
{
"classname" "func_static"
"name" "hr2_3"
"model" "hr2_3"
"origin" "127 123 22"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 119 23 0 0 ) ( 127.875 119 22 0 0.5 ) ( 127.875 119 21 0 1 ) )
   (  ( 127.875 123 23 0.5 0 ) ( 127.875 123 22 0.5 0.5 ) ( 127.875 123 21 0.5 1 ) )
   (  ( 127.875 127 23 1 0 ) ( 127.875 127 22 1 0.5 ) ( 127.875 127 21 1 1 ) )
  )
}
}
}
// entity 18
{
"classname" "func_static"
"name" "min1_4"
"model" "min1_4"
"origin" "127 98 37"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 99 41 0 0 ) ( 127.875 98 41 0 0.5 ) ( 127.875 97 41 0 1 ) )
   (  ( 127.875 99 37 0.5 0 ) ( 127.875 98 37 0.5 0.5 ) ( 127.875 97 37 0.5 1 ) )
   (  ( 127.875 99 33 1 0 ) ( 127.875 98 33 1 0.5 ) ( 127.875 97 33 1 1 ) )
  )
}
}
}
// entity 19
{
"classname" "func_static"
"name" "min1_1"
"model" "min1_1"
"origin" "127 103 42"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 99 43 0 0 ) ( 127.875 99 42 0 0.5 ) ( 127.875 99 41 0 1 ) )
   (  ( 127.875 103 43 0.5 0 ) ( 127.875 103 42 0.5 0.5 ) ( 127.875 103 41 0.5 1 ) )
   (  ( 127.875 107 43 1 0 ) ( 127.875 107 42 1 0.5 ) ( 127.875 107 41 1 1 ) )
  )
}
}
}
// entity 20
{
"classname" "func_static"
"name" "min1_2"
"model" "min1_2"
"origin" "127 103 32"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 99 33 0 0 ) ( 127.875 99 32 0 0.5 ) ( 127.875 99 31 0 1 ) )
   (  ( 127.875 103 33 0.5 0 ) ( 127.875 103 32 0.5 0.5 ) ( 127.875 103 31 0.5 1 ) )
   (  ( 127.875 107 33 1 0 ) ( 127.875 107 32 1 0.5 ) ( 127.875 107 31 1 1 ) )
  )
}
}
}
// entity 21
{
"classname" "func_static"
"name" "min1_6"
"model" "min1_6"
"origin" "127 108 37"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 109 41 0 0 ) ( 127.875 108 41 0 0.5 ) ( 127.875 107 41 0 1 ) )
   (  ( 127.875 109 37 0.5 0 ) ( 127.875 108 37 0.5 0.5 ) ( 127.875 107 37 0.5 1 ) )
   (  ( 127.875 109 33 1 0 ) ( 127.875 108 33 1 0.5 ) ( 127.875 107 33 1 1 ) )
  )
}
}
}
// entity 22
{
"classname" "func_static"
"name" "min1_7"
"model" "min1_7"
"origin" "127 108 27"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 109 31 0 0 ) ( 127.875 108 31 0 0.5 ) ( 127.875 107 31 0 1 ) )
   (  ( 127.875 109 27 0.5 0 ) ( 127.875 108 27 0.5 0.5 ) ( 127.875 107 27 0.5 1 ) )
   (  ( 127.875 109 23 1 0 ) ( 127.875 108 23 1 0.5 ) ( 127.875 107 23 1 1 ) )
  )
}
}
}
// entity 23
{
"classname" "func_static"
"name" "min1_5"
"model" "min1_5"
"origin" "127 98 27"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 99 31 0 0 ) ( 127.875 98 31 0 0.5 ) ( 127.875 97 31 0 1 ) )
   (  ( 127.875 99 27 0.5 0 ) ( 127.875 98 27 0.5 0.5 ) ( 127.875 97 27 0.5 1 ) )
   (  ( 127.875 99 23 1 0 ) ( 127.875 98 23 1 0.5 ) ( 127.875 97 23 1 1 ) )
  )
}
}
}
// entity 24
{
"classname" "func_static"
"name" "min1_3"
"model" "min1_3"
"origin" "127 103 22"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 99 23 0 0 ) ( 127.875 99 22 0 0.5 ) ( 127.875 99 21 0 1 ) )
   (  ( 127.875 103 23 0.5 0 ) ( 127.875 103 22 0.5 0.5 ) ( 127.875 103 21 0.5 1 ) )
   (  ( 127.875 107 23 1 0 ) ( 127.875 107 22 1 0.5 ) ( 127.875 107 21 1 1 ) )
  )
}
}
}
// entity 25
{
"classname" "func_static"
"name" "min2_4"
"model" "min2_4"
"origin" "127 84 37"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 85 41 0 0 ) ( 127.875 84 41 0 0.5 ) ( 127.875 83 41 0 1 ) )
   (  ( 127.875 85 37 0.5 0 ) ( 127.875 84 37 0.5 0.5 ) ( 127.875 83 37 0.5 1 ) )
   (  ( 127.875 85 33 1 0 ) ( 127.875 84 33 1 0.5 ) ( 127.875 83 33 1 1 ) )
  )
}
}
}
// entity 26
{
"classname" "func_static"
"name" "min2_1"
"model" "min2_1"
"origin" "127 89 42"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 85 43 0 0 ) ( 127.875 85 42 0 0.5 ) ( 127.875 85 41 0 1 ) )
   (  ( 127.875 89 43 0.5 0 ) ( 127.875 89 42 0.5 0.5 ) ( 127.875 89 41 0.5 1 ) )
   (  ( 127.875 93 43 1 0 ) ( 127.875 93 42 1 0.5 ) ( 127.875 93 41 1 1 ) )
  )
}
}
}
// entity 27
{
"classname" "func_static"
"name" "min2_2"
"model" "min2_2"
"origin" "127 89 32"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 85 33 0 0 ) ( 127.875 85 32 0 0.5 ) ( 127.875 85 31 0 1 ) )
   (  ( 127.875 89 33 0.5 0 ) ( 127.875 89 32 0.5 0.5 ) ( 127.875 89 31 0.5 1 ) )
   (  ( 127.875 93 33 1 0 ) ( 127.875 93 32 1 0.5 ) ( 127.875 93 31 1 1 ) )
  )
}
}
}
// entity 28
{
"classname" "func_static"
"name" "min2_6"
"model" "min2_6"
"origin" "127 94 37"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 95 41 0 0 ) ( 127.875 94 41 0 0.5 ) ( 127.875 93 41 0 1 ) )
   (  ( 127.875 95 37 0.5 0 ) ( 127.875 94 37 0.5 0.5 ) ( 127.875 93 37 0.5 1 ) )
   (  ( 127.875 95 33 1 0 ) ( 127.875 94 33 1 0.5 ) ( 127.875 93 33 1 1 ) )
  )
}
}
}
// entity 29
{
"classname" "func_static"
"name" "min2_7"
"model" "min2_7"
"origin" "127 94 27"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 95 31 0 0 ) ( 127.875 94 31 0 0.5 ) ( 127.875 93 31 0 1 ) )
   (  ( 127.875 95 27 0.5 0 ) ( 127.875 94 27 0.5 0.5 ) ( 127.875 93 27 0.5 1 ) )
   (  ( 127.875 95 23 1 0 ) ( 127.875 94 23 1 0.5 ) ( 127.875 93 23 1 1 ) )
  )
}
}
}
// entity 30
{
"classname" "func_static"
"name" "min2_5"
"model" "min2_5"
"origin" "127 84 27"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 85 31 0 0 ) ( 127.875 84 31 0 0.5 ) ( 127.875 83 31 0 1 ) )
   (  ( 127.875 85 27 0.5 0 ) ( 127.875 84 27 0.5 0.5 ) ( 127.875 83 27 0.5 1 ) )
   (  ( 127.875 85 23 1 0 ) ( 127.875 84 23 1 0.5 ) ( 127.875 83 23 1 1 ) )
  )
}
}
}
// entity 31
{
"classname" "func_static"
"name" "min2_3"
"model" "min2_3"
"origin" "127 89 22"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 85 23 0 0 ) ( 127.875 85 22 0 0.5 ) ( 127.875 85 21 0 1 ) )
   (  ( 127.875 89 23 0.5 0 ) ( 127.875 89 22 0.5 0.5 ) ( 127.875 89 21 0.5 1 ) )
   (  ( 127.875 93 23 1 0 ) ( 127.875 93 22 1 0.5 ) ( 127.875 93 21 1 1 ) )
  )
}
}
}
// entity 32
{
"classname" "func_static"
"name" "sec1_4"
"model" "sec1_4"
"origin" "127 64 37"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 65 41 0 0 ) ( 127.875 64 41 0 0.5 ) ( 127.875 63 41 0 1 ) )
   (  ( 127.875 65 37 0.5 0 ) ( 127.875 64 37 0.5 0.5 ) ( 127.875 63 37 0.5 1 ) )
   (  ( 127.875 65 33 1 0 ) ( 127.875 64 33 1 0.5 ) ( 127.875 63 33 1 1 ) )
  )
}
}
}
// entity 33
{
"classname" "func_static"
"name" "sec1_1"
"model" "sec1_1"
"origin" "127 69 42"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 65 43 0 0 ) ( 127.875 65 42 0 0.5 ) ( 127.875 65 41 0 1 ) )
   (  ( 127.875 69 43 0.5 0 ) ( 127.875 69 42 0.5 0.5 ) ( 127.875 69 41 0.5 1 ) )
   (  ( 127.875 73 43 1 0 ) ( 127.875 73 42 1 0.5 ) ( 127.875 73 41 1 1 ) )
  )
}
}
}
// entity 34
{
"classname" "func_static"
"name" "sec1_2"
"model" "sec1_2"
"origin" "127 69 32"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 65 33 0 0 ) ( 127.875 65 32 0 0.5 ) ( 127.875 65 31 0 1 ) )
   (  ( 127.875 69 33 0.5 0 ) ( 127.875 69 32 0.5 0.5 ) ( 127.875 69 31 0.5 1 ) )
   (  ( 127.875 73 33 1 0 ) ( 127.875 73 32 1 0.5 ) ( 127.875 73 31 1 1 ) )
  )
}
}
}
// entity 35
{
"classname" "func_static"
"name" "sec1_6"
"model" "sec1_6"
"origin" "127 74 37"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 75 41 0 0 ) ( 127.875 74 41 0 0.5 ) ( 127.875 73 41 0 1 ) )
   (  ( 127.875 75 37 0.5 0 ) ( 127.875 74 37 0.5 0.5 ) ( 127.875 73 37 0.5 1 ) )
   (  ( 127.875 75 33 1 0 ) ( 127.875 74 33 1 0.5 ) ( 127.875 73 33 1 1 ) )
  )
}
}
}
// entity 36
{
"classname" "func_static"
"name" "sec1_7"
"model" "sec1_7"
"origin" "127 74 27"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 75 31 0 0 ) ( 127.875 74 31 0 0.5 ) ( 127.875 73 31 0 1 ) )
   (  ( 127.875 75 27 0.5 0 ) ( 127.875 74 27 0.5 0.5 ) ( 127.875 73 27 0.5 1 ) )
   (  ( 127.875 75 23 1 0 ) ( 127.875 74 23 1 0.5 ) ( 127.875 73 23 1 1 ) )
  )
}
}
}
// entity 37
{
"classname" "func_static"
"name" "sec1_5"
"model" "sec1_5"
"origin" "127 64 27"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 65 31 0 0 ) ( 127.875 64 31 0 0.5 ) ( 127.875 63 31 0 1 ) )
   (  ( 127.875 65 27 0.5 0 ) ( 127.875 64 27 0.5 0.5 ) ( 127.875 63 27 0.5 1 ) )
   (  ( 127.875 65 23 1 0 ) ( 127.875 64 23 1 0.5 ) ( 127.875 63 23 1 1 ) )
  )
}
}
}
// entity 38
{
"classname" "func_static"
"name" "sec1_3"
"model" "sec1_3"
"origin" "127 69 22"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 65 23 0 0 ) ( 127.875 65 22 0 0.5 ) ( 127.875 65 21 0 1 ) )
   (  ( 127.875 69 23 0.5 0 ) ( 127.875 69 22 0.5 0.5 ) ( 127.875 69 21 0.5 1 ) )
   (  ( 127.875 73 23 1 0 ) ( 127.875 73 22 1 0.5 ) ( 127.875 73 21 1 1 ) )
  )
}
}
}
// entity 39
{
"classname" "func_static"
"name" "sec2_4"
"model" "sec2_4"
"origin" "127 50 37"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 51 41 0 0 ) ( 127.875 50 41 0 0.5 ) ( 127.875 49 41 0 1 ) )
   (  ( 127.875 51 37 0.5 0 ) ( 127.875 50 37 0.5 0.5 ) ( 127.875 49 37 0.5 1 ) )
   (  ( 127.875 51 33 1 0 ) ( 127.875 50 33 1 0.5 ) ( 127.875 49 33 1 1 ) )
  )
}
}
}
// entity 40
{
"classname" "func_static"
"name" "sec2_1"
"model" "sec2_1"
"origin" "127 55 42"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 51 43 0 0 ) ( 127.875 51 42 0 0.5 ) ( 127.875 51 41 0 1 ) )
   (  ( 127.875 55 43 0.5 0 ) ( 127.875 55 42 0.5 0.5 ) ( 127.875 55 41 0.5 1 ) )
   (  ( 127.875 59 43 1 0 ) ( 127.875 59 42 1 0.5 ) ( 127.875 59 41 1 1 ) )
  )
}
}
}
// entity 41
{
"classname" "func_static"
"name" "sec2_2"
"model" "sec2_2"
"origin" "127 55 32"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 51 33 0 0 ) ( 127.875 51 32 0 0.5 ) ( 127.875 51 31 0 1 ) )
   (  ( 127.875 55 33 0.5 0 ) ( 127.875 55 32 0.5 0.5 ) ( 127.875 55 31 0.5 1 ) )
   (  ( 127.875 59 33 1 0 ) ( 127.875 59 32 1 0.5 ) ( 127.875 59 31 1 1 ) )
  )
}
}
}
// entity 42
{
"classname" "func_static"
"name" "sec2_6"
"model" "sec2_6"
"origin" "127 60 37"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 61 41 0 0 ) ( 127.875 60 41 0 0.5 ) ( 127.875 59 41 0 1 ) )
   (  ( 127.875 61 37 0.5 0 ) ( 127.875 60 37 0.5 0.5 ) ( 127.875 59 37 0.5 1 ) )
   (  ( 127.875 61 33 1 0 ) ( 127.875 60 33 1 0.5 ) ( 127.875 59 33 1 1 ) )
  )
}
}
}
// entity 43
{
"classname" "func_static"
"name" "sec2_7"
"model" "sec2_7"
"origin" "127 60 27"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 61 31 0 0 ) ( 127.875 60 31 0 0.5 ) ( 127.875 59 31 0 1 ) )
   (  ( 127.875 61 27 0.5 0 ) ( 127.875 60 27 0.5 0.5 ) ( 127.875 59 27 0.5 1 ) )
   (  ( 127.875 61 23 1 0 ) ( 127.875 60 23 1 0.5 ) ( 127.875 59 23 1 1 ) )
  )
}
}
}
// entity 44
{
"classname" "func_static"
"name" "sec2_5"
"model" "sec2_5"
"origin" "127 50 27"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 51 31 0 0 ) ( 127.875 50 31 0 0.5 ) ( 127.875 49 31 0 1 ) )
   (  ( 127.875 51 27 0.5 0 ) ( 127.875 50 27 0.5 0.5 ) ( 127.875 49 27 0.5 1 ) )
   (  ( 127.875 51 23 1 0 ) ( 127.875 50 23 1 0.5 ) ( 127.875 49 23 1 1 ) )
  )
}
}
}
// entity 45
{
"classname" "func_static"
"name" "sec2_3"
"model" "sec2_3"
"origin" "127 55 22"
// primitive 0
{
patchDef2
{
  "textures/base_light/a_reactorlight1_d1c"
  ( 3 3 0 0 0 )
  (
   (  ( 127.875 51 23 0 0 ) ( 127.875 51 22 0 0.5 ) ( 127.875 51 21 0 1 ) )
   (  ( 127.875 55 23 0.5 0 ) ( 127.875 55 22 0.5 0.5 ) ( 127.875 55 21 0.5 1 ) )
   (  ( 127.875 59 23 1 0 ) ( 127.875 59 22 1 0.5 ) ( 127.875 59 21 1 1 ) )
  )
}
}
}



Paveway@Posted: Mon Oct 15, 2007 6:52 pm :
I suggest you use GUIs to accomplish this task, and reduce this monstrosity of a script.

I will look into it more, but if it's possible, it could be very easy to do.


Basically, if level scripting allows you to increment variables (which I'm not sure if you can), use a sys.wait(1000) or whatever and increment the seconds value each time. And if seconds == 60 set seconds back down to 0 and increment minute += 1

You'd need to use gui_parms for the variables.



S@TaNiC@Posted: Fri Oct 19, 2007 6:21 pm :
Have a look here CLOCK. Might be helpfull.



Paveway@Posted: Fri Oct 19, 2007 10:33 pm :
Ok I did a digital clock... in a script that's about 30 lines or so long (not including whitespace)

Here is the level script

Code:
void main()
{sys.trigger($relay);
}


void clock(){
float h,m,s;

h = $clock_static.getFloatKey("gui_parm1");
m = $clock_static.getFloatKey("gui_parm2");
s = $clock_static.getFloatKey("gui_parm3");

s++;

if (s>=60) {
m++;
s=0;
}

if(m>=60) {
h++;
m=0;
}

if(h>24) {
h=0;
}
//*******************
//Here we're going to keep a zero infront of a number if it's only 1 digit long, otherwise the clock would not display both digits
//*******************
if ( s < 10) {
$clock_static.setGuiParm( "gui_parm3", "0" + s );
} else {
$clock_static.setGuiParm( "gui_parm3", s );
}

if ( m < 10){
$clock_static.setGuiParm( "gui_parm2", "0" + m );
} else {
$clock_static.setGuiParm( "gui_parm2", m );
}

if ( h < 10){
$clock_static.setGuiParm( "gui_parm1", "0" + h );
} else {
$clock_static.setGuiParm( "gui_parm1", h );
}

}


Here's the GUI Script

Code:
windowDef Desktop
{
   rect   0,0,640,480
    backcolor 0,0,0,1
   windowDef colon_left
   {
      rect   190,100,30,180
      visible   1
      forecolor   1,1,1,1
      text   ":"
      textscale   3
   }
   windowDef colon_right
   {
      rect   410,100,30,180
      visible   1
      forecolor   1,1,1,1
      text   ":"
      textscale   3
   }
   windowDef hours
   {
      rect   0,120,200,160
      visible   1
      forecolor   1,1,1,1
      text   "gui::gui_parm1"
      textscale   3
   }
   windowDef minutes
   {
      rect   220,120,200,160
      visible   1
      forecolor   1,1,1,1
      text   "gui::gui_parm2"
      textscale   3
   }
   windowDef seconds
   {
      rect   440,120,200,160
      visible   1
      forecolor   1,1,1,1
      text   "gui::gui_parm3"
      textscale   3
   }
   windowDef header
   {
      rect   0,110,640,30
      visible   1
      backcolor   0,0.50196081,1,1
   }
   windowDef footer
   {
      rect   0,280,640,30
      visible   1
      backcolor   0,0.50196081,1,1
   }
}


And the map

Code:
Version 2
// entity 0
{
"classname" "worldspawn"
// primitive 0
{
brushDef3
{
  ( 0 0 -1 128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_floor/ghofloor1c" 0 0 0
  ( 0 0 1 -144 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_floor/ghofloor1c" 0 0 0
  ( 0 -1 0 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_floor/ghofloor1c" 0 0 0
  ( 1 0 0 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_floor/ghofloor1c" 0 0 0
  ( 0 1 0 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_floor/ghofloor1c" 0 0 0
  ( -1 0 0 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_floor/ghofloor1c" 0 0 0
}
}
// primitive 1
{
brushDef3
{
  ( 0 0 -1 -16 ) ( ( 0.015625 0 0 ) ( 0 0.015625 0 ) ) "textures/base_floor/ghotile3" 0 0 0
  ( 0 0 1 0 ) ( ( 0.015625 0 0 ) ( 0 0.015625 0 ) ) "textures/base_floor/ghotile3" 0 0 0
  ( 0 -1 0 -128 ) ( ( 0.015625 0 0 ) ( 0 0.015625 0 ) ) "textures/base_floor/ghotile3" 0 0 0
  ( 1 0 0 -128 ) ( ( 0.015625 0 0 ) ( 0 0.015625 0 ) ) "textures/base_floor/ghotile3" 0 0 0
  ( 0 1 0 -128 ) ( ( 0.015625 0 0 ) ( 0 0.015625 0 ) ) "textures/base_floor/ghotile3" 0 0 0
  ( -1 0 0 -128 ) ( ( 0.015625 0 0 ) ( 0 0.015625 0 ) ) "textures/base_floor/ghotile3" 0 0 0
}
}
// primitive 2
{
brushDef3
{
  ( 0 0 -1 0 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( 0 0 1 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( 0 -1 0 -144 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( 1 0 0 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( 0 1 0 128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( -1 0 0 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
}
}
// primitive 3
{
brushDef3
{
  ( 0 0 -1 0 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( 0 0 1 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( 0 -1 0 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( 1 0 0 -144 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( 0 1 0 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( -1 0 0 128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
}
}
// primitive 4
{
brushDef3
{
  ( 0 0 -1 0 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( 0 0 1 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( 0 -1 0 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( 1 0 0 128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( 0 1 0 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( -1 0 0 -144 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
}
}
// primitive 5
{
brushDef3
{
  ( 0 0 -1 0 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( 0 0 1 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( 0 -1 0 128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( 1 0 0 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( 0 1 0 -144 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
  ( -1 0 0 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/base_wall/sopanel1a" 0 0 0
}
}
}
// entity 1
{
"classname" "info_player_start"
"name" "info_player_start_1"
"origin" "0 64 0"
"angle" "90"
}
// entity 2
{
"classname" "func_static"
"name" "func_static_1"
"origin" "0 88 128"
"model" "models/mapobjects/lights/cagelight/cagelight.lwo"
"_color" "1 0.85 0.55"
}
// entity 3
{
"classname" "trigger_relay"
"name" "relay"
"origin" "56 112 96"
"call" "clock"
"delay" "1"
"target" "relay2"
}
// entity 4
{
"classname" "light"
"name" "light_1"
"origin" "0 40 56"
"noshadows" "0"
"nospecular" "0"
"nodiffuse" "0"
"falloff" "0"
"_color" "1 0.85 0.55"
"light_radius" "250 150 300"
"light_center" "0 48 64"
}
// entity 5
{
"classname" "func_static"
"name" "clock_static"
"origin" "0 124 88"
"model" "models/mapobjects/guiobjects/flatmonitor/flatmonitor.lwo"
"gui" "guis/custom/clock.gui"
"gui_parm1" "05"
"gui_parm2" "34"
"gui_parm3" "27"
}
// entity 6
{
"classname" "trigger_relay"
"name" "relay2"
"origin" "40 112 96"
"call" "clock"
"delay" "1"
"target" "relay"
}


I'm sure you know how to install.

the GUI must be placed in guis/custom/ or else you'll need to edit the GUI reference path in the editor



Paveway@Posted: Fri Oct 19, 2007 10:34 pm :
Oh and props to Rch on the script. I copied your code from that other thread and modified it a little. I was going to do it by hand but you had already provided it :D



Paveway@Posted: Tue Oct 23, 2007 4:01 am :
Wow, holy Bjesus I just took a look at your map and realized you freaking made a func_static patch for EACH INDIVIDUAL DIGIT PIECE.

First off I'm sorry you wasted so much time trying to do something so simple but honestly. Didn't you ever stop to think... hmm maybe there's a better way? Either you've got a great ammount of will-power and focus, or you're just plain crazy to attempt something like this.

On another note, have you taken a look at my solution? I hope you aren't still trying to code your way... you won't be finished for the next year.



Joe Mama@Posted: Tue Oct 23, 2007 11:01 pm :
Thanks for the gui, that is about 5x10^63215944231 times smaller than the level script would have been!

I did however figure out a easier way to create my style clock, though I won't use it since this gui is so much easier:

divide the time into tens and ones, ie. a timer for each digit

instead of use a script to color each segment, use a func_changeColor or something for each 0,1,2,3... for each digit, which didn't take too long to set up

I haven't done the script to finalize this idea, but the gui is so much more continent, thank you all! :mrgreen:

Quote:
Didn't you ever stop to think... hmm maybe there's a better way? Either you've got a great ammount of will-power and focus, or you're just plain crazy to attempt something like this.


Will power? No, never, a roach concentrates longer than I! :)
I was just super-bored!
and, yes I did think that a gui would probably work better, but I wasn't bored enough to learn gui scripts. :mrgreen: